On 08/10/2024 05:21, Sajid Hussain wrote:
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.

A profiler (I use YourKit because they give free licenses to OSS develoeprs but other profilers are avialable) will tell you more about what is going on than a single stack trace.

Is this a Spring Boot app? Is it packaged as a JAR or a WAR?

How are you running this as a Windows service? If you are using Apache Commons Daemon (the default way to run Tomcat as a Windows service) then this might be useful:
https://issues.apache.org/jira/projects/DAEMON/issues/DAEMON-460

Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to