Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java VM optoins change #163

Open
IanSudbery opened this issue Dec 12, 2024 · 1 comment
Open

java VM optoins change #163

IanSudbery opened this issue Dec 12, 2024 · 1 comment

Comments

@IanSudbery
Copy link
Contributor

Hi All,

Seems that between JDK 8 and JDK 9 the option -XX:+UseParNewGC has been depreciated, and removed in JDK 10. We use this in at least some of our calls to picard, for example, when we call MarkDuplicates in pipeline_bamstats.

What do we think is the best way forward here? We could pin java to JDK 9, or we could change the option to use a different garbage collector. Apparently people recommend -XX:+UseG1GC, which is supported JDK 7 or later. Or we could just leave it out.

Does anyone know why we specify a particular garbage collector, and a view on the best way to move forward. If I don't hear anything, I'll just remove the specification of a particular GC.

@sebastian-luna-valero
Copy link
Member

Hi,

Please note that Java has undergone important licensing changes in the recent years:

https://www.oracle.com/uk/java/technologies/java-se-support-roadmap.html

I would therefore stick to JDK 21:

https://www.oracle.com/uk/java/

Regarding garbage collection, see:

https://docs.oracle.com/en/java/javase/21/gctuning/available-collectors.html#GUID-414C9D95-297E-4EE3-B0D9-36F158A83393

and the very first thing I would try is removing the existing config and check how it goes:

Unless your application has rather strict pause-time requirements, first run your application and allow the VM to select a collector.

But go through the docs to double check your preference.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants