activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dan Tran <dant...@gmail.com>
Subject Re: Please Help: java.lang.OutOfMemoryError after started
Date Fri, 23 Oct 2009 05:47:48 GMT


Just curious,

have you set up your JVM's -Xmx param?

-Dan


OliverLeeYn wrote:
> 
> 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-tp26012505p26021194.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message