I have a java process I allocated 768MB to at the command line, using the -Xmx
switch, but ps
says its using over 900MB!
$ ps -e -o pid,rsz,cmd | sort -n -k 2|tail 17271 941096 java ... -Xmx768m -Xms768m -jar ...
(note parts of the command line were redacted for readability)
I found some posts which suggest this can be permgen:
Why is the JVM using more memory than I am allocating
Is it possible for a Java memory leak to use more memory than the heap + permgen?
JVM Process vs JVM Heap memory usage
Is there a way to control how much non-heap memory java uses?