You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Chandan Singh <ma...@gmail.com> on 2024/03/12 07:21:04 UTC
Performance Degrade with apache karaf 4.3.10 and Java 17
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
Re: Performance Degrade with apache karaf 4.3.10 and Java 17
Posted by João Assunção <jo...@exploitsys.com>.
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 <
mailbox.chandansingh@gmail.com> 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
>
Re: Performance Degrade with apache karaf 4.3.10 and Java 17
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi Chandan,
I would not recommend the wrapper with large heap and new JDK. The
reason is because the Tanuki Java Wrapper used by the Karaf wrapper is
super old (due to license issue).
Do you see the same problem using the bin/karaf script ?
I would also recommend using G1 GC instead of CMS with Java 17.
Regards
JB
On Tue, Mar 12, 2024 at 8:21 AM Chandan Singh
<ma...@gmail.com> 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