java.lang.OutOfMemoryError

Hi experts,

I have a problem with java memroy with the application I run.

This application freezes after 2 or 3 days giving java.lang.outofmemoryerror.

I tried this command:

java -Xms512m -Xmx512m

but nothing happened

this is what a got

C:\jdk1.3.1_09\jre\bin>java -Xms512m -Xmx512m

Usage: java [-options] class [args...]

(to execute a class)

or java -jar [-options] jarfile [args...]

(to execute a jar file)

where options include:

-hotspotto select the "hotspot" VM

-serverto select the "server" VM

-classicto select the "classic" VM

If present, the option to select t

The default VM is -hotspot.

-cp -classpath <directories and zip/jar files se

set search path for application cl

-D><name>=<value>

set a system property

-verbose[:class|gc|jni]

enable verbose output

-versionprint product version and exit

-showversion print product version and continue

-? -helpprint this help message

-Xprint help on non-standard options

please help me with this....

[1150 byte] By [deepak@stara] at [2007-11-27 11:45:08]
# 1

The xms and xmx options you supplied simply allocate a min and max ammount of memory for the heap.

You can try setting the maximum higher, but if you are getting this exception after a few days, I would say you have a memory leak in your code.

TimSparqa at 2007-7-29 18:00:02 > top of Java-index,Java HotSpot Virtual Machine,Specifications...