James.Strachan wrote: > > On 8/17/06, jevans12 <[EMAIL PROTECTED]> wrote: >> >> Is AMQ ALWAYS gathering statistics? > > Yes > >> Does the default of useJmx=false only >> stop the mbean interfaces being exposed? > > Yes. > > >> Im running Spring + AMQ (embedded broker topo), we are using the Spring >> MBeanExporter to expose our own mbeans. Since AMQ defaults to >> useJmx=false, > > It defaults to useJmx=true currently > >>> Sorry this page told me different. > http://activemq.org/site/broker-configuration-uri.html > http://activemq.org/site/broker-configuration-uri.html > > >> our Spring config is actually exposing the AMQ mbeans along with >> up-to-date >> stats. > > How are you getting Spring to explose the MBeans automatically? e.g. > ActiveMQ creates lots of mbeans dynamically such as for each > conneciton, subscription, destination etc. How is Spring gonna expose > those? >>>From the misunderstanding above I see now that AMQ sets useJmx=true >>>I had the same question, Spring is looking for Java5 annontations to look for interfaces to expose via JMX. > >> I would like to turn off completly the AMQ stats gathering, is this >> possible? > > Just out of interest - why? >>> Interesting enough in my server process i did a memory profile using >>> JProbe. When our server starts up its in a quiescemt state. Im currently >>> upgrading from an AMQ 4.0 snapshot to AMQ 4.0.1 and am noticing memory >>> oscillating from 30M -> 50M. (need to make sure if this was happening >>> before upgrade) > I did a heap dump with instance data of at time t=30M and time t1=50M then > compared snapshots. > When i sorted high -> low on the diferences in memory the > activemq.management.*Stats classes were on top. THis is all very > preliminary. I need to do more analysys and report back later. ALthough in > our production system if I can turn off stats gathering to squeek out a > couple of extra cycles and bytes of memory Id like to have the option. > > I don't think its possible currently. I'm sure it wouldn't be too hard > to patch the code to avoid this... > http://incubator.apache.org/activemq/contributing.html > > -- > > James > ------- > http://radio.weblogs.com/0112098/ > >
-- View this message in context: http://www.nabble.com/Stopping-Statistics-Gathering-tf2121969.html#a5855742 Sent from the ActiveMQ - User forum at Nabble.com.
