Hello,
We are using Spring 2.5.6 and Tomcat 6. We've got 3 DMLC listening to a topic queue. When we deploy our war file to one server everything works fine. However when we deploy to more than one server, the servers that are not consuming the topic messages are creating the DMLC beans repeatedly about every second. We only have 3 beans/threads alive at any given time (per server). But the memory continues to grow. Again, the memory problems occur only on the servers that are not consuming the topic messages. Does anyone have any suggestions? Below are our DMLC setttings in our applicationContext.xml file.
Code:<bean id="jmsContentUpdateTopicContainer" class="org.springframework.jms.listener.DefaultMessageListenerContainer"> <property name="connectionFactory" ref="contUpdateTopicConnectionFactory"/> <property name="destination" ref="contentUpdateTopicDest"/> <property name="messageListener" ref="contentUpdateTopicSubscriber" /> <property name="concurrentConsumers" value="1" /> <property name="receiveTimeout" value="3000" /> <property name="pubSubDomain" value="true" /> <property name="subscriptionDurable" value="true" /> </bean>Code:<bean id="jmsMetadataUpdateTopicContainer" class="org.springframework.jms.listener.DefaultMessageListenerContainer"> <property name="connectionFactory" ref="contUpdateTopicConnectionFactory"/> <property name="destination" ref="contentUpdateTopicDest"/> <property name="messageListener" ref="contentUpdateTopicSubscriber" /> <property name="concurrentConsumers" value="1" /> <property name="receiveTimeout" value="3000" /> <property name="pubSubDomain" value="true" /> <property name="subscriptionDurable" value="true" /> </bean>Code:<bean id="jmsMetadataDeleteTopicContainer" class="org.springframework.jms.listener.DefaultMessageListenerContainer"> <property name="connectionFactory" ref="contUpdateTopicConnectionFactory"/> <property name="destination" ref="contentUpdateTopicDest"/> <property name="messageListener" ref="contentUpdateTopicSubscriber" /> <property name="concurrentConsumers" value="1" /> <property name="receiveTimeout" value="3000" /> <property name="pubSubDomain" value="true" /> <property name="subscriptionDurable" value="true" /> </bean>


Reply With Quote