This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Read the post: > > Hi! I've got a question concerned with NetBeans SJSAS (GlassFish) integration. I'm currently developing a profiling plugin for NetBeans IDE and trying to support SJSAS profiling from NetBeans (like NetBeans Profiler does). > But I've encountered some problems here - to enable profiling I need to make some changes to server configuration .xml file - but when I start server the NetBeans internal startup algorithm cleans all changes to .xml I've made (via ConfigureProfiler.remove... call). > The only way I see it can work - is the way the NetBeans Profiler works, but it is unsatisfactory, because I'll always have my profiler named "NetBeans Profiler" inside the SJSAS configuration. (see implementation of ConfigureProfiler.instrument... method). > Maybe I've missed something?
What is the status of this request? We are developing YourKit Java Profiler, and we want to write plug-in to support profiling of SJSAS server whitin NetBenans. NetBeans contains the code which intentionally removes all profiler tags excepting JFluid's. Best regards, Vladimir Kondratyev Co-founder, Vice President YourKit, LLC http://www.yourkit.com "Don't get lost in data, get information!"
We will clean the entries that are only relevant to the Nb profiler. To better fix the bug, it would be nice to get the entries you are adding with your profiler so that I'll make sure we do not delete them. Also, FYI, profiling of any server won't work correctly if more than one profiler is registered as spi. AFAIK whole J2EE profiling API was designed for *one* installed profiler only. I am not sure how you are plugin into NetBeans, and/or want to reuse the same 'Profile' actions or menu items, but your integration might not be as seamless as the one from Profiler pack.
We add only one entry to domain.xml, this entry looks like <profiler name="NAME" enabled="true"> <jvm-options>-agentpath:somepath</jvm-options> <jvm-options>-Doption=value</jvm-options> </profiler> By the way, we don't reuse 'Profile' actions and menus, and NetBeans Profiler works fine with YourKit Java Profiler installed together. Vitaly Pimenov. YourKit, LLC
for 5.5
Fix today. Thanks for verifying soon:-) The NetBeans profiler name is "NetBeansProfiler" and this is the only one we delete if the entry is there. /cvs/serverplugins/sun/appsrv81/src/org/netbeans/modules/j2ee/sun/ide/j2ee/ConfigureProfiler.java,v <-- ConfigureProfiler.java new revision: 1.4.2.5.2.6; previous revision: 1.4.2.5.2.5 done Checking in DomainEditor.java; /cvs/serverplugins/sun/appsrv81/src/org/netbeans/modules/j2ee/sun/ide/j2ee/Attic/DomainEditor.java,v <-- DomainEditor.java new revision: 1.1.2.9; previous revision: 1.1.2.8