U can add like this it will work I am using it
JAVA_OPTS="$JAVA_OPTS -Xms1024m -Xmx4096m " -- View this message in context: http://lucene.472066.n3.nabble.com/OutOfMemoryErrors-tp1181731p1183229.html Sent from the Solr - User mailing list archive at Nabble.com.