Return-Path: X-Original-To: apmail-activemq-users-archive@www.apache.org Delivered-To: apmail-activemq-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 424BDDA60 for ; Thu, 20 Dec 2012 23:53:38 +0000 (UTC) Received: (qmail 87384 invoked by uid 500); 20 Dec 2012 23:53:37 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 87317 invoked by uid 500); 20 Dec 2012 23:53:37 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 87308 invoked by uid 99); 20 Dec 2012 23:53:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Dec 2012 23:53:37 +0000 X-ASF-Spam-Status: No, hits=2.8 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of christian.posta@gmail.com designates 209.85.223.176 as permitted sender) Received: from [209.85.223.176] (HELO mail-ie0-f176.google.com) (209.85.223.176) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Dec 2012 23:53:32 +0000 Received: by mail-ie0-f176.google.com with SMTP id 13so5379636iea.21 for ; Thu, 20 Dec 2012 15:53:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=IqrRMFAYH8cFRM3J3balCniNyhp2UBT5tr4W9HETvPA=; b=HDhAHzSrFjwx602snb5BtSbBl4hTgzLlcyCosr1UIG2H79VktQeWQpqyGujAX8JjS1 SU0eZ96BQWwoBrkrLxuTr2aIWK0Kwda3MadsF2fH/MPdPO9YEdLDspJ7BqfpdQY8hUUf +znpLdtJA1lArPu/DpgfurM6Le9U6G96PW/VUrn06tsppwWeFVgka39D+6uWbnXQ1+FU co4ezoLf2vEiClgCVPq92iWN2L/DXV3qI0PC/m4EBgavZ40bg3fjb0rVMsxVmbN1XIUt hkPPgNzkyYcjN0BQb1wYmidsQYeMIsyRBRNX7s7/m0LtlxFfd+AtjF+in33Q5PW8BbMB 5+YQ== MIME-Version: 1.0 Received: by 10.50.33.147 with SMTP id r19mr12282993igi.73.1356047592245; Thu, 20 Dec 2012 15:53:12 -0800 (PST) Received: by 10.50.41.100 with HTTP; Thu, 20 Dec 2012 15:53:12 -0800 (PST) In-Reply-To: <1356045288267-4660974.post@n4.nabble.com> References: <1356045288267-4660974.post@n4.nabble.com> Date: Thu, 20 Dec 2012 16:53:12 -0700 Message-ID: Subject: Re: How to protect broker from broker from exhausting resources requested by clients creating temp queues From: Christian Posta To: "users@activemq.apache.org" Content-Type: multipart/alternative; boundary=f46d04462ec808cb5404d1516fc1 X-Virus-Checked: Checked by ClamAV on apache.org --f46d04462ec808cb5404d1516fc1 Content-Type: text/plain; charset=ISO-8859-1 Not sure off the top of my head how to limit a connection from creating n number of temp destinations, but consider turning dedicated task runner to false so that a new thread isn't created for every destination: http://activemq.apache.org/how-do-i-configure-10s-of-1000s-of-queues-in-a-single-broker-.html On Thu, Dec 20, 2012 at 4:14 PM, mikmela wrote: > Is any way to protect broker from malicios or badly written client code > that > keep creating temp queues? > At some point broker hits virtual memory limits and number of live threads > is very high... > > javax.jms.JMSException: unable to create new native thread > at > > org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:49) > at > > org.apache.activemq.ActiveMQConnection.syncSendPacket(ActiveMQConnection.java:1362) > at > > org.apache.activemq.ActiveMQConnection.createTempDestination(ActiveMQConnection.java:2023) > at > > org.apache.activemq.ActiveMQSession.createTemporaryQueue(ActiveMQSession.java:1353) > > > > > -- > View this message in context: > http://activemq.2283324.n4.nabble.com/How-to-protect-broker-from-broker-from-exhausting-resources-requested-by-clients-creating-temp-queues-tp4660974.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. > -- *Christian Posta* http://www.christianposta.com/blog twitter: @christianposta --f46d04462ec808cb5404d1516fc1--