• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Rob Spoor
  • Devaka Cooray
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Jj Roberts
  • Al Hobbs
  • Piet Souris

Changing Xms and XmX Parameters in tomcat.

 
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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..! ''
 
Rancher
Posts: 43027
76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Nitin Menon
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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.
 
Ranch Hand
Posts: 1179
Mac OS X Eclipse IDE
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
 
Nitin Menon
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 470
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic