wood burning stoves 2.0*
The moose likes Performance and the fly likes server side tuning Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Performance
Bookmark "server side tuning" Watch "server side tuning" New topic
Author

server side tuning

Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8904

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


Groovy
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
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.


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
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

Joined: Oct 20, 2004
Posts: 8
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

Joined: Feb 27, 2002
Posts: 8904

Thanks
 
jQuery in Action, 2nd edition
 
subject: server side tuning
 
Similar Threads
Processing Slowly until page not found
How to Call a web service from behind a firewall/Proxy
Dynamic Graphs
How i can connect to MSSQL server
totally new to WebLogic