Set Up Configuration for HTTP Service

The HTTP Service configuration settings described in this section are suggested defaults. These settings are very important. There are no right values to define; the values depend on the specifics of your web traffic, how many requests you get, how long they take to process on average, and your hardware. For detailed information, refer to the Java Application Server Administration Guide, available at the Sun Microsystems Documentation web site at the following URL:
http://docs.sun.com/app/docs

Note: If your server becomes so busy that it drops connections, adjust the Thread Counts to improve performance.

To configure the GlassFish server’s HTTP Service, set the server’s Configuration options as follows:

  1. Configure the HTTP Service option for HTTP Listeners with the following settings for http-listener-1:
    • General Settings option for Listener Port - 80
    • Advanced option for Acceptor Threads - The number of CPUs (or cores, if multicore) on your server
  2. Configure the HTTP Service option for RequestProcessing with the following initial recommended settings:
    • Thread Count - Twice the number of CPUs (cores) on your server
    • Initial Thread Count - The number of CPUs (cores)
    • Thread Increment - 1