This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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: 8836
    
    7

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.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[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: 8836
    
    7

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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: how: this configuration for linux
 
Similar Threads
Survey- What platform do you use to program in Java?
For loop performance in windows vs linux
java Threading mapped with LINUX / WINDOWS OS ?
linux/unix & Windows
Java in Windows to access Linux server