[elk@zjtest7-redis bin]$ cat elasticsearch.in.sh
if [ "x$ES_MIN_MEM" = "x" ]; then
ES_MIN_MEM=1g
fi
if [ "x$ES_MAX_MEM" = "x" ]; then
ES_MAX_MEM=1g
fi
[elk@zjtest7-redis bin]$ ps -ef | grep ela
elk 10565 1 65 13:41 pts/0 00:01:55 /usr/java/jdk1.8.0_20/bin/java -Xms1g -Xmx1g -Djava.awt.headless=true -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -XX:+HeapDumpOnOutOfMemoryError -XX:+DisableExplicitGC -Dfile.encoding=UTF-8 -Djna.nosys=true -Des.path.home=/usr/local/elasticsearch-2.3.4 -cp /usr/local/elasticsearch-2.3.4/lib/elasticsearch-2.3.4.jar:/usr/local/elasticsearch-2.3.4/lib/* org.elasticsearch.bootstrap.Elasticsearch start -d
elk 10634 10512 0 13:44 pts/0 00:00:00 grep ela
[elk@zjtest7-redis bin]$