- This topic has 4 replies, 2 voices, and was last updated 15 years, 1 month ago by support-joy.
-
AuthorPosts
-
Todd EnersenMemberHow can I increase the amount of memory given to tomcat 5.5 from the Servers dialog? There seems to be no way of doing from the UI, as adding -Xmx1024m to the “Optional Program Args” section passes the parameter on the wrong side of the arg stream to the JVM.
Is there a config file somewhere that I can hand patch?
support-joyMembertenersen,
I am unable to replicate the issue at my end. I have also verified the heap size using Visual VM tool(integrated with MyEclipse)
adding -Xmx1024m to the “Optional Program Args” section passes the parameter on the wrong side of the arg stream to the JVM
I am not sure what you mean by this. Can you attach screenshots in support of your above statement?
In case you have configured tomcat outside MyEclipse, I would recommend you to follow below steps –
If you hare on windows OS, go to Start > Programs > Apache Tomcat > Tomcat Configuration > Java (tab).
Specify your required sizes in initial and max heap sizes.
Note: When you install this way, these settings are stored in Windows Registry.Attachments:
You must be logged in to view attached files.
Todd EnersenMemberJoy,
I’m not using Windoze, rather MacOSX.
Here’s what I mean by the wrong side. Adding the parameter -Xmx1024 to my servers -> edit -> tomcat5 -> optional program arguments produces the following in my console log:
usage: java org.apache.catalina.startup.Catalina [ -config {pathname} ] [ -nonaming ] { start | stop }
Oct 6, 2009 9:57:46 AM org.apache.coyote.http11.Http11BaseProtocol initalso, a ps aux | grep java looks like this:
/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/bin/java -agentlib:jdwp=transport=dt_socket,suspend=y,address=localhost:50700 -Dcatalina.home=/Users/tenersen/Downloads/tomcat/apache-tomcat-5.5.27 -Dcatalina.base=/Users/tenersen/Downloads/tomcat/apache-tomcat-5.5.27 -Djava.endorsed.dirs=/Users/tenersen/Downloads/tomcat/apache-tomcat-5.5.27/common/endorsed -Djava.io.tmpdir=/Users/tenersen/Downloads/tomcat/apache-tomcat-5.5.27/temp -Djava.library.path=/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/bin:/Users/tenersen/Downloads/tomcat/apache-tomcat-5.5.27/bin -Dsun.io.useCanonCaches=false -classpath /Users/tenersen/Downloads/tomcat/apache-tomcat-5.5.27/bin/bootstrap.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/lib/tools.jar org.apache.catalina.startup.Bootstrap -Xmx1024m startHere the -Xmx1024m needs to be specified before the name of the class that is being run, namely org.apache.catalina.startup.Bootstrap.
Otherwise it won’t take.
Todd EnersenMemberJoy,
Never mind, I found the option through another dialog. Thx for your help, the pictures clued me in to were to look, even though it was a different platform.
support-joyMemberGood to hear you are all set.
-
AuthorPosts