'Where do I put Java JVM options for Jenkins? [duplicate]

I was provided these settings by vendor to help improve the performance of our jenkins

-XX:+UseG1GC -XX:+AlwaysPreTouch -XX:+UseStringDeduplication -XX:+ParallelRefProcEnabled -XX:+DisableExplicitGC

I did an ls on the java and it says java-1.8.0-amazon-correto.x86_64. Where do I put that? Do I just add that to our systemd service since that's how our jenkins is started?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source