The javaagentis used for jpa enhancement. Not having itmeans you dont use it (hibernate or build time enhancement) Le 6 avr. 2013 16:07, "Howard W. Smith, Jr." <[email protected]> a écrit :
> What are the pros/cons of adding the following to java options when running > app in/on TomEE via (Windows) service? > > -javaagent:C:\apache-tomee-plus-1.6.0-SNAPSHOT\lib\openejb-javaagent.jar > > I recognized that NetBeans adds this automatically to java options, when I > start TomEE via netBeans. I recognized this while trying to get the > Sampler>Memory button enabled in Java Visual VM for TomEE running as > Windows service on production server[1]. > > So, I added openejb-javaagent.jar to java options, and that did not solve > the problem (and after some research, sampler>memory button will be > enabled, if tomee-running-as-service and java visual vm...are the same > 'user'...that's my assumption, at least). > > So, back to the question, what are the pros/cons of adding > openejb-javaagent.jar to java options of tomee-running-as-service? > > Thanks, > Howard > > [1] > > http://stackoverflow.com/questions/8799929/visualvm-unable-to-sampler-memory >
