We've been using a slightly older version of this script to start Solr in server environments:
https://github.com/apache/cassandra/blob/trunk/conf/cassandra-env.sh The thing I especially like about it is its ability to dynamically cap memory usage, and the garbage collection log section is a great reference when we need to check gc times. My question is, does anyone else use a script like this to configure the JVM for Solr? Would it be useful to have this as a reference in solr/example/etc? Thanks! -Scott