Pages - Menu

How to increase default work manager threads

Saturday, July 27, 2013

The default workmanager, as its name tells, is the workmanager defined by default.
Thus, all applications deployed on WLS will use it. The default workmanager belongs to a threadpool.

As the initial threadpool comes with only five threads, that's not much.














































If your application has to face a large number of hits, you may want to start with more than that. 
Well, that's quite easy. You've got two ways to do so.

1) Modifying the config.xml
Just add the following line(s) in your server definition :

<server>
<name>AdminServer</name>
<self-tuning-thread-pool-size-min>100</self-tuning-thread-pool-size-min>
<self-tuning-thread-pool-size-max>200</self-tuning-thread-pool-size-max>
[...]
</server>
2) Adding some JVM parameters

Personally, that's my favorite option since I don't like when people go in a generated config file and mess up with tags. If you're sure of what you're doing, that's ok, but it's safer the following way :

add the following option in your command line : 
-Dweblogic.threadpool.MinPoolSize=100


Observing the result






No comments:

Post a Comment

 

Archives

Blogger news

Blogroll

Most Reading