[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Tomcat and heap space

Posted on 2005-05-17
2
Medium Priority
?
3,357 Views
Last Modified: 2013-11-24
Hi,
   After running for a few weeks, my application ran out of heap space. I'm using Tomcat 5 and I haven't changed any defaults so I'd be grateful if someone could tell me how much heap it takes by default and how I can increase it?

Thanks in advance!
0
Comment
Question by:petepalmer
  • 2
2 Comments
 
LVL 29

Accepted Solution

by:
bloodredsun earned 500 total points
ID: 14017771
So you're getting an OutOfMemory Exception from your webapp?

You can increase the Xms/Xms values in the env e.g.
OPT_CATALINA with -server Xmx=? and Xms=? (where ? depends on you system)

You need to look at your webapp to find out whether you have a memory leak and also ensure that you do not have servlet-reloading enabled for a production machine.
0
 
LVL 29

Expert Comment

by:bloodredsun
ID: 14017778
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
Suggested Courses
Course of the Month18 days, 15 hours left to enroll

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question