Development

Setting Up Java Heap Space in Tomcat 6 on Windows 2003

Setting up java heap space in windows is not a big deal. You just need to open a file named CATALINA and replace the old entries but if you guys have installed apache tomcat6 on windows 2003 using MSI installer then you are at a right place. Under given are few easy steps to do this task; 1. Open the installation folder of Apache Tomcat6. (In My Case Its C:\Program Files\Apache Software Foundation\Tomcat 6.0) 2. Go to Bin Folder 3. Double click the EXE tomcat6w 4. Go to java tab and s...

How to set Java heap space in Apache Tomcat?

If Java runs out of memory, the following error occurs: Exception in thread "main" java.lang.OutOfMemoryError: Java heap space This can have two reasons: Your Java application has a memory leak. There are tools like YourKit Java Profiler that help you to identify such leaks. Your Java application really needs a lot of memory (more than 128 MB by default!). In this case the Java heap size can be increased using the following runtime parameters: java -Xms<initial heap si...

Out of Memory Error of Tomcat 6 on Microsoft windows

Open the Apache Tomcat configuration app in sys tray, and on the "Java" tab, bump up the initial memory pool size and the maximum memory pool size to 512 Initial and 768 Max, click Ok In \Program Files\Apache software Foundation\Tomcat 5.0\bin\catalina.bat, in the last section immediately after "rem Execute Java with the applicable properties", insert this line, set CATALINA_OPTS=-mx1024m. Save the file.

Out of memory error of tomcat on Debian 5.0 Lenny

The error appears because a standard Java VM (tomcat runs with such a VM) allocates only a standard value of memory. On some machines tomcat needs more memory because the OXtender for MS Outlook. Solution: To avoid that tomcat runs out of memory, the following line has to be added to the beginning of the file /usr/share/tomcat/bin/catalina.sh: JAVA_OPTS=" -server -ms20M -mx1024M " This line allocates 20 MB on startup and as a maximum 1024 MB - There can also be taken higher values;...
Web Analytics