![]() |
|
To process concurrent requests, modify the <worker-thread count> tag.
web-config.xml file. The entry in web-config.xml is: <worker-thread-count>200</worker-thread-count>
The default value is 50. The value can be modified as:
Note: The value can be decreased to 1/10th of total number requests received at peak loads collected by statistics.
For Web sites with many hits but less processing time, static pages and dynamic pages with lower process times should have high worker thread count. For Web sites having high processing time with comparably low hit rate, the worker thread count value should be lower.
Each request requires a single thread. Concurrent processing of high loads require equal number of threads. Number of threads should be limited to a lower value depending on the OS and available resources.
To view the worker-threads, use the status command at the command shell. This displays the number of threads created and the number of threads in waiting.
If compared to the actual number, the number of waiting threads is high, it means a lot of threads are waiting unnecessarily, which may degrade the performance. This is because of extensive context switches, reduced time slices, and memory consumption. Reducing the thread count improves performance.
If the number of threads that are waiting are low, some requests are either waiting to get processed or are not getting accepted. Increasing the count improves performance.
This value can be modified using the Console. To do this, log on to the Console and select Configure > Web Server. The Connections section displays the current acceptor thread count.
Table 1: Acceptor-thread Count
| Fields | Description |
|---|---|
| Maximum Acceptor Threads | Maximum number of acceptor threads allowed. The default is 5. |
| Maximum Secure Acceptor Threads | Number of secure acceptor threads. |
| Timeout | Server socket timeout, specified in milliseconds. The format should be of type positive-int. |
To change this value, click the Edit icon on the right.
Edit the required values and click Save.
| © Pramati Technologies 2007 | Runs on Pramati Server | Feedback | Legal |