[jboss-user] [Performance Tuning] - Peak of CPU
picje
do-not-reply at jboss.com
Mon Mar 30 04:42:44 EDT 2009
Hello,
We use the jboss 4.0.3SP1 version and sometimes we observe a high peak of CPU (more than 150%), and if I look to the number of activethread I see 217 threads. However the maximum number of thread in the pool is configured to 25.
JBoss System Threads
System Threads
<!-- How long a thread will live without any tasks in MS -->
60000
<!-- The max number of threads in the pool -->
25
<!-- The max number of tasks before the queue is full -->
1000
<!-- The behavior of the pool when a task is added and the queue is full.
abort - a RuntimeException is thrown
run - the calling thread executes the task
wait - the calling thread blocks until the queue has room
discard - the task is silently discarded without being run
discardOldest - check to see if a task is about to complete and enque
the new task if possible, else run the task in the calling thread
-->
run
As the maximum number of thread is lower than the number of Active thread, can it explain the peak of CPU consumption? Because we create and destroy a lot of thread which are not pooled?
And of course do we have to increase the maximum number of thread in the pool and what is the limit?
by advance thanks a lot for your help.
Best Regards,
Jerome.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4221859#4221859
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4221859
More information about the jboss-user
mailing list