memory usage in ps wonky because of virtual server?

January 9, 2014 1.1k views
I'm running elasticsearch with max memory of 400MB. Here's the output of ps auxww | grep elasticsearch. Any tips why it seems to be using 1.6 GB of total memory, and 650MB resident? Could this be an artifact of the virtual machine or something? 108 8243 53.2 16.0 1659168 650692 ? SLl 17:41 0:04 /usr/lib/jvm/java-7-oracle/bin/java -Xms400m -Xmx400m -Xss256k -Djava.awt.headless=true -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -XX:+HeapDumpOnOutOfMemoryError -Delasticsearch -Des.pidfile=/var/run/ -Des.path.home=/usr/share/elasticsearch -cp :/usr/share/elasticsearch/lib/elasticsearch-0.90.9.jar:/usr/share/elasticsearch/lib/*:/usr/share/elasticsearch/lib/sigar/* -Des.default.config=/etc/elasticsearch/elasticsearch.yml -Des.default.path.home=/usr/share/elasticsearch -Des.default.path.logs=/var/log/elasticsearch -Des.default.path.conf=/etc/elasticsearch org.elasticsearch.bootstrap.ElasticSearch I'm coming from a 32-bit environment as well, so it's possible that is involved
1 Answer
I believe there is something wrong of course. try to reboot the droplet and see how things go.

if nothing changed, then you need to check the processes running on your server.

also you can the used RAM check to see where it is being used:

egrep --color 'Mem|Cache|Swap' /proc/meminfo

then possibly you can use ulimit to stop the RAM from being over used if you like:

ulimit -S -n 2048
ulimit -n 2048
ulimit -S -n 4096

or whatever limit you like to limit all process at...

Good luck!!
Have another answer? Share your knowledge.