when stop my project , tomcat say :
The following web applications were stopped (reloaded, undeployed), but their classes from previous runs are still loaded in memory, thus causing a memory leak (use a profiler to confirm) .
Where we find that Which classes are left in memory ?
please help me .
You can run jmap -histo
which will show you loaded classes.
For example:
jmap -histo[:live] <pid>
to connect to running process and print histogram of java object heap
if the "live" suboption is specified, only count live objects
Example: jmap -dump:live,format=b,file=heap.bin <pid>
Another way is to enable classloading debug information and do some scripting to detect what is left loaded.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With