memory usage in ps wonky because of virtual server?

  • Posted January 9, 2014

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


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

I believe there is something wrong of course. try to reboot the droplet and see how things go. <br> <br>if nothing changed, then you need to check the processes running on your server. <br> <br>also you can the used RAM check to see where it is being used: <br> <br>egrep --color ‘Mem|Cache|Swap’ /proc/meminfo <br> <br>then possibly you can use ulimit to stop the RAM from being over used if you like: <br> <br>ulimit -S -n 2048 <br>or <br>ulimit -n 2048 <br>or <br>ulimit -S -n 4096 <br> <br>or whatever limit you like to limit all process at… <br> <br>Good luck!!