मेरे पास एक स्प्रिंग वेब एप्लिकेशन है जो एक स्टैंडअलोन ActiveMQ को भेज और सुन देगा। जब मैं वेब अनुप्रयोग शुरू करते हैं, यह पता चलता है:एम्बेडेड ActiveMQ की स्टार्टअप त्रुटि: अस्थायी स्टोर सीमा 51200 एमबी
20:12:52.684 [localhost-startStop-1] ERROR o.a.activemq.broker.BrokerService - Temporary Store limit is 51200 mb, whilst the temporary data directory: /root/activemq-data/localhost/tmp_storage only has 29021 mb of usable space
मैं googled और कई लेख पढ़ते हैं, वे सभी अस्थायी दुकान आकार को सीमित करने दलाल और systemusage कॉन्फ़िगर करने के लिए संदर्भ लें। हालांकि, मैं वसंत विन्यास में ऐसा करने के लिए नहीं करता हूं। नीचे मेरा विन्यास एक्सएमएल है।
<bean id="connectionFactory" class="org.apache.activemq.ActiveMQConnectionFactory">
<property name="brokerURL" value="${jms.broker_url}" />
</bean>
<bean id="cachingConnectionFactory" class="org.springframework.jms.connection.CachingConnectionFactory">
<property name="targetConnectionFactory" ref="connectionFactory" />
<property name="sessionCacheSize" value="10" />
</bean>
<bean id="recvQueue" class="org.apache.activemq.command.ActiveMQQueue">
<constructor-arg value="q.recv" />
</bean>
<bean id="sendQueue" class="org.apache.activemq.command.ActiveMQQueue">
<constructor-arg value="q.send" />
</bean>
<bean id="notifyQueue" class="org.apache.activemq.command.ActiveMQQueue">
<constructor-arg value="q.notify" />
</bean>
<!-- Spring JMS Template -->
<bean id="jmsTemplate" class="org.springframework.jms.core.JmsTemplate">
<property name="connectionFactory" ref="cachingConnectionFactory" />
</bean>
<bean id="batchImplMessageProducer" class="com.seebon.spfcore.repository.jms.BatchImplMessageProducer">
<property name="jmsTemplate" ref="jmsTemplate" />
<property name="sendQueue" ref="sendQueue" />
<property name="recvQueue" ref="recvQueue" />
<property name="notifyQueue" ref="sendQueue" />
</bean>
<bean id="advancedQueueContainer" class="org.springframework.jms.listener.DefaultMessageListenerContainer">
<property name="connectionFactory" ref="connectionFactory" />
<property name="destination" ref="recvQueue" />
<property name="messageListener" ref="recvBatchImplMessageListener" />
<property name="concurrentConsumers" value="5" />
<property name="maxConcurrentConsumers" value="10" />
</bean>
<bean id="recvBatchImplMessageListener" class="com.seebon.spfcore.repository.jms.RecvBatchImpMessageListener" />
कृपया मुझे यहाँ से बाहर मदद, धन्यवाद!
मदद के लिए धन्यवाद। लेकिन मेरे पास मेरे वेब ऐप में यह कॉन्फ़िगरेशन फ़ाइल नहीं है, क्या मुझे एक बनाना चाहिए? ActiveMQ स्वचालित रूप से इसे पढ़ेगा? – BurnetZhong
फ़ाइल मौजूद होगी जहां आपका सक्रिय एमक्यू उदाहरण चल रहा है यानी वह स्थान जहां आप अपने ब्रोकर से कनेक्ट कर रहे हैं i। ई अगर आप हमें यूआरएल दिखाते हैं तो हम आपके {broker_url} को – Vihar
पर इंगित कर सकते हैं। मेरा ActiveMQ एक ही मशीन में होस्ट किया गया है, इसलिए यह स्थानीयहोस्ट है। – BurnetZhong