You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Christoph Kutzinski (JIRA)" <ji...@apache.org> on 2008/01/24 11:35:34 UTC
[jira] Created: (POOL-121) Provide thread name for EvcitionTimer
Provide thread name for EvcitionTimer
-------------------------------------
Key: POOL-121
URL: https://issues.apache.org/jira/browse/POOL-121
Project: Commons Pool
Issue Type: Improvement
Affects Versions: 1.3, 1.4
Reporter: Christoph Kutzinski
Priority: Trivial
When taking thread dumps and while debugging, I always like when each thread has a speaking name. Therefore I suggest that Pool's EvictionTimer should have a name, too.
E.g.:
instead of
_timer = new Timer(true);
use
_timer = new Timer("commons-pool-EvictionTimer", true);
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Reopened: (POOL-121) Provide thread name for EvcitionTimer
Posted by "Mark Thomas (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/POOL-121?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mark Thomas reopened POOL-121:
------------------------------
Thanks for catching that. It was unintentional.
I have backed out the change that will have to wait until POOL 2.0
> Provide thread name for EvcitionTimer
> -------------------------------------
>
> Key: POOL-121
> URL: https://issues.apache.org/jira/browse/POOL-121
> Project: Commons Pool
> Issue Type: Improvement
> Affects Versions: 1.3, 1.4
> Reporter: Christoph Kutzinski
> Priority: Trivial
> Fix For: 2.0
>
>
> When taking thread dumps and while debugging, I always like when each thread has a speaking name. Therefore I suggest that Pool's EvictionTimer should have a name, too.
> E.g.:
> instead of
> _timer = new Timer(true);
> use
> _timer = new Timer("commons-pool-EvictionTimer", true);
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (POOL-121) Provide thread name for EvcitionTimer
Posted by "Mark Thomas (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/POOL-121?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mark Thomas updated POOL-121:
-----------------------------
Fix Version/s: (was: 1.5)
2.0
> Provide thread name for EvcitionTimer
> -------------------------------------
>
> Key: POOL-121
> URL: https://issues.apache.org/jira/browse/POOL-121
> Project: Commons Pool
> Issue Type: Improvement
> Affects Versions: 1.3, 1.4
> Reporter: Christoph Kutzinski
> Priority: Trivial
> Fix For: 2.0
>
>
> When taking thread dumps and while debugging, I always like when each thread has a speaking name. Therefore I suggest that Pool's EvictionTimer should have a name, too.
> E.g.:
> instead of
> _timer = new Timer(true);
> use
> _timer = new Timer("commons-pool-EvictionTimer", true);
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (POOL-121) Provide thread name for EvcitionTimer
Posted by "Mark Thomas (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/POOL-121?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mark Thomas resolved POOL-121.
------------------------------
Resolution: Fixed
Yes, there may be multiple EvictionTimers per JVM but there is only one EvictionTimer per classloader. One EvictionTimer may be supporting multiple pools so I just appended a classloader ID to the thread name.
> Provide thread name for EvcitionTimer
> -------------------------------------
>
> Key: POOL-121
> URL: https://issues.apache.org/jira/browse/POOL-121
> Project: Commons Pool
> Issue Type: Improvement
> Affects Versions: 1.3, 1.4
> Reporter: Christoph Kutzinski
> Priority: Trivial
> Fix For: 1.5
>
>
> When taking thread dumps and while debugging, I always like when each thread has a speaking name. Therefore I suggest that Pool's EvictionTimer should have a name, too.
> E.g.:
> instead of
> _timer = new Timer(true);
> use
> _timer = new Timer("commons-pool-EvictionTimer", true);
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (POOL-121) Provide thread name for EvcitionTimer
Posted by "John Bollinger (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/POOL-121?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12699816#action_12699816 ]
John Bollinger commented on POOL-121:
-------------------------------------
It looks like the fix for this issue (SVN revision 760963) broke compatibility with Java 1.4: it relies on a constructor for java.util.Timer that was added in Java 5. Is that intentional?
> Provide thread name for EvcitionTimer
> -------------------------------------
>
> Key: POOL-121
> URL: https://issues.apache.org/jira/browse/POOL-121
> Project: Commons Pool
> Issue Type: Improvement
> Affects Versions: 1.3, 1.4
> Reporter: Christoph Kutzinski
> Priority: Trivial
> Fix For: 1.5
>
>
> When taking thread dumps and while debugging, I always like when each thread has a speaking name. Therefore I suggest that Pool's EvictionTimer should have a name, too.
> E.g.:
> instead of
> _timer = new Timer(true);
> use
> _timer = new Timer("commons-pool-EvictionTimer", true);
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (POOL-121) Provide thread name for EvcitionTimer
Posted by "Bryce Alcock (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/POOL-121?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12608471#action_12608471 ]
Bryce Alcock commented on POOL-121:
-----------------------------------
Can you have multiple Timers (Eviction Timers) in the same JVM?
If so can the name be dynamic to reflect it's Pool Instance?
Also, if you know prior to the thread being created, it would be cool to
code its run period (just a thought)
> Provide thread name for EvcitionTimer
> -------------------------------------
>
> Key: POOL-121
> URL: https://issues.apache.org/jira/browse/POOL-121
> Project: Commons Pool
> Issue Type: Improvement
> Affects Versions: 1.3, 1.4
> Reporter: Christoph Kutzinski
> Priority: Trivial
> Fix For: 1.5
>
>
> When taking thread dumps and while debugging, I always like when each thread has a speaking name. Therefore I suggest that Pool's EvictionTimer should have a name, too.
> E.g.:
> instead of
> _timer = new Timer(true);
> use
> _timer = new Timer("commons-pool-EvictionTimer", true);
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (POOL-121) Provide thread name for EvcitionTimer
Posted by "Phil Steitz (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/POOL-121?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12565270#action_12565270 ]
Phil Steitz commented on POOL-121:
----------------------------------
Anyone see any problems with this? Might be safer to append this to the thread's OS-name or somesuch.
> Provide thread name for EvcitionTimer
> -------------------------------------
>
> Key: POOL-121
> URL: https://issues.apache.org/jira/browse/POOL-121
> Project: Commons Pool
> Issue Type: Improvement
> Affects Versions: 1.3, 1.4
> Reporter: Christoph Kutzinski
> Priority: Trivial
> Fix For: 1.5
>
>
> When taking thread dumps and while debugging, I always like when each thread has a speaking name. Therefore I suggest that Pool's EvictionTimer should have a name, too.
> E.g.:
> instead of
> _timer = new Timer(true);
> use
> _timer = new Timer("commons-pool-EvictionTimer", true);
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (POOL-121) Provide thread name for EvcitionTimer
Posted by "Phil Steitz (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/POOL-121?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Phil Steitz updated POOL-121:
-----------------------------
Fix Version/s: 1.5
> Provide thread name for EvcitionTimer
> -------------------------------------
>
> Key: POOL-121
> URL: https://issues.apache.org/jira/browse/POOL-121
> Project: Commons Pool
> Issue Type: Improvement
> Affects Versions: 1.3, 1.4
> Reporter: Christoph Kutzinski
> Priority: Trivial
> Fix For: 1.5
>
>
> When taking thread dumps and while debugging, I always like when each thread has a speaking name. Therefore I suggest that Pool's EvictionTimer should have a name, too.
> E.g.:
> instead of
> _timer = new Timer(true);
> use
> _timer = new Timer("commons-pool-EvictionTimer", true);
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.