Jconsole throws java.lang.OutOfMemoryError: Java heap space

Hi Guys,

I need a great help from all of you.

i am using jconsole to monitor my java application memory.

After some 5 days of continuous monitoring through jconsole,

i got a "java.lang.OutOfMemoryError: Java heap space" in

command line and no progress after that(because of out of memory error).

Is this a known issue or how can i overcome this ?

OS : Win 2000

Thanks,

Ants Balajei.

[449 byte] By [Antsa] at [2007-11-15]
# 1

Try to manually increase the maximum Java Heap space by using some switches in the commandline. Here are some interesting entries:

-Xms<size>set initial Java heap size

-Xmx<size>set maximum Java heap size

-Xss<size>set java thread stack size

Maybe there will be more switches that will be helpful to you, just run 'java' with -X option from the command line.

antkowya at 2007-7-12 > top of java,Core,Monitoring & Management...