Hi Chandan, I think the JVM will choose the G1 GC by default if the machine has more than one CPU. Not sure it will be beneficial to use it if the JVM is limited to 1 CPU. Have you tried profiling your application using jprofiler or something similar ? VisualVM can also help. Try comparing the two environments and look for differences in CPU and memory behaviors. If it is a memory issue or you see a lot of GC activity, attempt to fine-tune the JVM memory settings.
Regards, João On Tue, Mar 12, 2024 at 7:22 AM Chandan Singh < [email protected]> wrote: > Hi All , > > We upgraded from Karaf 4.3.7 (Java 11) to Karaf 4.3.10 ( Java 17 ) . but > we are noticing some degradation in performance during load testing . > These were the setting we have kept in wrapper in Java 11 > > wrapper.java.additional.12=-XX:+UseConcMarkSweepGC > wrapper.java.additional.13=-XX:NewRatio=2 > wrapper.java.additional.14=-Xmx20480M > wrapper.java.additional.15=-Xms5120M > > which now as *UseConcMarkSweepGC has been removed in Java 17 . We > modified it below but we still don't see any improvements . * > > wrapper.java.additional.12=-XX:+UseG1GC > wrapper.java.additional.13=-XX:NewRatio=2 > wrapper.java.additional.14=- Xmx20480M > wrapper.java.additional.15=-Xms5120M > > Any recommendations on the same ? > > > regards > Chandan >
