facebook

Increasing the amount of Memory for Tomcat?

  1. MyEclipse Archived
  2.  > 
  3. Application Servers and Deployment
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #302967 Reply

    Todd Enersen
    Member

    How 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?

    #302996 Reply

    support-joy
    Member

    tenersen,

    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.
    #303010 Reply

    Todd Enersen
    Member

    Joy,

    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 init

    also, 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 start

    Here 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.

    #303023 Reply

    Todd Enersen
    Member

    Joy,

    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.

    #303040 Reply

    support-joy
    Member

    Good to hear you are all set.

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: Increasing the amount of Memory for Tomcat?

This topic is marked as closed to new replies, however your posting capabilities still allow you to do so.

You must be logged in to post in the forum log in