w_serena
asked on
Heap size on tomcat 6
I have Apache Tomcat 6 installed on my PC. If I deploy more than 2 applications in Tomcat, it starts giving me "Heap size: Out of memory" exception.
I have 4 GB RAM and windows XP OS.
Can someone please let me know how to increase the Heap Size.
I have 4 GB RAM and windows XP OS.
Can someone please let me know how to increase the Heap Size.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
If you use ApacheTomcatMonitor you can easily set (like objects said before) in the menu "Configure" and tab "Java".
ASKER
Thanks a lot for replying.
>> add -Xmx1g to the JAVA_OPTS environemtn var
Where can I find that? I cannot find it in Control Panel --> System --> environment variables
>>If you use ApacheTomcatMonitor you can easily set (like objects said before) in the menu "Configure" and tab "Java".
How to use Apache tomcat Monitor? I think it comes in the sidebar once you install Tomcat. But I didn't install tomcat. I downloaded the zip from Apache site and upon unzipping started using it. There was no installation.
>> add -Xmx1g to the JAVA_OPTS environemtn var
Where can I find that? I cannot find it in Control Panel --> System --> environment variables
>>If you use ApacheTomcatMonitor you can easily set (like objects said before) in the menu "Configure" and tab "Java".
How to use Apache tomcat Monitor? I think it comes in the sidebar once you install Tomcat. But I didn't install tomcat. I downloaded the zip from Apache site and upon unzipping started using it. There was no installation.
> Where can I find that? I cannot find it in Control Panel --> System --> environment variables
add it
add it
ASKER
thanks a lot for replying.
I have made this setting. Still I am sometimes getting Out of Memory exception.
I tried setting the value as -Xmx2g for JAVA_OPTS, user variable. If I do that the tomcat server does not start.
shouldn't 2GB be acceptable when my system shows total RAM as 3.46 GB?
I have made this setting. Still I am sometimes getting Out of Memory exception.
I tried setting the value as -Xmx2g for JAVA_OPTS, user variable. If I do that the tomcat server does not start.
shouldn't 2GB be acceptable when my system shows total RAM as 3.46 GB?
try increasing it
how much ram do your webapps need?
how much ram do your webapps need?
ASKER
2GB. I increased it as mentiond above by setting -Xmx2g for JAVA_OPTS but server doesn't start if I do that