Search |
||
Configuring Grizzly for performance part II: Setting the proper values in domain.xmlPosted by jfarcand on March 12, 2007 at 11:04 AM PDT
This time I will describe how to properly configure Grizzly in GlassFish. The out-of-the-box values are really not appropriate when GlassFish is used in production and can gives extremely bad results. Here is a couple of recommendations to make in domain.xml: First, make sure the -server VM is used instead of client:
Disable AS Quick Startup:
Increase the number of worker threads: Increase the worker thread queue: Here -1 will configure the queue to indefinitely accept connection. You might want to increase the default value instead. Enable the http file cache: Make sure the acceptor-threads value is large enough: I usually match the value based on how many CPU are available. If you aren't planning to use WSIT, then turn off port unification by removing all occurrence of proxiedProtocols: <property name="proxiedProtocols" value="ws/tcp"/> Those modifications combined with part I will always make a difference :-) technorati: grizzly performance glassfish »
Related Topics >>
Java Enterprise Comments
Comments are listed in date ascending order (oldest first)
|
||
|