Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 23BA9200C04 for ; Tue, 24 Jan 2017 21:07:58 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 224DF160B3E; Tue, 24 Jan 2017 20:07:58 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 6B81B160B38 for ; Tue, 24 Jan 2017 21:07:57 +0100 (CET) Received: (qmail 83640 invoked by uid 500); 24 Jan 2017 20:07:56 -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 Delivered-To: moderator for users@activemq.apache.org Received: (qmail 31386 invoked by uid 99); 24 Jan 2017 18:46:49 -0000 X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.379 X-Spam-Level: ** X-Spam-Status: No, score=2.379 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=qTh4ON/hLtE6hGNoM2Rs63/HSyoDkociRpo3wSguKXU=; b=hgZ4hmDbJf3HnbSisRmaWyc6GzSQpqC6RJloeXCdjwAQJgX5a32531MzatNdVbuYbq md2a0NlWpKCD2K7JucOzh3od5JUd0cewhGXVOGxvC6o7Anue6+1kmDIy/mGVbCfQwcsh aZulTxlSSaCbrezqC2sIGmw5bqxtZNl5S0/j4Ekp0lxDNUUwxOvjztJlnpL/oL0hiaiq naYbkF8vIVQ16diG9PZCsPypvK+tmIZNpVTf9U1S63eCcen9Iq60qbuhi6qYoqxnkjNv DWmoufm6jf51mGP8DFFShnlL6BhoL4l5esY+53iXqy33o698GzWOuaByc8AxP+uHgdM9 KJsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=qTh4ON/hLtE6hGNoM2Rs63/HSyoDkociRpo3wSguKXU=; b=c0Gb1S0wSc+heP3KRbRCXDeLJMBOaC1X3aGmmZG8bV9Jq90C38cTBQvQdqSXgKkLG5 Oar3GyjA/pYJQjl0o2af5MnJvS4KVk0545vQxZ7XcGtKpQjIyUdeDLb26CTwvont3SVx J4bkS4JNQe+DzCtUVCvMa83QW8vrFNMeRkgJOhYKF5AfMWlmylyIk+RxIH2RS89kphz9 IYWI8JcbwcG9UJY6FPH4I3nsUn8pNKfYyzf6LOyOXlEL+PGkH1BPQQKt4UziXNVvWANq +p/pU4QlwK8rdxoTksa0QzJzyc+xP+HzH9m7MRR7rI1cwhQ8mF2+a0yrzczV7pIJRCDe LXfg== X-Gm-Message-State: AIkVDXJCqF9fTSaU+qK6gOquf9p7Evf3jfNqLnHNO8so13Uc0+OLyzOBk927xUFHOnCG17SfP/rbZZlkt1EReg== X-Received: by 10.223.163.136 with SMTP id l8mr32398588wrb.42.1485283606583; Tue, 24 Jan 2017 10:46:46 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: "James A. Robinson" Date: Tue, 24 Jan 2017 18:46:36 +0000 Message-ID: Subject: Re: hundreds of threads trying to connect to vm "localhost"? To: ActiveMQ Users Content-Type: multipart/alternative; boundary=f403045f126ec2e1340546db8922 archived-at: Tue, 24 Jan 2017 20:07:58 -0000 --f403045f126ec2e1340546db8922 Content-Type: text/plain; charset=UTF-8 I'm wondering if these are coming about due to RESTful posts of new messages... If an HTTP client comes along and sends POST /api/message?destination=queue://testqueue HTTP/1.1 is it going to try and use 'localhost' first and then fall back to the actual broker name? If so, should the client be specifying "?brokerName=" where is the actual broker name? Jim On Mon, Jan 16, 2017 at 11:23 AM James A. Robinson wrote: > Several times now we've witnessed a cluster spinning off hundreds of > threads and spewing warnings like: > > 2017-01-16 11:10:35,376 [p209148636-3304] WARN BrokerRegistry - Broker > localhost not started so using amq-prod-1 instead > > A thread dump shows hundreds of threads along these lines: > > "ActiveMQ VMTransport: vm://localhost#205379-1" daemon prio=10 > tid=0x00007fa79c838000 nid=0x6fff waiting on condition [0x00007fa76ed6c000] > java.lang.Thread.State: TIMED_WAITING (parking) > at sun.misc.Unsafe.park(Native Method) > - parking to wait for <0x0000000462734f80> (a > java.util.concurrent.SynchronousQueue$TransferStack) > at > java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:226) > at > java.util.concurrent.SynchronousQueue$TransferStack.awaitFulfill(SynchronousQueue.java:460) > at > java.util.concurrent.SynchronousQueue$TransferStack.transfer(SynchronousQueue.java:359) > at > java.util.concurrent.SynchronousQueue.poll(SynchronousQueue.java:942) > at > java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1068) > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) > at java.lang.Thread.run(Thread.java:745) > > What's the best way to track down the source of this vm://localhost > reference? It's not coming from the activemq.xml, so I'm suspecting it's > coming from a client. > > Jim > > --f403045f126ec2e1340546db8922--