Analyze Tomcat Heap in detail on a production System
问题 Having analyzed a light-load web application running in tomcat, using JMX Console, it turns out the "PS Old Gen" is growing slowly but constant. It starts with 200MB and grows around 80MB/Hour. CPU is not an issue, it runs at 0-1% on average, but somewhere it leaks memory, so it will become unstable some days after deployment. How do i find out what objects are allocated on the heap? Are there any good tutorials or tools you know? 回答1: You could try jmap, one of the JDK Development Tools. You