Issue Details (XML | Word | Printable)

Key: DIRMINA-156
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Trustin Lee
Reporter: Julien Vermillard
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
MINA

Name of threads created for Service ThreadPoolFilter aren't very revelant

Created: 29/Dec/05 09:21 PM   Updated: 26/May/09 12:48 AM
Return to search
Component/s: None
Affects Version/s: 0.9.0
Fix Version/s: 0.9.3

Time Tracking:
Not Specified

Environment: MINA 0.9, looking at Thread list of a MINA server using jconsole

Resolution Date: 12/Mar/06 05:40 PM


 Description  « Hide
all the threads created by the ThreadPoolFilters, added to Services by the SimpleServiceRegistry got the name "PoolThreadXXX".
a prefix with the service name whould be usefull for debuging or reading logs

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Trustin Lee added a comment - 29/Dec/05 09:37 PM
The built-in thread pool in SimpleServiceRegistry is shared by multiple services, so we cannot set the service name. Of course we can call Thread.setName(String) whenever we process new session, but it will be quite expensive.

Julien Vermillard added a comment - 29/Dec/05 09:51 PM
a ThreadPool per service won't make sense ? so you can control threading per service ?

Trustin Lee added a comment - 03/Jan/06 05:42 PM
if you need more control over therad model, then you'd better use IoAcceptor directly IMHO. ServiceRegistry might be removed before we release 1.0 because we'll simplify the API so we don't need any frontend API anymore, so it makes sense considering current situation.

Trustin Lee added a comment - 26/Feb/06 09:30 AM
Will fix this in 0.9.3.

Trustin Lee added a comment - 12/Mar/06 05:40 PM
DIRMINA-190 resolves this issue. Please specify your own thread model like an example.