Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 44865 invoked from network); 19 Feb 2008 18:03:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Feb 2008 18:03:18 -0000 Received: (qmail 47135 invoked by uid 500); 19 Feb 2008 18:03:12 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 46768 invoked by uid 500); 19 Feb 2008 18:03:11 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 46750 invoked by uid 99); 19 Feb 2008 18:03:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Feb 2008 10:03:11 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Feb 2008 18:02:47 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id EB2D4234C048 for ; Tue, 19 Feb 2008 10:02:44 -0800 (PST) Message-ID: <1691482192.1203444164961.JavaMail.jira@brutus> Date: Tue, 19 Feb 2008 10:02:44 -0800 (PST) From: "Serge Tsv (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Commented: (DERBY-3378) Derby's timer thread should have a name that identifies it as belong to a derby instance In-Reply-To: <22456904.1201894867875.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DERBY-3378?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12570343#action_12570343 ] Serge Tsv commented on DERBY-3378: ---------------------------------- Hello! It looks like all the created daemon threads are using a common naming convention with a "derby." name prefix. It's possible because all the daemons are created using a ModuleFactory#getDeamonThread(...) method with a single implementation in BaseMonitor, which actually hardcodes the "derby." prefix. As for a SingletonTimerFactory, I think the first step could be to hardcode a "derby." prefix and choose some obvious name for a Timer deamon thread. And the next step could be to create a constant for a common thread prefix and probably an utility method which will return a full thread name by a specified name. I do also think it won't be much effort to refactor existing code to use APIs which provide a common thread-naming scheme, which could be implemented in a final iteration. I think I could handle the tasks with your approval. Thanks! > Derby's timer thread should have a name that identifies it as belong to a derby instance > ---------------------------------------------------------------------------------------- > > Key: DERBY-3378 > URL: https://issues.apache.org/jira/browse/DERBY-3378 > Project: Derby > Issue Type: Improvement > Components: Newcomer, Services > Reporter: Daniel John Debrunner > Priority: Minor > > Looking at the threads with jconsole when derby is running shows derby's timer thread as Timer-0. > All other derby threads are given a name starting with 'derby.', would be useful if the same was true for the timer thread. > In SingletonTimerFactory just use the Timer constructor that takes a name. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.