Return-Path: X-Original-To: apmail-activemq-dev-archive@www.apache.org Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2ABCC10ED0 for ; Thu, 29 Aug 2013 08:03:55 +0000 (UTC) Received: (qmail 42399 invoked by uid 500); 29 Aug 2013 08:03:54 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 42298 invoked by uid 500); 29 Aug 2013 08:03:53 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 41994 invoked by uid 99); 29 Aug 2013 08:03:52 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Aug 2013 08:03:52 +0000 Date: Thu, 29 Aug 2013 08:03:52 +0000 (UTC) From: "Andy Gumbrecht (JIRA)" To: dev@activemq.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Reopened] (AMQ-4205) Expose thread pool configuration MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AMQ-4205?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Andy Gumbrecht reopened AMQ-4205: --------------------------------- Adding a patch for a more useful 120 second idle timeout: The use case is that if a pooled thread is not used within 10 seconds then it is destroyed. A new thread process is then created on a subsequent call. There are three such pools configured with low idle times. If polling of any kind occurs at 11 or more seconds (such as keep alive for example) then a new thread is created every time. Watching processes (using VisualVM) of a relatively idle server one can see excessive thread creation and termination due to these low timeouts. If the timeout is not going to be exposed for configuration then I would at least suggest a more reasonable 120 seconds. > Expose thread pool configuration > -------------------------------- > > Key: AMQ-4205 > URL: https://issues.apache.org/jira/browse/AMQ-4205 > Project: ActiveMQ > Issue Type: Improvement > Components: Broker, Transport > Affects Versions: 5.8.0 > Environment: NA > Reporter: Andy Gumbrecht > Priority: Minor > Labels: Thread, pool > Fix For: 5.9.0 > > Original Estimate: 24h > Remaining Estimate: 24h > > Default thread pool timeout can be too low which in turn causes excessive thread death and re-creation in AbstractInactivityMonitor.java (default 10 seconds) and TaskRunnerFactory.java (default 30 seconds). > It would be great if these pools were configurable. > The target to aim for is that pooled threads never die under normal load ('normal' being use case specific). > See http://activemq.2283324.n4.nabble.com/InactivityMonitor-Creating-too-frequent-threads-td4656752.html#a4659878 -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira