I'm running Amazon Linux on a machine with 16GB. I have two java processes that are maxed out at 2GB each. One process that grabs 2GB upon startup and another that can grow up to 2GB. The other processes don't seem to consume much memory at all. But, most of my memory is consumed from looking at top:
Mem: 16426080k total, 13986456k used, 2439624k free, 316888k buffers
The ps aux
output:
app1 30213 6.2 40.3 16615384 6632692 ? Sl 14:54 5:28 app2 30469 10.5 9.6 5847412 1589996 ? Sl 14:54 9:12
I can't seem to figure out where all of my memory has gone. At best my 2 main processes are using 4gb total so where is the other 12GB? Seems excessive that the OS would eat up all of that memory. How can I free up more memory?