My question seems pretty simple but I haven’t found a solution.
I need to know how deployed packages inside Tomcat consume memory.
I tried some tools like VisualVM and JConsole but I can’t discover which of my deployed package creates the objects. For example, I can see there are a lot of java.lang.String objects but I need to know from which package/JAR they have been created.
THX for editing omg… so prooooo
you could try and use MAT(Memory Analyzer Tool)
With this tool you can inspect heapdumps taken with VisualVM for instance… For each Object in your heap you can view which objects have a reference to this object and thus which objects prevent other objects from being garbage collected