activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From andrewh <and...@plaintalkit.com>
Subject ActiveMQ Disk usage
Date Tue, 08 Jul 2008 16:02:35 GMT

Hi, I know this has come up before but I'm positive we are consuming as much
as we're producing (if not slightly less), and disk is filling in the order
of 15Gb over three days. I would really appreciate some pointers from more
experienced users.

Has anyone experienced problems with disk usage that they have solved
privately? Can anyone spot obvious problems with the config below?

Much appreciated,

Andrew


Setup:
Ubuntu Server 6.06 - kernel 2.6.15-26-amd64
ACTIVEMQ_HOME=/usr/local/fuse-message-broker-5.0.0.11
JAVA_HOME=/usr/local/jdk1.6.0_06

Config (sanitised):

<beans
  xmlns="http://www.springframework.org/schema/beans"
  xmlns:amq="http://activemq.org/config/1.0"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
  http://activemq.org/config/1.0
http://activemq.apache.org/schema/activemq-core.xsd
  http://activemq.apache.org/camel/schema/spring
http://activemq.apache.org/camel/schema/spring/camel-spring.xsd">

  <!-- Allows us to use system properties as variables in this configuration
file -->
  <bean
class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"/>
  
  <broker xmlns="http://activemq.org/config/1.0" brokerName="server"
useJmx="true" dataDirectory="${activemq.base}/data" persistent="true">
  
    <!-- The transport connectors ActiveMQ will listen to -->
    <transportConnectors>
       <transportConnector name="openwire" uri="tcp://localhost:61616"/>
	<transportConnector name="stomp" uri="tcp://localhost:61617"/>
    </transportConnectors>

    <networkConnectors>
	</networkConnectors>

    <destinations>
      <queue physicalName="Company1.Media.Company1.DepartmentB" />
      <queue physicalName="Company1.Media.Company1.ProductC" />
      <queue physicalName="Company1.Media.Company1.ProductCTest" />
      <queue physicalName="Company1.Media.DepartmentC.Alerts" />
      <queue physicalName="Company1.Media_All.Company1.ProductC" />
      <queue physicalName="Company1.Media_All.Company1.DepartmentB" />
      <queue physicalName="Company1.ProductA.Company1.DepartmentB" />
      <queue physicalName="Company1.ProductA.Project1.ProductA" />
      <queue physicalName="Company1.ProductA_All.Company1.DepartmentB" />
      <queue physicalName="Company1.ProductB.Company1.DepartmentB" />
      <queue physicalName="Company1.ProductB.Company1.Test" />
      <queue physicalName="Company1.ProductB.Project1.DepartmentA" />
    </destinations> 
 
    <destinationInterceptors>
      <virtualDestinationInterceptor>
        <virtualDestinations>
          <compositeQueue name="Company1.Media">
            <forwardTo>
              <queue physicalName="Company1.Media.Company1.ProductC" />
              <queue physicalName="Company1.Media.Company1.ProductCTest" />
              <queue physicalName="Company1.Media.DepartmentC.Alerts" />
            </forwardTo>
          </compositeQueue>
          <compositeQueue name="Company1.Media_All">
            <forwardTo>
            </forwardTo>
          </compositeQueue>
          <compositeQueue name="Company1.ProductA">
            <forwardTo>
              <queue physicalName="Company1.ProductA.Company1.DepartmentB"
/>
              <queue physicalName="Company1.ProductA.Project1.ProductA" />
            </forwardTo>
          </compositeQueue>
          <compositeQueue name="Company1.ProductA_All">
            <forwardTo>
            </forwardTo>
          </compositeQueue>
          <compositeQueue name="Company1.ProductB">
            <forwardTo>
              <queue physicalName="Company1.ProductB.Company1.DepartmentB"
/>
              <queue physicalName="Company1.ProductB.Company1.Test" />
              <queue physicalName="Company1.ProductB.Project1.DepartmentA"
/>
            </forwardTo>
          </compositeQueue>
        </virtualDestinations>
      </virtualDestinationInterceptor>
    </destinationInterceptors>  

    <!-- Use the following if you wish to configure the journal with JDBC
-->
   
    <persistenceAdapter>
        <amqPersistenceAdapter /> 
    </persistenceAdapter>
    

    <managementContext>
	<managementContext connectorPort="1099"
jmxDomainName="org.apache.activemq"/>
    </managementContext>
    

  <systemUsage>
            <systemUsage>
                <memoryUsage>
                    <memoryUsage limit="1 gb"/>
                </memoryUsage>
                <storeUsage>
                    <storeUsage limit="2 gb" name="amq-store"/>
                </storeUsage>
                <tempUsage>
                    <tempUsage limit="1 gb"/>
                </tempUsage>
            </systemUsage>
        </systemUsage>


  </broker>



  <!-- lets create a command agent to respond to message based admin
commands on the ActiveMQ.Agent topic -->
  <commandAgent xmlns="http://activemq.org/config/1.0"/>


  <!-- An embedded servlet engine for serving up the Admin console -->
  <jetty xmlns="http://mortbay.com/schemas/jetty/1.0">
    <connectors>
      <nioConnector port="8161" />
    </connectors>

    <handlers>
      <webAppContext contextPath="/admin"
resourceBase="${activemq.base}/webapps/admin" logUrlOnStart="true" />
    </handlers>
  </jetty>
</beans>


-- 
View this message in context: http://www.nabble.com/ActiveMQ-Disk-usage-tp18342711p18342711.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message