You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by a_schulle <al...@solutionary.de> on 2012/08/07 16:13:43 UTC
Messages about "Store limit" with JDBCPersistenceAdapter
We are using Version 5.6.0 in an "JDBC Master Slave" configuration. When the
broker comes up it shows the following log messages:
(org.apache.activemq.store.kahadb.plist.PListStore:331) #
PListStore:[E:\somepath\activemq-data\jdbcBroker\tmp_storage ] started
(org.apache.activemq.broker.BrokerService:521) # Using Persistence Adapter:
JDBCPersistenceAdapter(org.jboss.jca.adapters.jdbc.WrapperDataSource@ca6a9e)
(org.apache.activemq.store.jdbc.JDBCPersistenceAdapter:464) # Database
adapter driver override recognized for : [oracle_jdbc_driver] - adapter:
class org.apache.activemq.store.jdbc.adapter.OracleJDBCAdapter
(org.apache.activemq.store.jdbc.JDBCPersistenceAdapter:466) # Database lock
driver override not found for : [oracle_jdbc_driver]. Will use default
implementation.
(org.apache.activemq.store.jdbc.DefaultDatabaseLocker:67) # Attempting to
acquire the exclusive lock to become the Master broker
(org.apache.activemq.store.jdbc.DefaultDatabaseLocker:134) # Becoming the
master on dataSource: org.jboss.jca.adapters.jdbc.WrapperDataSource@ca6a9e
(org.apache.activemq.broker.BrokerService:799) # ActiveMQ 5.6.0 JMS Message
Broker (jdbcBroker) is starting
(org.apache.activemq.broker.BrokerService:801) # For help or more
information please see: http://activemq.apache.org/
(org.apache.activemq.transport.TransportServerThreadSupport:72) # Listening
for connections at: tcp://foo:61616
(org.apache.activemq.broker.TransportConnector:265) # Connector default
Started
(org.apache.activemq.broker.BrokerService:564) # ActiveMQ JMS Message Broker
(jdbcBroker, ID:foo-3894-1344347728219-0:1) started
(org.apache.activemq.broker.BrokerService:1747) # Store limit is 100000 mb,
whilst the data directory: E:\somepath\jboss\bin only has 5139 mb of usable
space
(org.apache.activemq.broker.BrokerService:1786) # Temporary Store limit is
50000 mb, whilst the temporary data directory:
E:\somepath\jboss\bin\activemq-data\jdbcBroker\tmp_storage only has 5139 mb
of usable space
(org.apache.activemq.web.WebConsoleStarter:47) # ActiveMQ WebConsole
initialized.
I'm wondering about the messages "Store limit is 100000 mb,..." and
"Temporary Store limit is 50000 mb,...".
When I add the following configuration the two messages disappear:
<systemUsage>
<systemUsage>
<tempUsage>
<tempUsage limit="32mb"/>
</tempUsage>
</systemUsage>
</systemUsage>
This is my configuration:
<beans
xmlns="http://www.springframework.org/schema/beans"
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.apache.org/schema/core
http://activemq.apache.org/schema/core/activemq-core.xsd
">
<bean id="propertyPlaceholderConfigurer"
class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="ignoreUnresolvablePlaceholders" value="true"/>
<property name="ignoreResourceNotFound" value="true"/>
<property name="locations">
<list>
<value>file:${CONF}/systemenv.conf</value>
<value>file:${CONF}/systemenv.mod.conf</value>
</list>
</property>
<property name="placeholderPrefix" value="${" />
<property name="placeholderSuffix" value="}" />
</bean>
<broker useJmx="true" brokerName="jdbcBroker" persistent="true"
xmlns="http://activemq.apache.org/schema/core">
<destinationPolicy>
<policyMap>
<policyEntries>
<policyEntry queue="*.priority" prioritizedMessages="true"/>
</policyEntries>
</policyMap>
</destinationPolicy>
<managementContext>
<managementContext createConnector="false"/>
</managementContext>
<persistenceAdapter>
<jdbcPersistenceAdapter dataSource="#oracle-ds"
createTablesOnStartup="false" useDatabaseLock="true">
</jdbcPersistenceAdapter>
</persistenceAdapter>
<plugins>
<simpleAuthenticationPlugin anonymousAccessAllowed="false">
<users>
<authenticationUser username="myuser" password="mypassword"
groups="users,admins" />
</users>
</simpleAuthenticationPlugin>
<authorizationPlugin>
<map>
<authorizationMap>
<authorizationEntries>
<authorizationEntry queue=">" read="users" write="users"
admin="admins" />
<authorizationEntry topic=">" read="users" write="users"
admin="admins" />
<authorizationEntry topic="ActiveMQ.Advisory.>" read="users"
write="users" admin="users" />
</authorizationEntries>
<tempDestinationAuthorizationEntry>
<tempDestinationAuthorizationEntry read="users" write="users"
admin="admins" />
</tempDestinationAuthorizationEntry>
</authorizationMap>
</map>
</authorizationPlugin>
</plugins>
<transportConnectors>
<transportConnector name="default" uri="${ACTIVEMQ_TRANSPORT}" />
</transportConnectors>
<systemUsage>
<systemUsage>
<tempUsage>
<tempUsage limit="32mb"/>
</tempUsage>
</systemUsage>
</systemUsage>
</broker>
<bean id="oracle-ds"
class="org.springframework.jndi.JndiObjectFactoryBean">
<property name="jndiName" value="java:jboss/datasources/DSNAME"/>
</bean>
</beans>
Why does the broker with JDBCPersistenceAdapter needs a local store? Is
something wrong with my configuration?
I would appreciate any help. Thanks!
Alex
--
View this message in context: http://activemq.2283324.n4.nabble.com/Messages-about-Store-limit-with-JDBCPersistenceAdapter-tp4654847.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.