Solved

Tomcat thread priority

Posted on 2003-10-23
3
685 Views
Last Modified: 2013-11-24
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?
0
Comment
Question by:dannysh
3 Comments
 

Accepted Solution

by:
adhara earned 40 total points
Comment Utility
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.
0
 
LVL 92

Expert Comment

by:objects
Comment Utility
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
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now