I want to stop solr by command so if find this article
echo "Stopping Solr"
cd $SOLR_DIR
java -Xmx1024m -DSTOP.PORT=8079 -DSTOP.KEY=stopkey -jar start.jar --stop
what is Xmx1024m ?
and where i will find DSTOP.KEY ?
Please tell proper procedure to start and stop solr by command line.
-XmX1024m– is the java parameter and specifies the maximum java heap size, which in your case is set to 1 GB.stopkeyis a secret key on startup which must also be present on the termination request to enhance security.You can find a detailed explanation @ http://docs.codehaus.org/display/JETTY/Securing+Jetty
Example –
Starting solr with Jetty –
Stopping Solr with Jetty –
the STOP.KEY is the secret key which should match during the stop command.