out of memory issue

i deployed one aaplication in jsp on sun sloaris server and after every one cycle i.e. 24 hrs i have to restart the aaplication and found the following error:

CORE4007: Internal error: Unexpected Java exception thrown (java.lang.OutOfMemoryError, no description), stack: java.lang.OutOfMemoryError

[310 byte] By [Lalit107a] at [2007-11-27 4:22:31]
# 1

You can set various memory related options for java.

Heres what I use on a tomcat server

JAVA_OPTS="-server -Xms1500m -Xmx1500m -XX:NewSize=400m -XX:MaxNewSize=400m -XX:

PermSize=128m -XX:MaxPermSize=196m -verbose:gc -XX:+PrintGCTimeStamps -XX:+Print

GCDetails -XX:+UseConcMarkSweepGC -XX:+UseParNewGC"

robert.cohena at 2007-7-12 9:29:51 > top of Java-index,General,Sys Admin Best Practices...