aspose file tools*
The moose likes Tomcat and the fly likes Changing Xms and XmX Parameters in tomcat. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Changing Xms and XmX Parameters in tomcat." Watch "Changing Xms and XmX Parameters in tomcat." New topic
Author

Changing Xms and XmX Parameters in tomcat.

Nitin Menon
Ranch Hand

Joined: Jun 13, 2007
Posts: 79
Hi,
Can anyone please educate me on the below issue :

I run my application application on tomcat 5.5 with jre 1.5. It runs on a Redhat linux server machine. I use eclipse 3.3 to develop the application. Recently, there has been a requirement to make changes on the Xms and XmX parameters as we have been developing some file reading functionalities and we've been having some errors about memory issues. The problem got solved after getting done the above task on my developer client machine. The changes are to be made on the Server machine too.
On the server machine, I deploy the application by putting the WAR file in the Webapps folder. I have never tried the Xms, XmX configuration on linux. (As a matter of fact, I have done it on my client developer machine).
What I would like to know is, if i make changes on the Tomcat to alter the above parameters, will it in any way effect other applications using the system's JRE but, running on other web servers?
I believe the changes are supposed to be made to the catalina.sh or some other file in Tomcat_home and not to any other installed java files.
Can anyone please share more knowledge on all of the above matters?

Thanks in advance..! ''
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41865
    
  63
Yes, catalina.sh is the place to make this kind of change. And no, this won't effect any other Java processes - just the Tomcat process.


Ping & DNS - my free Android networking tools app
Nitin Menon
Ranch Hand

Joined: Jun 13, 2007
Posts: 79
Ulf Dittmer wrote:Yes, catalina.sh is the place to make this kind of change. And no, this won't effect any other Java processes - just the Tomcat process.


Thank you very much. Can you give me some tips doing the same on linux. that is, The points to noted while doing it.
Rene Larsen
Ranch Hand

Joined: Oct 12, 2001
Posts: 1179

Nitin Menon wrote:
Ulf Dittmer wrote:Yes, catalina.sh is the place to make this kind of change. And no, this won't effect any other Java processes - just the Tomcat process.


Thank you very much. Can you give me some tips doing the same on linux. that is, The points to noted while doing it.


On windows it would be in catalina.bat - and on Linux/Unix/Mac it would be in catalina.sh


Regards, Rene Larsen
Dropbox Invite
Nitin Menon
Ranch Hand

Joined: Jun 13, 2007
Posts: 79
My Server system has 3 GB of Ram which runs on Redhat. The XmX is already set as 512 mb. i need to increase it. So, how is the XmX and Xms ratio to be set for a stable and optimum performance.
Misha Ver
Ranch Hand

Joined: Mar 03, 2008
Posts: 470
Nitin Menon wrote:My Server system has 3 GB of Ram which runs on Redhat. The XmX is already set as 512 mb. i need to increase it. So, how is the XmX and Xms ratio to be set for a stable and optimum performance.


The answer is "it depends". Google for something like "JVM tuning" for you particular JVM.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Changing Xms and XmX Parameters in tomcat.