Well, I was just looking at the server log on production server. Please note/remember that I am using TomEE 1.6.0 snapshot (2013-04-29). The WARNING below makes me think that I should add the javaagent to my memory options. Please advise.
May 04, 2013 8:05:35 AM org.apache.openejb.assembler.classic.Assembler$PersistenceClassLoaderHandlerImpl addTransformer WARNING: JAVA AGENT NOT INSTALLED. The JPA Persistence Provider requested installation of a ClassFileTransformer which requires a JavaAgent. See http://openejb.apache.org/3.0/javaagent.html Below are the lines that followed t he above lines in server/catalina log. As you see below, i'm using EclipseLink as my JPA provider. May 04, 2013 8:05:35 AM org.apache.openejb.assembler.classic.ReloadableEntityManagerFactory createDelegate INFO: PersistenceUnit(name=mcmsPU, provider=org.eclipse.persistence.jpa.PersistenceProvider) - provider time 653ms I guess I should add javaagent to my tomee java options. Right? On Sat, Apr 6, 2013 at 11:57 AM, Howard W. Smith, Jr. < [email protected]> wrote: > interesting. okay, well, you and I discussed something similar (months > ago), and at that time you advised that I can/should consider weaving my > jpa entities for better performance, but honestly, i never did that, and > therefore, at the moment, i really have no need for this being added to my > java options. :) > > as always, thanks Romain! > > > > On Sat, Apr 6, 2013 at 10:56 AM, Romain Manni-Bucau <[email protected] > > wrote: > >> 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 >> > >> > >
