Message-ID: From: "davecramer (@davecramer)" To: "pgjdbc/pgjdbc" Date: Thu, 11 Jan 2024 13:23:18 +0000 Subject: Re: [pgjdbc/pgjdbc] issue #3089: Metaspace Memory leak: Thread.inheritedAccessControlContext In-Reply-To: References: List-Id: X-GitHub-Author-Login: davecramer X-GitHub-Comment-Id: 1887155340 X-GitHub-Comment-Type: issue_comment X-GitHub-Issue: 3089 X-GitHub-Repo: pgjdbc/pgjdbc X-GitHub-Type: comment X-GitHub-Url: https://github.com/pgjdbc/pgjdbc/issues/3089#issuecomment-1887155340 Content-Type: text/plain; charset=utf-8 > > queue seems to be empty on all instances I checked > > If the queue is empty the thread should terminate, and it should no longer hold the resources. I think you are right about an application leak. Something is holding a reference to the connections so gc() is not collecting them and they aren't in the queue.