users@glassfish.java.net

Glassfish configuration for TPTP profiler - how to?

From: <forums_at_java.net>
Date: Wed, 7 Dec 2011 07:47:33 -0600 (CST)

I'd like to profile my JSF app run on Glassfish 3.0.1.  As described in
http://www.eclipse.org/forums/index.php/m/651810/?srch=Glassfish+TPTP#msg_651810
to be able to use Eclipse TPTP profiler with Glassfish one needs to define
profiler on Glassfish and then connect to running Glassfish instance from
Eclipse (through new "Attach to Agent" profile configuration).

I've configured Glassfish using standard admin GUI at Configuration->JVM
Settings -> Profiler (tab). I've set up following values:
Profiler Name: EclipseTPTP
Status:        Enabled
Classpath:          
D:\eclipse\plugins\org.eclipse.tptp.platform.jvmti.runtime_4.6.3.v201102041710\profiler.jar
Native Library Path:
D:\eclipse\plugins\org.eclipse.tptp.platform.jvmti.runtime_4.6.3.v201102041710\agent_files\win_ia32
JVMOption:  
-agentlib:D:\eclipse\plugins\org.eclipse.tptp.platform.jvmti.runtime_4.6.3.v201102041710\agent_files\win_ia32\JPIBootLoader=JPIAgent:server=enabled,api=true;CGProf:execdetails=true

I can startup Glassfish but then during connection from Eclipse (New "Attach
to Agent" profile configuration, Agents (tab)) I cannot see any agents
registered with my Agent Controller. BTW I've tested that Agent Controller is
available.

I suppose the problem is related to Glassfish configuration which causes that
during GF startup it does not register Agent in Agent Controller.

Has anybody configured TPTP profiler with Glassfish. I would appreciate any
help.

 

--Environment

TPTP_AC_HOME=D:\eclipse\plugins\org.eclipse.tptp.platform.ac.win_ia32_4.4.302.v201102041430\agent_controller
TPTP_AC_CONFIG_HOME=D:\workspace\.metadata\.plugins\org.eclipse.tptp.platform.iac.administrator\config
WinXP SP3
Java:            1.6.0_26-b03
Glassfish        3.0.1

ACServer (IAC):  4.7.2
Eclipse: Helios
    Eclipse Platform    3.6.2.M20110210-1200   
org.eclipse.platform.ide
  TPTP Platform Project   
4.7.2.v201101261720-7u847D8kskO0sLbS8TY-AQwwEXhE   
  TPTP Platform Project   
4.7.2.v201101261720-7u847D8kskO0sLbS8TY-AQwwEXhE   
  TPTP Profiling for Web applications   
4.5.2.v201101261720-54178I8G5BlG8C99NBRDLKI


--
[Message sent by forum member 'aszwaj']
View Post: http://forums.java.net/node/871558