• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

how: this configuration for linux

 
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Hey! Wanna see my flashlight? It looks like this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic