Article 5FRHK Java Program Taking Up 40GB+ of RAM

Java Program Taking Up 40GB+ of RAM

by
bassmadrigal
from LinuxQuestions.org on (#5FRHK)
I am using filebot on my 14.2 install with jdk (v8) from SBo to move some files around on my system and it is currently taking 55.0G of VIRT and 45.1G of RES according to htop. This happens regularly with this program (and I remember it happening with another java program, but I can't remember what it was). When it gets this big, I usually just close it and reopen it and it will reset the memory usage, but it always will continue to balloon up until it requires closing and reopening.

pmap -x shows the Kbytes as 54G (57693260K) and the RSS and Dirty at 44G (47217524K and 47208756K, respectively). The java program has spawned 83 threads. I have 64GB of RAM installed, and it seems that filebot will use up to a percentage of that, because I don't recall it ever going over my installed RAM amount, even when my system was running 32GB of RAM.

I've attached the output of the pmap -x command, in case it is helpful for anyone.

I know very little about java, but researching online lead me to add -Xmx512m to the launch command to try and curtail this memory usage, yet it had no effect (at least not that I noticed).

Any suggestions on what I can do to change this behavior? I'll keep filebot open for some time in case anyone wants me to run commands against it.
Attached Files
txt.giffilebot-mem-usage-pmap-output.txt (76.9 KB)
latest?d=yIl2AUoC8zA latest?i=4TWPkg8qd-k:YFd1KUUWxWw:F7zBnMy latest?i=4TWPkg8qd-k:YFd1KUUWxWw:V_sGLiP latest?d=qj6IDK7rITs latest?i=4TWPkg8qd-k:YFd1KUUWxWw:gIN9vFw4TWPkg8qd-k
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments