Connecting jconsole to the Tomcat instance wasn't my issue. The net.sf.ehcache wasn't getting reported to mbeans so I could see how the cache was being utilized.
I figured it out, however. In my case, we have a Spring environment. I had to start Ehcache with Spring, then extend EhCacheQueryCache to use the Spring started Ehcache instance. Thanks for the reply. -Frank On Tue, Feb 2, 2016 at 4:34 PM, Aristedes Maniatis <[email protected]> wrote: > On 3/02/2016 5:42am, Frank Herrmann wrote: > > Hello all, > > > > I'm working on switching our query caching to Ehcache. Does anyone know > how > > to monitor Ehcache injected into Cayenne via EhCacheQueryCache in > jconsole? > > > > In case it matters, I'm using Cayenne 3.1. > > > I don't think Cayenne factors into this at all. We just add these > parameters to the command line (starting up tomcat in my case): > > -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=7401 > -Dcom.sun.management.jmxremote.ssl=false > -Dcom.sun.management.jmxremote.authenticate=false > > > I turn off SSL and password because this is just for an internal network, > but you can adjust those as you need to. > > > Ari > > > -- > --------------------------> > Aristedes Maniatis > GPG fingerprint CBFB 84B4 738D 4E87 5E5C 5EFA EF6A 7D2E 3E49 102A > -- FRANK HERRMANN SOFTWARE ENGINEER T: 561-880-2998 x1563 E: [email protected] [image: [ Modernizing Medicine ]] <http://www.modmed.com/> [image: [ Facebook ]] <http://www.facebook.com/modernizingmedicine> [image: [ LinkedIn ]] <http://www.linkedin.com/company/modernizing-medicine/> [image: [ YouTube ]] <http://www.youtube.com/user/modernizingmedicine> [image: [ Twitter ]] <https://twitter.com/modmed_EMA> [image: [ Blog ]] <http://www.modmed.com/BlogBeyondEMR> [image: [ Instagram ]] <http://instagram.com/modernizing_medicine>
