Message-ID: From: "embuc (@embuc)" To: "pgjdbc/pgjdbc" Date: Thu, 11 Jan 2024 12:46:43 +0000 Subject: Re: [pgjdbc/pgjdbc] issue #3089: Metaspace Memory leak: Thread.inheritedAccessControlContext In-Reply-To: References: List-Id: X-GitHub-Author-Login: embuc X-GitHub-Comment-Id: 1887094116 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-1887094116 Content-Type: text/plain; charset=utf-8 > you could try building the jar using #3090 but if gc() isn't running I fail to see how using Cleaner will work @davecramer I built the snapshot with #3090 and tried but I get same thing :/ GC is definitely running but I can see that it frees up about ~15MB of Metaspace but thats not enough (when close the limit) and the OOM is thrown. @vlsi the queue seems to be empty on all instances I checked.