16.10.2015 Views

Getting Started with WebSphere Application Server

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 10 – Tuning a Community Edition server 187<br />

- Busy Threads Max - The highest number of threads used up to now.<br />

- Busy Threads Min - The lowest number of threads used up to now.<br />

Figure 10.9 - Live statistic information for Web connectors<br />

10.3.3 Configuring the thread pool size<br />

Choosing the optimum value for the thread pool size is important to successfully configure<br />

the Community Edition server for the best performance. Setting this value too low reduces<br />

the throughput because of an increased wait time for a request to be served. Setting it too<br />

high reduces the CPU efficiency because of frequent context switching among the threads.<br />

You must find the proper balance.<br />

You can change thread pool sizes by updating the configuration files. This cannot be done<br />

using the administrative console. To apply the required changes:<br />

1. Stop the Community Edition server.<br />

2. Open the /var/config/config.xml <strong>with</strong> a text editor.<br />

3. To specify the pool size for DefaultThreadPool, insert the following <br />

element inside the<br />

<br />

element. Listing 10.1 provides an example. In the listing,<br />

replace xyz <strong>with</strong> the pool size value you desire.<br />

<br />

5000<br />

xyz<br />

<br />

Listing 10.1 - Specifying a DefaultThreadPool size<br />

4. To specify the pool size for ConnectorThreadPool, insert the following <br />

element inside the<br />

<br />

element. Listing 10.2 provides an example. In the listing, replace xyz <strong>with</strong> the pool<br />

size value you desire.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!