Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Tomcat thread priority

Posted on 2003-10-23
3
701 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
ID: 9612120
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
ID: 10215245
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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
custom annotations 9 42
iterator/ListIterator approach 17 39
Unhandled exception type Exception 18 42
Eclipse for Java EE development 2 28
An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
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 …

829 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