Reducing classloader's parallelLockMap memory consumption proposal

David Holmes david.holmes at oracle.com
Tue May 20 00:01:33 UTC 2025


Hi,

This should be taken to core-libs-dev at openjdk.org

Thanks,
David

On 20/05/2025 7:12 am, Dmytro Ukhlov wrote:
>   Hello!
> 
> I created PR is scope of jenkins-core project:
> https://github.com/jenkinsci/jenkins/pull/10659
> Jira ticket: https://issues.jenkins.io/browse/JENKINS-75675
> 
> In this PR i propped to override
> protected Object getClassLoadingLock(String className)
> method and use weak references for lock objects
> 
> Jenkins is a plugable platform, each plugin has its own class loader
> and its parallelLockMap may consume 10mb of RAM. As a result it might
> have 2gb overhead if ~200 plugins installed.
> 
> Jenkins maintainers ask me to consider making this improvement in base



More information about the jdk-dev mailing list