Today I install ActiveMQ in a computer , but after AMQ started, the console
post the error:

INFO  BrokerService  - ActiveMQ JMS Message Broker (localhost, I
D:oliver-1374-1256219225078-1:0) started
Exception in thread "ActiveMQ Transport: tcp:///127.0.0.1:1379"
java.lang.OutOfMemoryError: Java heap space
        at
org.apache.activemq.openwire.v1.BaseDataStreamMarshaller.looseUnmarshalByteSequence(BaseDataStreamMarshaller.java:598)
        at
org.apache.activemq.openwire.v1.WireFormatInfoMarshaller.looseUnmarshal(WireFormatInfoMarshaller.java:131)
        at
org.apache.activemq.openwire.OpenWireFormat.doUnmarshal(OpenWireFormat.java:352)
        at
org.apache.activemq.openwire.OpenWireFormat.unmarshal(OpenWireFormat.java:276)
        at
org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:142)
        at java.lang.Thread.run(Thread.java:595)

The environment is:
Server: Dell Server
OS: Windows 2003
Free Memory: > 10G
JDK SUN 1.5
AMQ 4.0

The activemq.xml is:
<beans xmlns="http://activemq.org/config/1.0";>
  <c:ConfigurableAuthenticationBroker brokerName="localhost" useJmx="true" 
userName="us" password="pwd"
    xmlns:c="java://com.amqserver.activemq"> 
        <memoryManager>  
                <usageManager id="memory-manager" limit="1048576000"/>
        </memoryManager>
  
    <destinationPolicy>
      <policyMap><policyEntries>      
          <policyEntry topic="FOO.>">
            <dispatchPolicy>
              <strictOrderDispatchPolicy />
            </dispatchPolicy>
            <subscriptionRecoveryPolicy>
              <lastImageSubscriptionRecoveryPolicy />
            </subscriptionRecoveryPolicy>
          </policyEntry>

      </policyEntries></policyMap>
    </destinationPolicy>
  
    <persistenceAdapter>
      <journaledJDBC journalLogFiles="5" dataDirectory="../activemq-data"/>
     </persistenceAdapter>
    <transportConnectors>
       <transportConnector name="default" uri="tcp://127.0.0.1:7001"
discoveryUri="multicast://default"/>
       <transportConnector name="stomp"   uri="stomp://127.0.0.1:61613"/>
    </transportConnectors>
    <networkConnectors></networkConnectors>
    
  <!--</broker> -->
  </c:ConfigurableAuthenticationBroker>
</beans>


I copy AMQ to the other compute and it works well.
Could anyone help me to resolve the problem ? 


-- 
View this message in context: 
http://www.nabble.com/Please-Help%3A-java.lang.OutOfMemoryError-after-started-tp26012505p26012505.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Reply via email to