How to permanently increase Java heap space ?
1 posts in topic
Flat View  Flat View

Posted By:   ali_sajjad
Posted On:   Wednesday, November 10, 2004 01:38 PM

Hi all,

I have a web service that returns an int array. Now, if the int[] is small, everything is ok, but if its large, the client throughs following exception:-

Fault Occurred (details follow):
Fault Code: SOAP-ENV:Server.Exception:
Fault String: Java heap space

I think whats happening is that there is not enough space for larger array sizes. So how can i permanently increase the heap space ?


Re: How to permanently increase Java heap space ?

Posted By:   Aarun_Jones  
Posted On:   Sunday, November 14, 2004 03:33 PM

When you start the jvm you can choose the heap-size. Check-out this article: http://developers.sun.com/tools/cc/tips/tip02-12-20.html

How big is your array? Are you sure there are no memory leaks or unnecessary references to your objects?
About | Sitemap | Contact