IntelliJ Java IDE
The moose likes Web Services Certification (SCDJWS/OCPJWSD) and the fly likes Increasing memory for the webservice Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Professional Certification » Web Services Certification (SCDJWS/OCPJWSD)
Reply Bookmark "Increasing memory for the webservice" Watch "Increasing memory for the webservice" New topic
Author

Increasing memory for the webservice

Nitin Mehhta
Ranch Hand

Joined: May 18, 2004
Posts: 48
Hi All,
I have a java webservice, running on websphere4.0, which runs out of memory very frequently. Please advice as to what I can do to rectify the situation. I'm very new to webservice. If this is not the correct forum for this question then please move it to some place relevant.

Thanks
Nitin
Chintan Rajyaguru
Ranch Hand

Joined: Aug 19, 2001
Posts: 341
I think the question belongs to Web services, SOAP ... forum but I do not think I am authorized to move this question to that thread.

First, I wish your question were little clearer; "which runs out of memory very frequently..." What runs out of memory? WAS? your code? What do you get out of memory error?

There are many reasons why this might happen:
[1] Your machine does not have enough RAM. WAS 4.0 recommends 512 MB I believe. If you are using windows, go Start > All programs > Accessories > System Tools > System Information
[2] You did not allocate enough memory to JVM. There is way to allocate memory to WAS. You have to specify some command line arguments to increase the memory it uses. Do some research on how to set this.
[3] Your code consumes a lot of memory quickly enough that the garbage collector cannot reclaim the memory.

It might help if you could post the stack trace here.


ChintanRajyaguru.com
SOADevelopment.com - Coming soon!
 
 
subject: Increasing memory for the webservice
 
Threads others viewed
Multi Dimensional Arrays Java Axis Issues invoking .NET Webservice
Webservice with Tomcat
How to use webserive in old application ?
Sample Webservice
sending large files through webservice
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com