Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Test and Performance Tools Platform (TPTP) » Attaching to weblogic 8.1 using IAC
Attaching to weblogic 8.1 using IAC [message #54675] Fri, 24 February 2006 16:17 Go to next message
Eclipse UserFriend
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 #54748 is a reply to message #54675] Fri, 24 February 2006 16:45 Go to previous messageGo to next message
Samson Wai is currently offline Samson WaiFriend
Messages: 46
Registered: July 2009
Member
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 #54857 is a reply to message #54748] Fri, 24 February 2006 19:12 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Harry.Arendt.us.ing.org

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 #55046 is a reply to message #54857] Mon, 27 February 2006 12:33 Go to previous messageGo to next message
Samson Wai is currently offline Samson WaiFriend
Messages: 46
Registered: July 2009
Member
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 23:29 Go to previous messageGo to next message
Eclipse UserFriend
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 #59015 is a reply to message #57536] Fri, 17 March 2006 14:21 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Harry.Arendt.us.ing.com

Andrew,

I am sporatically returning to this to see if I can make it work. In my
prior attempts I attacked the problem in a haphazardous manner which
eventually lead to the destruction of eclipse on my workstation
altogether. My current approach is to proceed more slowly to try to
understand the implications of each step. Hopefully this approach will
benefit both of us.

A point of confusion; It appears that there are two or three issues of
confusion. The first I have encountered deals with the agent. In 4.1.*
versions of tptp the agent is the old agent and in 4.2 there is a new
agent. I am working with 4.1.

There are two distributions of note. The first is encapsulated in
tptp.runtime-TPTP-4.1.0.zip which when unpacked puts all its code into two
ecplise sub directories, features and plugins. In this case the
piAgent.dll is in the directory:

C:\Program Files\Java\eclipse31
\eclipse\plugins\org.eclipse.hyades.execution_4.1.0.1\os\win 32\x86

On my system.

However this installation does not install the RAServer.exe or the
RAService.exe. To get these you must get the file
tptp.win_ia32-TPTP-4.1.0.zip. This is where it get interesting,
Unpacking this zip file to your eclipse directory creates two new eclipse
directories bin and config as well as replacing series of files in the old
plug-in directories.

Confused yet? It gets better!

Your first decision is if to overwrite the existing files with the new
ones. I am going to do this today.

Your second decision is which piAgent.dll to use. The new one is in the
newly created eclipse/bin directory whereas the old one is noted above.

If you include the -XrunpiAgent line without the agent running you should
get a message on the weblogic console;

Agent Controller is not active: will wait in a 1000 ms loop.


So I conclude that you must have either the RAServer or service running.

I am going to attempt all this today so I will report back as to how it
goes.
Re: Attaching to weblogic 8.1 using IAC [message #59298 is a reply to message #59015] Mon, 20 March 2006 15:16 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Harry.Arendt.us.ing.com

Well I tried this and found out that if you do not have the agent running
then weblogic puts out a message and waits for the agent. If the agent is
already running or you start it then the weblogic startup hangs.

I also put a message in the weblogic news group but I got no response.
Apparently weblogic is not monitoring these, or there own, news groups.
This makes me wonder about thier commitment to the eclipse project.

Until I get more info I am sopped from using this tool with weblogic 8.1.
Re: Attaching to weblogic 8.1 using IAC [message #68102 is a reply to message #59298] Wed, 26 April 2006 05:09 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Paul.Galbraith.telus.com

Harry Arendt wrote:
>
> Well I tried this and found out that if you do not have the agent
> running then weblogic puts out a message and waits for the agent. If
> the agent is already running or you start it then the weblogic startup
> hangs.
>
> I also put a message in the weblogic news group but I got no response.
> Apparently weblogic is not monitoring these, or there own, news groups.
> This makes me wonder about thier commitment to the eclipse project.
>
> Until I get more info I am sopped from using this tool with weblogic 8.1.
>
>
>

I can't get this working, either ... has anyone had any success with
WebLogic 8.1?

I've downloaded the 4.1.0.1 agent controller and run the SetConfig.bat
which did seems to have successfully created a serviceconfig.xml file.
I then run raserver.exe which produces no visible output, but seems to
execute. Finally I try to start weblogic with the
-XrunpiAgent:server=enabled jvm option, but it just appears to hang
right away, weblogic does not even begin initializing.

Can anyone offer any suggestions? Thanks,

Paul
Re: Attaching to weblogic 8.1 using IAC [message #68695 is a reply to message #68102] Wed, 26 April 2006 13:32 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Paul.Galbraith.telus.com

Paul Galbraith wrote:
>
> I've downloaded the 4.1.0.1 agent controller and run the SetConfig.bat
> which did seems to have successfully created a serviceconfig.xml file. I
> then run raserver.exe which produces no visible output, but seems to
> execute. Finally I try to start weblogic with the
> -XrunpiAgent:server=enabled jvm option, but it just appears to hang
> right away, weblogic does not even begin initializing.
>

After trying one more time as above and then trying to attach from
within eclipse, I now am able to see the running agent, which is
progress. I'll report back with more results...
Re: Attaching to weblogic 8.1 using IAC [message #68755 is a reply to message #68695] Wed, 26 April 2006 17:03 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Paul.Galbraith.telus.com

Paul Galbraith wrote:
> After trying one more time as above and then trying to attach from
> within eclipse, I now am able to see the running agent, which is
> progress. I'll report back with more results...

I just wanted to follow up with another quick update. I switched to
running WebLogic in a newer JVM (1.4.2_11), and am now able to attach to
the profiler agent (when WLS is started with
"-XrunpiAgent:server=enabled") using either of the internal agent
controller that ships in the standard 4.1.0.1 TPTP package or the
external agent controller that I downloaded separately.
Re: Attaching to weblogic 8.1 using IAC [message #70405 is a reply to message #68755] Wed, 10 May 2006 18:18 Go to previous messageGo to next message
Ron Gavlin is currently offline Ron GavlinFriend
Messages: 91
Registered: July 2009
Member
I am having problems using Sun JDK 1.4.2_08 on windows. What version of
the JDK were you using when you were having problems?
Re: Attaching to weblogic 8.1 using IAC [message #70424 is a reply to message #59015] Wed, 10 May 2006 21:02 Go to previous messageGo to next message
Eclipse UserFriend
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. &nbsp;Integrated Agent Controller
(IAC) is a replacement for the Remote Agent Controller (RAC) in the local
scenario. &nbsp;RAC allows the user to profile locally as well as remotely
via socket communication. &nbsp;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. &nbsp;That's where IAC comes in the
picture. &nbsp;IAC allows the user to profile locally without requiring
the RAC. &nbsp;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">).
&nbsp;If you're planning to use IAC for local profiling, then you don't
need the RAC and you shouldn't bother downloading it. &nbsp;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.
&nbsp;These would be located in </font><tt><font size=2>&nbsp;&lt;eclipse
home&gt;/plugins/org.eclipse.hyades.execution_&lt;ve rsion&gt;/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. &nbsp;And
it seems like you've already figured this out by doing (-XrunpiAgent:server=enabled).
&nbsp;Now, I have no idea why Weblogic halts when you add this new VM argument.
&nbsp;It shouldn't and I've never experienced this with any other Java
application. &nbsp;This *could* be a problem with Weblogic. &nbsp;</font>
<br>
<br><font size=2 face="sans-serif">BTW, You can ignore the </font><tt><font size=2>&nbsp;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. &nbsp;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. &nbsp;This isn't an eclipse plugin. &nbsp;Extract
it to some where else on your filesystem. &nbsp;Once you do that, read
the getting_started.html in it to figure out how you can set it up and
start it. &nbsp;You'll need to remove the </font><tt><font size=2>&lt;eclipse
home&gt;/plugins/org.eclipse.hyades.execution_&lt;ve rsion&gt;/os/win32/x86 </font></tt><font size=2 face="sans-serif">
&nbsp;directory from your PATH and add &lt;RAC_HOME&gt;/bin instead. &nbsp;Then
start your RAC, start weblogic in 'enabled' mode, and try to attach to
it in the workbench. &nbsp;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 14:08 Go to previous message
Eclipse UserFriend
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.
Previous Topic:AGR: How to find out that ant build terminated
Next Topic:Problems profiling linux app from windows...
Goto Forum:
  


Current Time: Thu Mar 28 23:01:45 GMT 2024

Powered by FUDForum. Page generated in 0.03372 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top