How to set jvm heap size in shell script
<p>In  korn shell script I have this.</p>

<pre><code>#!/bin/ksh

. /xxxxxx/Classpath.sh
export JAVAHOME=/usr/java5
export PATH=$JAVAHOME/bin:$PATH
export PATH
export CLASSPATH
export _JAVA_OPTIONS="-Xmx1g"
java .......
</code></pre>

<p>Getting the below error. Tried the java options as above. But, still getting the same error?? Please need help with this. Thanks.</p>

<pre><code>JVMDUMP006I Processing dump event "systhrow", detail "java/lang/OutOfMemoryError" - please wait.
JVMDUMP032I JVM requested Snap dump using '......trc' in response to an event
</code></pre>