java - Glassfish/JVM production configuration -
i found article (besides many other): https://open.bekk.no/glassfish-production-tuning
i want know if these settings fine , else need change/add or have careful of (glassfish , jvm settings)? have been using default settings during development , don't know if these setting ok...
as mentioned in comments tuning of jvm , memory complicated topic.
the server performance depends lot on technologies , libraries use , how use them. e.g. use database? , if, how connect , access db... mention few impact factors...
from expierence can more memory will not protect web application failure if have memory leaks caused e.g. open db connections or growing session size after time in production.
i not know kind of application , technologies use, give general aproach...
approach find values jvm , glassfish:
i recommend run load test e.g. jmeter , monitor garbage collection , memory usage of application.
also check size of user sessions in glassfish during tests time time , check if grow bigger.
a possible test plan might this:
- first test: short term invervall (one day) , 5 users
- second test: short term invervall (one day) , ten users
if above tests pass:
- thrid test: longer term invervall (3-5 days) , 5 users
- fourth test: longer term invervall (3-5 days) , ten users
depending on result should have indicators galssfish , jvm parameter values. lets adjust settings memory, garbage collection , on needs.
this article give hints might expect in production enviornment: http://java.dzone.com/articles/top-10-causes-java-ee
Comments
Post a Comment