Tomcat thread priority

dannysh
dannysh used Ask the Experts™
on
Hi all
I am trying to improve application running on tomcat 4.0.6 VM.
The tomcat has about 50 thread for accepting clients request and the application creates more 50 for internal use , How the tomcat will prioritize the threads? will it give the higer priority for accespting clients request?
Is it possible to change it?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Commented:
The Thread class has methods for accessing a threads priority, and the ThreadGroup it belongs to. ThreadGroup has methods for accessing a parent ThreadGroup.

Starting with Thread.currentThread() you could navigate through all the systems threads and see what priority they have been set to.

That will give you some information. It is possible to set the priorities of Threads using setPriority depending on the security policy.
Mick BarryJava Developer
Top Expert 2010

Commented:
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

Accept adhara's comment as answer

Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

objects
EE Cleanup Volunteer

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial