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 <mark.hou...@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

Reply via email to