updating Jvm memory in Tomcat

Discussions

EJB programming & troubleshooting: updating Jvm memory in Tomcat

  1. updating Jvm memory in Tomcat (2 messages)

    Hi,
    anybody knows how to set the JVM memory usage in Tomcat webserver?

    In my machine, the VM may not be using all of the machines available memory. So i have to Increase the
    size of the JVM memory with the following command:

    java -ms32000000 -mx128000000 classname

    This will set the initial size to 32M and the max size to 128M.

    Please let me know if anybody has any idea.

    thanks
    sandip
  2. updating Jvm memory in Tomcat[ Go to top ]

    Hi Sandip,

    I think u already have sufficient memory allocated for the server. even if u go beyond than what u r using currently, will not improve performance of ur server ( if that's the intention).

    There are many factors like hardware dependent factors, OS dependent factors, code itself, server implementation etc. that affects the performance of tomcat server.

    Kailash
  3. updating Jvm memory in Tomcat[ Go to top ]

    Whay do you want it to use memory?

    It will start to use more memory if you throw more requests at it (Since each request = a thread = a stack + more information on the heap if your thread creates objects.)

    Chz

    Tony