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; depends on the memory the hardware has.
Tomcat has to be stopped while editing this file. Afterwards tomcat can be started with the command
/etc/init.d/tomcat start
Popularity: 1% [?]
1 Comment to “Out of memory error of tomcat on Debian 5.0 Lenny”
Post comment
Recent Posts
- Free Hosting + Domain Name Giveaway From ITOperationz
- Windows VS Windows
- Download The Best Skins Of Windows Media Player
- Lucky Microsoft, Getting Malware Code Automatically
- Use Linux and Unix Operating Systems On Your Web Browser
- 100% How to Install and Configure Apache-Tomcat 6 on Debian 5 LENNY with apache2
- 39% Ubuntu Theme for Windows7
- 34% Microsoft Security Essentials Update Error
- 28% PowerEdge 2650 ESM (Embedded Server Management) error
- 26% Install Windows XP, Vista and 7 from a USB
- 23% Desktop Refers to a Location That is Unavailable
- 21% Microsoft Security Essential Installation Error
- 20% Ultimate List of Windows 7 Desktop Wallpapers
- 17% Multiple Instances of Apache Tomcat 6 on Debain5 Lenny
- 17% how to install Apache Tomcat 6 on Debian 5 (Lenny)
Blogroll
Recent Comments
- Freebie Free Domain Name and hosting on Free Hosting + Domain Name Giveaway From ITOperationz
- Walter Barnes on Free Hosting + Domain Name Giveaway From ITOperationz
- Mayank on Free Hosting + Domain Name Giveaway From ITOperationz
- jayampathi on Free Hosting + Domain Name Giveaway From ITOperationz
- John on Free Hosting + Domain Name Giveaway From ITOperationz
That is a very good post. keep it up.