Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

java.lang.OutOfMemoryError

Status
Not open for further replies.

manu0

Programmer
Apr 28, 2001
54
hi

sometimes I get an "java.lang.OutOfMemoryError"

when requesting a jsp file...

does someone know exactly the reasons of that error ?

does that come from the http server or from the servlet container ?
manu0
 
the servlet is run from java.exe in some context (right?), and that program has only been given so much memory by the OS. You can change your Java options. (you'd have to go into the batch files that run your servlet container, depending on what kind you use.)<br><br>I remember running out of memory several times while running javadoc (which is essentially a java app) for a large project... however, looking at the command line options, I don't remember how I increased the memory allocation for it. I'm quite sure that javadoc just passed the argument on to java.exe (possibly through the &quot;-D&lt;name&gt;=&lt;value&gt;&quot; in java.exe). You might want to check there. Also, depending on what server you're running on, you might be able to increase memory allocation through the server itself as opposed to having the java.exe program ask for it.<br><br>Best of luck. <p>Liam Morley<br><A HREF="mailto:"></A><br>&quot;light the deep, and bring silence to the world.<br>light the world, and bring depth to the silence.&quot;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top