Saturday, March 19, 2011

Java memory problems...

Java virtual machine running out of memory in sipXecs / openUC?

This will manafest itself as Configuration pages not loading and other
Java related errors...


Edit /usr/bin/sipxconfig.sh and change a command that looks like this:

exec $JavaCmd \
$SystemProps \
$JavaOpts \
$TrustStoreOpts \
$KeyStoreOpts \
-classpath "$Classpath" \
....

to one that looks like this:

exec $JavaCmd \
-XX:MaxPermSize=128M \
-Xmx1024m \
$SystemProps \
$JavaOpts \
$TrustStoreOpts \
$KeyStoreOpts \
-classpath "$Classpath" \
.....

That should increase the fixed memory allocated in the JVM...

No comments: