when stop my project , tomcat say :
The following web applications were stopped (reloaded, undeployed), but their classes from previous runs are still loaded in m
You can run jmap -histo which will show you loaded classes.
For example:
jmap -histo[:live]
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
Another way is to enable classloading debug information and do some scripting to detect what is left loaded.