We are trying to analyze memory consumption for each user session in spring MVC application on Tomcat server.
Asked
Active
Viewed 238 times
1 Answers
1
You can't, directly at least. The heap isn't partitioned per user session and so the GC logs etc. will be for the JVM as a whole.
What you can do is use a heap dump and then something like Eclipse MAT to analyse the dump afterwards and calculate the total retained size for each of the session objects.

AlBlue
- 23,254
- 14
- 71
- 91