I have a Jetty server that I use for websocket connections for the application I'm working on. The only problem is that Jetty consumes too much virtual memory (! 2.5 GB virtual memory) and about 650RES.
My problem is that, as mentioned above, most of the memory (about 12 GB) is not the size of the heap, so its analysis and understanding of what is happening is more difficult.
Do you have any tips on how to figure out where the 12 GB consumption is coming from, and how to detect memory leaks or any other server issues?
I would like to confirm what I mean by virtual memory (because my understanding may be wrong). Virtual memory is "VIRT" when I run from above. Here is what I get:
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND ------------------------------------------------------------- 9442 root 20 0 12.6g 603m 10m S 0 1.3 1:50.06 java
Thanks!
source share