You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by mark_bh <ma...@am.sony.com> on 2013/11/14 20:06:52 UTC

configuring memory usage with peer transport

I'm using ActiveMQ inside tomcat using the peer transport.  My Tomcat
server.xml has:

<Resource factory="org.apache.activemq.jndi.JNDIReferenceFactory"
description="JMS Connection Factory"
type="org.apache.activemq.ActiveMQConnectionFactory" auth="Container"
name="jms/ConnectionFactory" brokerName="MyActiveMQBroker"
brokerURL="peer://groupa/broker1?persistent=false"/>

It's working fine, but when I upgraded to ActiveMQ 5.9, I get an ERROR
message in the log on startup:

ERROR .activemq.broker.BrokerService Memory Usage for the Broker (1024 mb)
is more than the maximum available for the JVM: 455 mb - resetting to 70% of
maximum available: 318 mb

My question is, how do I configure the memory usage using the peer
transport?  I know that you can configure memory usage in the XML
configuration, but how can I use that with peer transport?

Thanks,
Mark




--
View this message in context: http://activemq.2283324.n4.nabble.com/configuring-memory-usage-with-peer-transport-tp4674493.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: configuring memory usage with peer transport

Posted by mark_bh <ma...@am.sony.com>.
I haven't been able to figure out how to configure peer transport in the XML
file.  Has anybody done that?  There doesn't seem to be any documentation
about it.



--
View this message in context: http://activemq.2283324.n4.nabble.com/configuring-memory-usage-with-peer-transport-tp4674493p4674498.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: configuring memory usage with peer transport

Posted by Christian Posta <ch...@gmail.com>.
Maybe you can just specify the full broker config in an external file
and configure memory and anything else the standard way.. there might
be a way to hack it into the URI like you're asking, but i'd have to
play around with that a bit to find whether that's possible... using
the external file might be a better solution though.

(note, i haven't tried this explicitly, but peer transport is based on
vm transport, and this works w/ vmtransport... give it a shot :) )

peer://groupa/broker1?brokerConfig=xbean:activemq.xml

On Thu, Nov 14, 2013 at 11:06 AM, mark_bh <ma...@am.sony.com> wrote:
> I'm using ActiveMQ inside tomcat using the peer transport.  My Tomcat
> server.xml has:
>
> <Resource factory="org.apache.activemq.jndi.JNDIReferenceFactory"
> description="JMS Connection Factory"
> type="org.apache.activemq.ActiveMQConnectionFactory" auth="Container"
> name="jms/ConnectionFactory" brokerName="MyActiveMQBroker"
> brokerURL="peer://groupa/broker1?persistent=false"/>
>
> It's working fine, but when I upgraded to ActiveMQ 5.9, I get an ERROR
> message in the log on startup:
>
> ERROR .activemq.broker.BrokerService Memory Usage for the Broker (1024 mb)
> is more than the maximum available for the JVM: 455 mb - resetting to 70% of
> maximum available: 318 mb
>
> My question is, how do I configure the memory usage using the peer
> transport?  I know that you can configure memory usage in the XML
> configuration, but how can I use that with peer transport?
>
> Thanks,
> Mark
>
>
>
>
> --
> View this message in context: http://activemq.2283324.n4.nabble.com/configuring-memory-usage-with-peer-transport-tp4674493.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.



-- 
Christian Posta
http://www.christianposta.com/blog
twitter: @christianposta