Tomcat and heap space

Posted on 2005-05-17
Last Modified: 2013-11-24
   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!
Question by:petepalmer
    LVL 29

    Accepted Solution

    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.
    LVL 29

    Expert Comment


    Featured Post

    Live: Real-Time Solutions, Start Here

    Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

    Join & Write a Comment

    Suggested Solutions

    Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
    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…
    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 about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…

    733 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

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now