File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how: this configuration for linux

 
Manuel Jordan
Ranch Hand
Posts: 131
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Joe Ess
Bartender
Posts: 9214
9
Linux Mac OS X Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Manuel Jordan
Ranch Hand
Posts: 131
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9214
9
Linux Mac OS X Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 131
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic