| Home » Archived » Test and Performance Tools Platform (TPTP) » Attaching to weblogic 8.1 using IAC
 Goto Forum:| 
| Attaching to weblogic 8.1 using IAC [message #54675] | Fri, 24 February 2006 11:17  |  | 
| Eclipse User  |  |  |  |  | Originally posted by: Harry.Arendt.us.ing.org 
 After carefully reviewing this conference I have not found an answer to my
 question.
 
 I am new to TPTP but am a long time eclipse user.
 
 I followed the tutorial directions for profiling the Product Sample example
 and it worked correctly.
 
 I have some confusion over how to use the Integrated Agent Controller to
 profile an application
 running on my local machine outside of Eclipse.
 
 I am now attempting to profile a J2EE application running on Weblogic 8.1.
 The application is built using
 ANT and is deployed as an EAR file.
 
 I am attempting to follow one of the tutorials the deal with attaching to
 remote/local processes.
 
 My env.
 
 Windows XP SP1
 Eclipse 3.1.2
 TPTP 4.1.0
 Weblogic 8.1
 JRE 1.4.2_04
 
 Within eclipse I created a server:
 Generic BEA Weblogic Server v8.1
 localhost
 
 To the java command to start weblogic I added this based on some of the
 things I read here.
 
 -XrunpiAgent:server=enabled
 
 However weblogic would not start with this added.
 
 If I start weblogic without this and I go to the Profile and Logging view
 the Run->Profiles and select
 
 Attach - Java Process - New
 I get the configuration dialog.  Selecting LocalDirect Connection -- Test
 Connection works however
 on the Agents tab there is an error indicator, there are no agents listed
 and the at the top of the dialog
 I see the error message;
 
 IWAT0225E You must select at least one agent to attach to.
 
 I had expected to see something from the weblogic service similar to what
 the tutorial showed me, however
 the tutorial was with Tomcat and not wweb logic. It showed a PID: 1208
 
 Has anyone out there attempted to connect ot a running weblogic system?
 
 Also does anyone know why I do not see any Agents?
 
 Harry Arendt
 |  |  |  |  |  |  |  |  | 
| Re: Attaching to weblogic 8.1 using IAC [message #55046 is a reply to message #54857] | Mon, 27 February 2006 07:33   |  | 
| Eclipse User  |  |  |  |  | Hi, 
 Yes, the "piAgent.dll" does depends on the following DLL's
 - hcclco.dll
 - hccldt.dll
 - hccls.dll
 - hcbnd.dll
 - hcclsm.dll
 
 Usually these DLL's are packaged under the same directory as
 "piAgent.dll" and should also be in the PATH in order to allow the JVM
 to load the profiling agent.
 
 Samson
 
 
 Harry Arendt wrote:
 > Samson,
 >
 > Thanks for the reply and the suggestions.
 >
 > This highlights some of my confusion.   Before I realized that 4.1 had the
 > IAC I
 > did install the old agent plug in so I have the directory you referenced.
 > However a search of
 > my system for the dll showed it in my eclipse 31 directory in the bin
 > folder.  I do have that folder in
 > my path, and I wonder if there are other dlls in the path you referenced
 > which are also needed.
 >
 > Harry
 >
 >
 > "Samson Wai" <samwai@ca.ibm.com> wrote in message
 > news:dtnd6o$53c$1@utils.eclipse.org...
 >> Hello,
 >>
 >> In order to profile any Java application such as a Weblogic server, you
 >> will have to pass in the Java VM argument "-XrunpiAgent:server=enabled".
 >> If the Java application fails to come up, it may due to the face that
 >> the library "piAgent.dll" (on Win32) is missing from the PATH and thus
 >> the JVM cannot load the profiling agent. The JVM is trying to load the
 >> library "piAgent" which is specified in the "-Xrun" argument by looking
 >> at the PATH. If no "-XrunpiAgent" arg is passed then there won't be any
 >> profiling agent appearing on the Profiling configuration dialog.
 >>
 >> You may need to add to the PATH this directory:
 >> - <eclipse home>/plugins/org.eclipse.hyades.execution/os/win32/x86
 >> in the same command prompt where Weblogic is to be started.
 >>
 >> Note: the directory "org.eclipse.hyades.execution" may contain a version
 >> and/or a build number. For example:
 >>
 >> org.eclipse.hyades.execution_4.1.0.200602210100
 >>
 >> The "os/win32/x86" directory contain
 >>
 >> Regards,
 >>
 >> Samson
 >>
 >>
 >> Eclipse wrote:
 >>> After carefully reviewing this conference I have not found an answer to
 > my
 >>> question.
 >>>
 >>> I am new to TPTP but am a long time eclipse user.
 >>>
 >>> I followed the tutorial directions for profiling the Product Sample
 > example
 >>> and it worked correctly.
 >>>
 >>> I have some confusion over how to use the Integrated Agent Controller to
 >>> profile an application
 >>> running on my local machine outside of Eclipse.
 >>>
 >>> I am now attempting to profile a J2EE application running on Weblogic
 > 8.1.
 >>> The application is built using
 >>> ANT and is deployed as an EAR file.
 >>>
 >>> I am attempting to follow one of the tutorials the deal with attaching
 > to
 >>> remote/local processes.
 >>>
 >>> My env.
 >>>
 >>> Windows XP SP1
 >>> Eclipse 3.1.2
 >>> TPTP 4.1.0
 >>> Weblogic 8.1
 >>> JRE 1.4.2_04
 >>>
 >>> Within eclipse I created a server:
 >>>     Generic BEA Weblogic Server v8.1
 >>>     localhost
 >>>
 >>> To the java command to start weblogic I added this based on some of the
 >>> things I read here.
 >>>
 >>> -XrunpiAgent:server=enabled
 >>>
 >>> However weblogic would not start with this added.
 >>>
 >>> If I start weblogic without this and I go to the Profile and Logging
 > view
 >>> the Run->Profiles and select
 >>>
 >>> Attach - Java Process - New
 >>> I get the configuration dialog.  Selecting LocalDirect Connection --
 > Test
 >>> Connection works however
 >>> on the Agents tab there is an error indicator, there are no agents
 > listed
 >>> and the at the top of the dialog
 >>> I see the error message;
 >>>
 >>>  IWAT0225E You must select at least one agent to attach to.
 >>>
 >>> I had expected to see something from the weblogic service similar to
 > what
 >>> the tutorial showed me, however
 >>> the tutorial was with Tomcat and not wweb logic. It showed a PID: 1208
 >>>
 >>> Has anyone out there attempted to connect ot a running weblogic system?
 >>>
 >>> Also does anyone know why I do not see any Agents?
 >>>
 >>> Harry Arendt
 >>>
 >>>
 >
 >
 |  |  |  |  | 
| Re: Attaching to weblogic 8.1 using IAC [message #57536 is a reply to message #55046] | Fri, 10 March 2006 18:29   |  | 
| Eclipse User  |  |  |  |  | Originally posted by: Paul_Andrews.capgroup.com 
 I'm trying to do the same thing but find it all very confusing. In
 particular, I have set up the path as outlined below and run weblogic with
 the -XrunpiAgent:server=enabled option but the weblogic server doesn't
 start up - the java process is created and just sits there, no output is
 sent to the console.
 
 OK, thought I, maybe its waiting for me to attach the profiler to it, so I
 followed the directions in the 'attach to java process' section of the
 TPTP documentation and I selected 'Start monitoring' from the popup menu
 in the profiling view. But no, still no sign of life from weblogic and
 there are no execution statistics to be had.
 
 So does anyone have any pointers?
 
 BTW1 - where is -XrunpiAgent:server=enabled documented?
 BTW2 - if I don't set the path up properly weblogic runs fine, but I
 obviously can't attach to it.
 
 Samson Wai wrote:
 
 > Hi,
 
 > Yes, the "piAgent.dll" does depends on the following DLL's
 > - hcclco.dll
 > - hccldt.dll
 > - hccls.dll
 > - hcbnd.dll
 > - hcclsm.dll
 
 > Usually these DLL's are packaged under the same directory as
 > "piAgent.dll" and should also be in the PATH in order to allow the JVM
 > to load the profiling agent.
 
 > Samson
 
 
 > Harry Arendt wrote:
 >> Samson,
 >>
 >> Thanks for the reply and the suggestions.
 >>
 >> This highlights some of my confusion.   Before I realized that 4.1 had the
 >> IAC I
 >> did install the old agent plug in so I have the directory you referenced.
 >> However a search of
 >> my system for the dll showed it in my eclipse 31 directory in the bin
 >> folder.  I do have that folder in
 >> my path, and I wonder if there are other dlls in the path you referenced
 >> which are also needed.
 >>
 >> Harry
 >>
 >>
 >> "Samson Wai" <samwai@ca.ibm.com> wrote in message
 >> news:dtnd6o$53c$1@utils.eclipse.org...
 >>> Hello,
 >>>
 >>> In order to profile any Java application such as a Weblogic server, you
 >>> will have to pass in the Java VM argument "-XrunpiAgent:server=enabled".
 >>> If the Java application fails to come up, it may due to the face that
 >>> the library "piAgent.dll" (on Win32) is missing from the PATH and thus
 >>> the JVM cannot load the profiling agent. The JVM is trying to load the
 >>> library "piAgent" which is specified in the "-Xrun" argument by looking
 >>> at the PATH. If no "-XrunpiAgent" arg is passed then there won't be any
 >>> profiling agent appearing on the Profiling configuration dialog.
 >>>
 >>> You may need to add to the PATH this directory:
 >>> - <eclipse home>/plugins/org.eclipse.hyades.execution/os/win32/x86
 >>> in the same command prompt where Weblogic is to be started.
 >>>
 >>> Note: the directory "org.eclipse.hyades.execution" may contain a version
 >>> and/or a build number. For example:
 >>>
 >>> org.eclipse.hyades.execution_4.1.0.200602210100
 >>>
 >>> The "os/win32/x86" directory contain
 >>>
 >>> Regards,
 >>>
 >>> Samson
 >>>
 >>>
 >>> Eclipse wrote:
 >>>> After carefully reviewing this conference I have not found an answer to
 >> my
 >>>> question.
 >>>>
 >>>> I am new to TPTP but am a long time eclipse user.
 >>>>
 >>>> I followed the tutorial directions for profiling the Product Sample
 >> example
 >>>> and it worked correctly.
 >>>>
 >>>> I have some confusion over how to use the Integrated Agent Controller to
 >>>> profile an application
 >>>> running on my local machine outside of Eclipse.
 >>>>
 >>>> I am now attempting to profile a J2EE application running on Weblogic
 >> 8.1.
 >>>> The application is built using
 >>>> ANT and is deployed as an EAR file.
 >>>>
 >>>> I am attempting to follow one of the tutorials the deal with attaching
 >> to
 >>>> remote/local processes.
 >>>>
 >>>> My env.
 >>>>
 >>>> Windows XP SP1
 >>>> Eclipse 3.1.2
 >>>> TPTP 4.1.0
 >>>> Weblogic 8.1
 >>>> JRE 1.4.2_04
 >>>>
 >>>> Within eclipse I created a server:
 >>>>     Generic BEA Weblogic Server v8.1
 >>>>     localhost
 >>>>
 >>>> To the java command to start weblogic I added this based on some of the
 >>>> things I read here.
 >>>>
 >>>> -XrunpiAgent:server=enabled
 >>>>
 >>>> However weblogic would not start with this added.
 >>>>
 >>>> If I start weblogic without this and I go to the Profile and Logging
 >> view
 >>>> the Run->Profiles and select
 >>>>
 >>>> Attach - Java Process - New
 >>>> I get the configuration dialog.  Selecting LocalDirect Connection --
 >> Test
 >>>> Connection works however
 >>>> on the Agents tab there is an error indicator, there are no agents
 >> listed
 >>>> and the at the top of the dialog
 >>>> I see the error message;
 >>>>
 >>>>  IWAT0225E You must select at least one agent to attach to.
 >>>>
 >>>> I had expected to see something from the weblogic service similar to
 >> what
 >>>> the tutorial showed me, however
 >>>> the tutorial was with Tomcat and not wweb logic. It showed a PID: 1208
 >>>>
 >>>> Has anyone out there attempted to connect ot a running weblogic system?
 >>>>
 >>>> Also does anyone know why I do not see any Agents?
 >>>>
 >>>> Harry Arendt
 >>>>
 >>>>
 >>
 >>
 |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  | 
| Re: Attaching to weblogic 8.1 using IAC [message #70424 is a reply to message #59015] | Wed, 10 May 2006 17:02   |  | 
| Eclipse User  |  |  |  |  | Originally posted by: nmehrega.ca.ibm.com 
 This is a multipart message in MIME format.
 --=_alternative 00739FD68525716A_=
 Content-Type: text/plain; charset="US-ASCII"
 
 Hi Harry,
 
 Let me explain a few things that will hopefully help you in your
 confusion.  Integrated Agent Controller (IAC) is a replacement for the
 Remote Agent Controller (RAC) in the local scenario.  RAC allows the user
 to profile locally as well as remotely via socket communication.  However,
 it doesn't make a lot of sense to be running a separate process and
 communicating via sockets when you want to profile something locally.
 That's where IAC comes in the picture.  IAC allows the user to profile
 locally without requiring the RAC.  The IAC plugin is included in the TPTP
 plugin (i.e. tptp.runtime-TPTP-4.1.0.zip).  If you're planning to use IAC
 for local profiling, then you don't need the RAC and you shouldn't bother
 downloading it.  The second zip you extracted is the RAC (i.e.
 tptp.win_ia32-TPTP-4.1.0.zip).
 
 Now as Samson mentioned, you'll need the IAC DLL files in your PATH before
 you can attach to a profiling agent.  These would be located in  <eclipse
 home>/plugins/org.eclipse.hyades.execution_<version>/os/win32/x86
 
 Once you do this, you can start any Java process in 'enabled' mode and
 attach to it in the workbench.  And it seems like you've already figured
 this out by doing (-XrunpiAgent:server=enabled).  Now, I have no idea why
 Weblogic halts when you add this new VM argument.  It shouldn't and I've
 never experienced this with any other Java application.  This *could* be a
 problem with Weblogic.
 
 BTW, You can ignore the  Agent Controller is not active: will wait in a
 1000 ms loop. message when you're planning to attach to your agent with
 IAC.
 
 Now you can also try profiling with RAC instead of IAC to see if it solves
 your problem.  You shouldn't extract the RAC zip file (i.e.
 tptp.win_ia32-TPTP-4.1.0.zip) in your eclipse directory.  This isn't an
 eclipse plugin.  Extract it to some where else on your filesystem.  Once
 you do that, read the getting_started.html in it to figure out how you can
 set it up and start it.  You'll need to remove the <eclipse
 home>/plugins/org.eclipse.hyades.execution_<version>/os/win32/x86
 directory from your PATH and add <RAC_HOME>/bin instead.  Then start your
 RAC, start weblogic in 'enabled' mode, and try to attach to it in the
 workbench.  Let me know what happens.
 
 Navid Mehregani
 --=_alternative 00739FD68525716A_=
 Content-Type: text/html; charset="US-ASCII"
 
 
 <br><font size=2 face="sans-serif">Hi Harry,</font>
 <br>
 <br><font size=2 face="sans-serif">Let me explain a few things that will
 hopefully help you in your confusion.  Integrated Agent Controller
 (IAC) is a replacement for the Remote Agent Controller (RAC) in the local
 scenario.  RAC allows the user to profile locally as well as remotely
 via socket communication.  However, it doesn't make a lot of sense
 to be running a separate process and communicating via sockets when you
 want to profile something locally.  That's where IAC comes in the
 picture.  IAC allows the user to profile locally without requiring
 the RAC.  The IAC plugin is included in the TPTP plugin (i.e. </font><tt><font size=2>tptp.runtime-TPTP-4.1.0.zip</font></tt><font size=2 face="sans-serif">).
  If you're planning to use IAC for local profiling, then you don't
 need the RAC and you shouldn't bother downloading it.  The second
 zip you extracted is the RAC (i.e. </font><tt><font size=2>tptp.win_ia32-TPTP-4.1.0.zip</font></tt><font size=2 face="sans-serif">).</font>
 <br>
 <br><font size=2 face="sans-serif">Now as Samson mentioned, you'll need
 the IAC DLL files in your PATH before you can attach to a profiling agent.
  These would be located in </font><tt><font size=2> <eclipse
 home>/plugins/org.eclipse.hyades.execution_<ve rsion>/os/win32/x86 </font></tt>
 <br>
 <br><font size=2 face="sans-serif">Once you do this, you can start any
 Java process in 'enabled' mode and attach to it in the workbench.  And
 it seems like you've already figured this out by doing (-XrunpiAgent:server=enabled).
  Now, I have no idea why Weblogic halts when you add this new VM argument.
  It shouldn't and I've never experienced this with any other Java
 application.  This *could* be a problem with Weblogic.  </font>
 <br>
 <br><font size=2 face="sans-serif">BTW, You can ignore the </font><tt><font size=2> Agent
 Controller is not active: will wait in a 1000 ms loop. </font></tt><font size=2 face="sans-serif">message
 when you're planning to attach to your agent with IAC. </font>
 <br>
 <br><font size=2 face="sans-serif">Now you can also try profiling with
 RAC instead of IAC to see if it solves your problem.  You shouldn't
 extract the RAC zip file (i.e. </font><tt><font size=2>tptp.win_ia32-TPTP-4.1.0.zip</font></tt><font size=2 face="sans-serif">)
 in your eclipse directory.  This isn't an eclipse plugin.  Extract
 it to some where else on your filesystem.  Once you do that, read
 the getting_started.html in it to figure out how you can set it up and
 start it.  You'll need to remove the </font><tt><font size=2><eclipse
 home>/plugins/org.eclipse.hyades.execution_<ve rsion>/os/win32/x86 </font></tt><font size=2 face="sans-serif">
  directory from your PATH and add <RAC_HOME>/bin instead.  Then
 start your RAC, start weblogic in 'enabled' mode, and try to attach to
 it in the workbench.  Let me know what happens.</font>
 <br>
 <br><font size=2 face="sans-serif">Navid Mehregani</font>
 --=_alternative 00739FD68525716A_=--
 |  |  |  |  | 
| Re: Attaching to weblogic 8.1 using IAC [message #76663 is a reply to message #68102] | Fri, 07 July 2006 10:08  |  | 
| Eclipse User  |  |  |  |  | Originally posted by: keithritchie_ca.XXXXyahoo.ca 
 My weblogic was hanging, but it was because of the setup we had to allow
 debugging. I commented out the following from our ant script and was able
 to successfully profile weblogic 8.1.
 
 
 
 <!-- Debug -- comment out to allow profiling
 <jvmarg value="-Xdebug"/>
 <jvmarg value="-Xnoagent"/>
 <jvmarg
 value="-Xrunjdwp:transport=dt_socket,server=y,suspend=n"/>
 <sysproperty key="java.compiler" value="NONE" />
 -->
 
 <!-- turn on TPTP profiling support -->
 <jvmarg value="-XrunpiAgent:server=enabled" />
 
 I am using the ACServer agent and connecting as documented in the TPTP
 docs.
 |  |  |  | 
 
 
 Current Time: Thu Oct 30 22:16:03 EDT 2025 
 Powered by FUDForum . Page generated in 0.25366 seconds |