aspose file tools*
The moose likes Performance and the fly likes how: this configuration for linux Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Performance
Bookmark "how: this configuration for linux" Watch "how: this configuration for linux" New topic
Author

how: this configuration for linux

Manuel Jordan
Ranch Hand

Joined: Sep 29, 2006
Posts: 131
hello guys

for this useful link
tomcat performance windows

the second step works fine for windows, the question is
how i can do this for linux??

thanks in advanced


kill your pride, share your knowledge with all
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8996
    
    9

That depends on how you are starting tomcat.
Tomcat is just a java app, so you can use the java command line arguments to set the VM size (-Xms -Xmx).
Chances are you are using a script to start Tomcat so you'll have to do some digging to figure out how it sets memory arguments.


[How To Ask Questions On JavaRanch]
Manuel Jordan
Ranch Hand

Joined: Sep 29, 2006
Posts: 131
Hello Joe

thanks for the reply

i start the tomcat with this command
./catalina.sh run
or directly with eclipse with tomcatplugin

>>to set the VM size (-Xms -Xmx).
how?
i see the script and not line to change this configuration suggested by you

regards
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8996
    
    9

Look at the commented-out section at the top of catalina.sh.
It will take the environment variable JAVA_OPTS and pass them to the VM.
Manuel Jordan
Ranch Hand

Joined: Sep 29, 2006
Posts: 131
Hi Joe

thanks again for your time

i saw in catalina.sh these variables, but wondered what would be the difference between them (only the word stop for JAVA_OPTS )




can you explain me , which is really the difference?

>>or in a production startup script,
i will write this in the catalina.sh itself

regards
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how: this configuration for linux