activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From magellings <>
Subject Re: Getting negative number of pending messages
Date Wed, 09 Sep 2009 17:10:39 GMT

Okay I have 5.3 configured with the following config.  I can't connect from
another machine through the host name of the server however.  This config is
taken directly from an ActiveMQ 5.2 broker and running that broker I can
connect just fine.  Anyone know what's up?

    Licensed to the Apache Software Foundation (ASF) under one or more
    contributor license agreements.  See the NOTICE file distributed with
    this work for additional information regarding copyright ownership.
    The ASF licenses this file to You under the Apache License, Version 2.0
    (the "License"); you may not use this file except in compliance with
    the License.  You may obtain a copy of the License at
    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.


  <!-- Allows us to use system properties as variables in this configuration
file -->
    <property name="locations">

  <broker xmlns=""
brokerName="WAMQDEV1PRODUCTREQUEST" dataDirectory="${activemq.base}/data">

          <authenticationUser username="GL$ACTIVEMQ_PRODUCTREQUEST"
password="replenish" groups="producers,consumers,admins" />
              <authorizationEntry queue=">" write="producers"
read="consumers" admin="admins,producers" />
              <authorizationEntry topic=">" read="admins"
write="admins,producers" admin="admins,producers,consumers" />

    <!-- Destination specific policies using destination names or wildcards
          <policyEntry queue=">" useCache="true" memoryLimit="5mb"/>
          <policyEntry topic=">" advisoryForSlowConsumers="true"
advisdoryForFastProducers="true" advisoryWhenFull="true" memoryLimit="5mb"/>

    <!-- Use the following to configure how ActiveMQ is exposed in JMX -->
      <managementContext createConnector="false"/>

      <amqPersistenceAdapter syncOnWrite="false"
directory="${activemq.base}/data" maxFileLength="20 mb"/>

      <jdbcPersistenceAdapter dataSource="#mssql-ds"
createTablesOnStartup="false"  />

      <sslContext keyStore="file:${activemq.base}/conf/broker.ks"

    <!--  The maximum about of space the broker will use before slowing down
producers -->
          <memoryUsage limit="20 mb"/>
          <storeUsage limit="1 gb" name="foo"/>
          <tempUsage limit="100 mb"/>

    <!-- The transport connectors ActiveMQ will listen to -->
      <transportConnector name="openwire" uri="tcp://localhost:10198"


  <bean id="mssql-ds" class="com.mchange.v2.c3p0.ComboPooledDataSource"
    <property name="driverClass"
    <property name="jdbcUrl"
    <property name="user" value="GL$ACTIVEMQ_PRODUCTREQUEST"/>
    <property name="password" value="replenish"/>
    <property name="acquireRetryAttempts" value="100"/>
    <property name="testConnectionOnCheckout" value="true"/>
    <property name="testConnectionOnCheckin" value="true"/>
    <property name="automaticTestTable" value="ACTIVEMQ_CONN_TEST"/>
    <property name="acquireRetryDelay" value="5000"/>
    <property name="preferredTestQuery" value="SELECT 1"/>

  <jetty xmlns="">
      <nioConnector port="10199"/>

      <webAppContext contextPath="/admin"
resourceBase="${activemq.base}/webapps/admin" logUrlOnStart="true"/>
      <webAppContext contextPath="/camel"
resourceBase="${activemq.base}/webapps/camel" logUrlOnStart="true"/>
      <webAppContext contextPath="/demo"
resourceBase="${activemq.base}/webapps/demo" logUrlOnStart="true"/>
      <webAppContext contextPath="/fileserver"
resourceBase="${activemq.base}/webapps/fileserver" logUrlOnStart="true"/>


rajdavies wrote:
> We are aiming to get a 5.3 release candidate to vote on next week - so  
> no long
> On 4 Sep 2009, at 19:46, magellings wrote:
>> Right now we're focusing pretty hard on stress testing version 5.2  
>> but we can
>> try and fit in a test.  When is the estimated release date of  
>> version 5.3?
>> In other words, how much time do we have?  :)
>> rajdavies wrote:
>>> On 4 Sep 2009, at 15:14, magellings wrote:
>>>> We too were having problems were number of pending of messages was a
>>>> negative
>>>> number and messages received was greater than number sent.  We
>>>> determined
>>>> there were indeed duplicate messages being sent.
>>>> We ended up setting useCache to false on the queue policy entry and
>>>> the
>>>> problem appears to be resolved.
>>>> We too were sending a high volume of messages to our queues  
>>>> relatively
>>>> quickly.
>>>> -- 
>>>> View this message in context:
>>>> Sent from the ActiveMQ - User mailing list archive at
>>> It would be great to know if you still had the problem on the latest
>>> 5.3 snapshot too
>>> cheers,
>>> Rob
>>> Rob Davies
>>> I work here:
>>> My Blog:
>>> I'm writing this:
>> -- 
>> View this message in context:
>> Sent from the ActiveMQ - User mailing list archive at
> Rob Davies
> I work here:
> My Blog:
> I'm writing this:

View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message