• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

server side tuning

 
Pradeep bhatt
Ranch Hand
Posts: 8927
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How do we tune a app server for memory and other settings. How dow we decide the hardware and JVM settings etc. Are there any guidelines to be followed.Thanks
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Pradeep Bhat:
How do we tune a app server for memory and other settings. How dow we decide the hardware and JVM settings etc. Are there any guidelines to be followed.Thanks

1) create a load testing script that reminds your production usage profile as closely as possible
2) start the server with profiling enabled
3) hook your profiler software to the server's JVM
4) start the load test
5) interpret the profiler's results to figure out where is the current bottleneck
6) fix the bottleneck
7) repeat from 2

In general, I'd recommend browsing the tips at javaperformancetuning.com.
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ah. I re-read your question and realized that my answer was slightly biased towards tuning your code, not the JVM. Anyway, the key is to measure instead of making wild guesses. When you have a load testing script, just run it through with various JVM settings and see how the results change.

Regarding hardware, that comes from experience. If you know some other project which had a similar usage profile, ask what kind of hardware they were using and whether that configuration was too little or too much.
 
Nomita Gairola
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
For the performance tuning there are various JVm parameters available in all jdk and some GC parameters which are available from jdk 1.4.2

disabling of the logging increases the server performance as I/O operation are heavy
 
Pradeep bhatt
Ranch Hand
Posts: 8927
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic