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 28AAD19682 for ; Thu, 28 Apr 2016 08:53:59 +0000 (UTC) Received: (qmail 46575 invoked by uid 500); 28 Apr 2016 08:53:58 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 46532 invoked by uid 500); 28 Apr 2016 08:53:58 -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 46510 invoked by uid 99); 28 Apr 2016 08:53:57 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Apr 2016 08:53:57 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id AC0AD1A062A for ; Thu, 28 Apr 2016 08:53:56 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.103 X-Spam-Level: X-Spam-Status: No, score=-0.103 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RP_MATCHES_RCVD=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=calisto.email Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id DLwf1VFGVI1s for ; Thu, 28 Apr 2016 08:53:55 +0000 (UTC) Received: from mx.calisto.email (mx.calisto.email [188.226.194.164]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id B98DA5F241 for ; Thu, 28 Apr 2016 08:53:54 +0000 (UTC) Received: from localhost (mx.calisto.email [127.0.0.1]) by mx.calisto.email (Postfix) with ESMTP id A3F7B84E82 for ; Thu, 28 Apr 2016 08:53:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=calisto.email; h= user-agent:message-id:subject:subject:to:from:from:date:date :content-transfer-encoding:content-type:content-type :mime-version; s=dkim; t=1461833612; x=1462697613; bh=lkNp1tRmk5 RCWveZkp/GuJKeK9uLheOaPyqKn940uhc=; b=tOtnk6WUBFdarbcYrSoRl1Ypec +2SrYfG/JY6Rf6O4umLwvD9AKT/b2zWcawUdTWVXy8Ljg8LWAymNLRAQNVNRI0jH wackzUuIc9fdHgcCklZQv81zsq0lGjoMSxd9Ipht+/mhZBmhM6G/x2QuQDIyEQxb dC/1A/5o2lNDlz47Q= X-Virus-Scanned: Debian amavisd-new at d1stkfactory Received: from mx.calisto.email ([127.0.0.1]) by localhost (mx.calisto.email [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id A7xAp1STdmoY for ; Thu, 28 Apr 2016 08:53:32 +0000 (UTC) Received: from mx.calisto.email (mx.calisto.email [127.0.0.1]) by mx.calisto.email (Postfix) with ESMTP id C24FB82214 for ; Thu, 28 Apr 2016 08:53:31 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Date: Thu, 28 Apr 2016 11:53:31 +0300 From: Artem Pronchakov To: ActiveMQ Users Subject: Artemis 1.2.0. Paging don't work with activemq(5.12.0,5.13.2) client Message-ID: X-Sender: artem.pronchakov@calisto.email User-Agent: RoundCube Webmail Hello. Standalone broker conf: PAGE 1048576 Other settings are default. "tcp://localhost:61616" - is the "artemis" multiprotocol acceptor Normal case: Behaviour: Paging works. Client: artemis-jms-client v1.2.0 Class: org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory Code: ConnectionFactory connectionFactory = new ActiveMQConnectionFactory("tcp://localhost:61616", user, pass); Connection connection = connectionFactory.createConnection(); Session session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE); Queue queue = session.createQueue("tmpQueue"); MessageProducer producer = session.createProducer(queue); connection.start(); byte[] bytes = new byte[Integer.parseInt(size)]; Random random = new Random(); whilt (true) { BytesMessage bytesMessage = session.createBytesMessage(); random.nextBytes(bytes); bytesMessage.writeBytes(bytes); producer.send(bytesMessage); } Error case: Behaviour: Paging DO NOT works. When messages fills queue to the max-size-bytes setting, JMX's Address.Paging becomes true, page file is created, page files count becomes 1, but producer freezes until consumer start working. Log tells that paging is starting, so it should be ok, but id didn't. No additional messages even if I set Trace level. Client: activemq-client v5.12.0 (Also tried latest 5.13.2, no difference) Class: org.apache.activemq.ActiveMQConnectionFactory Code: ConnectionFactory connectionFactory = new ActiveMQConnectionFactory(user, pass, "tcp://localhost:61616"); // the same code after ConnectionFactory as for artemis-jms-client ... Is this a bug or I just cook it wrong? Thank you.