Hello Sajid, > -----Ursprüngliche Nachricht----- > Von: Sajid Hussain <sajid.huss...@codegic.com> > Gesendet: Dienstag, 8. Oktober 2024 13:21 > An: users@tomcat.apache.org > Betreff: Migrating from Tomcat 9.0.88 to Tomcat 10.1.30 on windows > machine with JDK 21 LTS > > Hi, > > I was using tomcat 9 with JDK 17 on windows. My java application was using > 2.7.18. Now I'm migrating my application spring version to 3.3.4 with Tomcat > 10.1.30 and JDK 21. I have upgraded the version in my java project and fix the > hibernate error migrating from 5 to 6. Now my application start on tomcat 10. > But after few request JVM consume the maximum memory (I set it 3GB max) > and cup usage to 90-98%. I set windows service priority to low and it take 80- > 90% hence my application stop responding. Here is the thread dum for the > tomcat.Not getting any clue whats causing to tomcat high CPU and memory > usage. > > > > Regards, > > Sajid Hussain
the CPU usage is often high when the garbage collector can't free up sufficient memory. The memory usage shows little spikes going up and down, like a little sawtooth in this case. If this is the case, I would recommend creating a heap dump and analyze the dump, what is occupying the memory. Eclipse MAT will assist you in analyzing the heap dump. Greetings, Thomas