Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Test and Performance Tools Platform (TPTP) » Agentr Controller -> no agents available
Agentr Controller -> no agents available [message #38788] Thu, 03 November 2005 11:04 Go to next message
EJ Blom is currently offline EJ BlomFriend
Messages: 24
Registered: July 2009
Junior Member
Dear TPTP group,

I am sure this question must have been raised a couple of times before but I
can't find it back
in the archives of the postings of this newsgroup.
I've installed the Agent Controller and the TPTP components using Windows XP
and Eclipse 3.1.
I've configured the AgentController and started RAServer.exe. Using a TCP/IP
connection program, I can see port 10002 is opened. Upon clicking on a New
Configuration from the Profile menuin Eclipse, I connect to localhost.
Moreover, the agent list refreshes rapidly, but there
are no agents available: IWAT0225E You must select at least one agent to
attach to.

If I stop the RAServer.exe , connection is lost and Eclipse shows errors.

Any clue howto proceed?

Regards

EJ Blom
Re: Agentr Controller -> no agents available [message #38820 is a reply to message #38788] Thu, 03 November 2005 11:21 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: akuhn.arcor.de

hi,

did you start an agent at all ? If you don't then there won't be
an agent available...
e.g. start a logging agent, or start a profile session in a java app...

Andi

Evert-Jan Blom wrote:
> Dear TPTP group,
>
> I am sure this question must have been raised a couple of times before but I
> can't find it back
> in the archives of the postings of this newsgroup.
> I've installed the Agent Controller and the TPTP components using Windows XP
> and Eclipse 3.1.
> I've configured the AgentController and started RAServer.exe. Using a TCP/IP
> connection program, I can see port 10002 is opened. Upon clicking on a New
> Configuration from the Profile menuin Eclipse, I connect to localhost.
> Moreover, the agent list refreshes rapidly, but there
> are no agents available: IWAT0225E You must select at least one agent to
> attach to.
>
> If I stop the RAServer.exe , connection is lost and Eclipse shows errors.
>
> Any clue howto proceed?
>
> Regards
>
> EJ Blom
>
>
Re: Agentr Controller -> no agents available [message #38883 is a reply to message #38788] Thu, 03 November 2005 14:41 Go to previous messageGo to next message
Paul Slauenwhite is currently offline Paul SlauenwhiteFriend
Messages: 975
Registered: July 2009
Senior Member
Hi EJ Blom,
An agent (e.g. Java Profiler Agent or Logging Agent) must be running to
be able to attach (Help >> Help Contents >> Monitoring and analyzing
performance >> Monitoring and analyzing application performance >> Profiling
an application). Also, you need to check the 'Window >> Preferences... >>
Profiling and Logging >> Enable logging' Profiling and Logging preference to
attach to Logging Agents (see
https://bugs.eclipse.org/bugs/show_bug.cgi?id=114797).

Paul

"Evert-Jan Blom" <e.j.blom@rug.nl> wrote in message
news:dkcqrh$p57$1@news.eclipse.org...
> Dear TPTP group,
>
> I am sure this question must have been raised a couple of times before but
I
> can't find it back
> in the archives of the postings of this newsgroup.
> I've installed the Agent Controller and the TPTP components using Windows
XP
> and Eclipse 3.1.
> I've configured the AgentController and started RAServer.exe. Using a
TCP/IP
> connection program, I can see port 10002 is opened. Upon clicking on a New
> Configuration from the Profile menuin Eclipse, I connect to localhost.
> Moreover, the agent list refreshes rapidly, but there
> are no agents available: IWAT0225E You must select at least one agent to
> attach to.
>
> If I stop the RAServer.exe , connection is lost and Eclipse shows errors.
>
> Any clue howto proceed?
>
> Regards
>
> EJ Blom
>
>
Re: Agentr Controller -> no agents available [message #38932 is a reply to message #38883] Thu, 03 November 2005 15:36 Go to previous messageGo to next message
Randy D. Smith is currently offline Randy D. SmithFriend
Messages: 394
Registered: July 2009
Senior Member
When you clicked the "New Configuration", it came up in the Host tab.
Right next to the Host tab is the Agent tab. When you click that tab,
you'll see a list of some known agents, including Perfmon for Windows
and Linux. In case you were just interested in Perfmon, I thought I'd
mention that it is just as easy as two clicks away (the Agent tab, and
the Perfmon you want) before you went wading through help files,
preferences and the like... :-)
--
RDS

Paul Slauenwhite wrote:
> Hi EJ Blom,
> An agent (e.g. Java Profiler Agent or Logging Agent) must be running to
> be able to attach (Help >> Help Contents >> Monitoring and analyzing
> performance >> Monitoring and analyzing application performance >> Profiling
> an application). Also, you need to check the 'Window >> Preferences... >>
> Profiling and Logging >> Enable logging' Profiling and Logging preference to
> attach to Logging Agents (see
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=114797).
>
> Paul
>
> "Evert-Jan Blom" <e.j.blom@rug.nl> wrote in message
> news:dkcqrh$p57$1@news.eclipse.org...
>
>>Dear TPTP group,
>>
>>I am sure this question must have been raised a couple of times before but
>
> I
>
>>can't find it back
>>in the archives of the postings of this newsgroup.
>>I've installed the Agent Controller and the TPTP components using Windows
>
> XP
>
>>and Eclipse 3.1.
>>I've configured the AgentController and started RAServer.exe. Using a
>
> TCP/IP
>
>>connection program, I can see port 10002 is opened. Upon clicking on a New
>>Configuration from the Profile menuin Eclipse, I connect to localhost.
>>Moreover, the agent list refreshes rapidly, but there
>>are no agents available: IWAT0225E You must select at least one agent to
>>attach to.
>>
>> If I stop the RAServer.exe , connection is lost and Eclipse shows errors.
>>
>>Any clue howto proceed?
>>
>>Regards
>>
>>EJ Blom
>>
>>
>
>
>
Re: Agentr Controller -> no agents available [message #39057 is a reply to message #38788] Thu, 03 November 2005 17:43 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Navid_Mehregani_nmehrega.ca.ibm.com

This is a multipart message in MIME format.
--=_alternative 0061563D852570AE_=
Content-Type: text/plain; charset="US-ASCII"

You're not seeing any agents because you probably don't have any agents
registered with the Agent Controller. There are two ways you can profile
a Java application: either by launching it or attaching to it. The
following is an introductory document that explains everything you need to
know to get up and running:
http://www.eclipse.org/tptp/home/documents/tutorials/profili ngtool/profilingexample_32.html.
The document is a bit old so you might find some discrepancies in it.

Navid Mehregani
IBM Canada
--=_alternative 0061563D852570AE_=
Content-Type: text/html; charset="US-ASCII"


<br><font size=2 face="sans-serif">You're not seeing any agents because
you probably don't have any agents registered with the Agent Controller.
&nbsp;There are two ways you can profile a Java application: either by
launching it or attaching to it. &nbsp;The following is an introductory
document that explains everything you need to know to get up and running:
http://www.eclipse.org/tptp/home/documents/tutorials/profili ngtool/profilingexample_32.html.
&nbsp;The document is a bit old so you might find some discrepancies in
it.</font>
<br>
<br><font size=2 face="sans-serif">Navid Mehregani</font>
<br><font size=2 face="sans-serif">IBM Canada</font>
--=_alternative 0061563D852570AE_=--
Re: Agentr Controller -> no agents available [message #39583 is a reply to message #38788] Fri, 04 November 2005 16:19 Go to previous messageGo to next message
EJ Blom is currently offline EJ BlomFriend
Messages: 24
Registered: July 2009
Junior Member
Dear group! Thanks for the replies!

Andi wrote:

>did you start an agent at all ? If you don't then there won't be
>an agent available...
>e.g. start a logging agent, or start a profile session in a java app...

I've started the profiling action directly, by selecting under Profile my
RPC product.
This seems to work, but still I cannot use the agent controller, since there
are no agents in the list.


Paul wrote:
> An agent (e.g. Java Profiler Agent or Logging Agent) must be running to
>be able to attach (Help >> Help Contents >> Monitoring and analyzing
>performance >> Monitoring and analyzing application performance >>
>Profiling
>an application). Also, you need to check the 'Window >> Preferences... >>
>Profiling and Logging >> Enable logging' Profiling and Logging preference
>to
>attach to Logging Agents (see

I've selected this option, but that didn't yield any results. :-(

Randy wrote:

>hen you clicked the "New Configuration", it came up in the Host tab. Right
>next to the Host tab is the Agent tab. When you click that tab, you'll see
>a list of some known agents, including Perfmon for Windows and Linux. In
>case you were just interested in Perfmon, I thought I'd mention that it is
>just as easy as two clicks away (the Agent tab, and the Perfmon you want)
>before you went wading through help files, preferences and the like... :-)

I wish I could see some agents, but I can't !

Navid wrote:
>Yu're not seeing any agents because you probably don't have any agents
>registered with the Agent Controller. There are two ways you >an profile a
>Java application: either by launching it or attaching to it. The following
>is an introductory document that explains everything >you need to know to
>get up and running:
> http://www.eclipse.org/tptp/home/documents/tutorials/profili ngtool/profilingexample_32.html.
> >The document is a bit old so you might find some discrepancies in it.

Thanks for the link!

The profiling session on my local PC seem to be ok. But now I would like the
same application which is
now running on my server (with more memory, so I can check more stuff).
I've installed the RAServer, i can connect to it from my local PC (the
client). Moreover, I can check the version.

However, if I try profile the program on the server, it stops at 87% and
gives me this error:

IWAT0133E Error Launching application
Reason:
IWAT0114 Configuration error on agent controller
Error exists in agent controller configuration file: serviceconfig.xml
Make sure the agent controller installation is correctly configured.

These are the lines from that file:

<AgentControllerConfiguration activeConfiguration="default" filePort="10005"
isDataMultiplexed="false"
jvm="/usr/java/jre1.5.0_05/lib/i386/server/libjvm.so" l
oggingDetail="LOW" loggingLevel="INFORMATION" port="10002"
processPolling="true" securedPort="10003" version="4.0.0">
<AgentControllerEnvironment configuration="default">
<Variable name="JAVA_PATH" position="replace"
value="/usr/java/jre1.5.0_05/bin"/>
<Variable name="RASERVER_HOME" position="replace"
value="/usr/local/tptp/tptpdc/linux_ia32"/>

And my env settings:

LD_LIBRARY_PATH=/usr/java/jre1.5.0_05/bin:/usr/local/tptp/tp tpdc/linux_ia32/lib:/usr/java/jre1.5.0_05/lib/i386/client/
RASERVER_HOME=/usr/local/tptp/tptpdc/linux_ia32
PATH=/usr/local/tptp/tptpdc/linux_ia32/bin:/usr/java/jre1.5. 0_05/bin:/usr/local/tptp/tptpdc/linux_ia32/lib

It looks fine doesn't it? If I change the settings for the Java path in the
XML, i get connection errors so I figured it's ok now.
Ok , long reply, hope you can find some , thanks in advance!

Regards EJ
Re: Agentr Controller -> no agents available [message #39955 is a reply to message #39583] Thu, 10 November 2005 22:09 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Navid_Mehregani_nmehrega.ca.ibm.com

This is a multipart message in MIME format.
--=_alternative 0079BBFE852570B5_=
Content-Type: text/plain; charset="US-ASCII"

Hmm...from your environment variable set ups, it seems like you're using
JDK 1.5. TPTP doesn't currently support JDK 1.5. Try using JDK 1.4
instead.

Did you run the application you want to profile with the
-XrunpiAgent:server=enabled or -XrunpiAgent:server=controlled VM argument?
This is how the agent would get registered with the agent controller so
that you can select it from the agent list.

The error message you're getting could be a JDK 1.5 compatibility issue.
Try regenerating the config file by completing the following steps:
- Stop the Agent Controller
- Regen your serviceconfig.xml file by running setconfig.sh from the bin
directory of the Agent Controller
- Start the Agent Controller

Remember to use JDK 1.4.

If you still get the error message, you can check the serviceconfig.log
available in the config directory of the Agent Controller for more details
about the error message. The log records are in CBE format so you can
import it in the Profiling and Logging perspective to view it easily.
--=_alternative 0079BBFE852570B5_=
Content-Type: text/html; charset="US-ASCII"


<br><font size=2 face="sans-serif">Hmm...from your environment variable
set ups, it seems like you're using JDK 1.5. &nbsp;TPTP doesn't &nbsp;currently
support JDK 1.5. &nbsp;Try using JDK 1.4 instead.</font>
<br>
<br><font size=2 face="sans-serif">Did you run the application you want
to profile with the -XrunpiAgent:server=enabled or -XrunpiAgent:server=controlled
VM argument? &nbsp;This is how the agent would get registered with the
agent controller so that you can select it from the agent list. &nbsp;<br>
</font>
<br><font size=2 face="sans-serif">The error message you're getting could
be a JDK 1.5 compatibility issue. &nbsp;Try regenerating the config file
by completing the following steps:</font>
<br><font size=2 face="sans-serif">- Stop the Agent Controller</font>
<br><font size=2 face="sans-serif">- Regen your serviceconfig.xml file
by running setconfig.sh from the bin directory of the Agent Controller</font>
<br><font size=2 face="sans-serif">- Start the Agent Controller</font>
<br>
<br><font size=2 face="sans-serif">Remember to use JDK 1.4. &nbsp;</font>
<br>
<br><font size=2 face="sans-serif">If you still get the error message,
you can check the serviceconfig.log available in the config directory of
the Agent Controller for more details about the error message. &nbsp;The
log records are in CBE format so you can import it in the Profiling and
Logging perspective to view it easily.</font>
--=_alternative 0079BBFE852570B5_=--
Re: Agentr Controller -> no agents available [message #40019 is a reply to message #39955] Fri, 11 November 2005 10:26 Go to previous message
EJ Blom is currently offline EJ BlomFriend
Messages: 24
Registered: July 2009
Junior Member
Navid_Mehregani_nmehrega@ca.ibm.com> wrote in message
news:dl0gf6$e2v$1@news.eclipse.org...

>
>Hmm...from your environment variable set ups, it seems like you're using
>JDK 1.5. TPTP doesn't currently support JDK 1.5. Try using >JDK 1.4
>instead.

OK, we switched the agent server & application from 1.5 to 1.4. Didn't do
the job :-(

>Did you run the application you want to profile with
>the -XrunpiAgent:server=enabled or -XrunpiAgent:server=controlled VM
> >argument? This is how the agent would get registered with the agent
>controller so that you can select it from the agent list.

The VM switch -XrunpiAgent:server=enabled yielded an nasty VM error.
The -XrunpiAgent:server=controlled switch however did work. Let me explain
our setup.

2 computers, one windows client, one Linux client. Both of them running the
same Eclipse IDE. We are able to profile the
windows client using the Linux PC. However, the opposite won't work. We
started the RAServer without any problems,
hit the profile option (and the -XrunpiAgent:server=controlled switch) and
see the monitoring task appearing in the Profiling
perspective. We then chose detach, and on the Windows client, we're able to
select the appropiate agent. But after a view
seconds... it stops with the message terminated. The strange thing is that
we the profiled application doesn't show up on the Linux
client. So, it says it is profiling, but there is nothing to profile since
the program is not running at all. The reverse combination does
work however as stated before.

>If you still get the error message, you can check the serviceconfig.log
>available in the config directory of the Agent Controller for more >details
>about the error message. The log records are in CBE format so you can
>import it in the Profiling and Logging perspective to view >it easily.

We checked it, but we couldn't find anything interesting (the log file was
not very filled also).

Moreover, we've encountered the following. The XML configuration file of the
agent uses the path to the java folder:

<Variable name="JAVA_PATH" position="replace"
value="/usr/java/j2re1.4.2_05/bin/"/>

However, the profile session would not start, it would get stuck on 87%.
With the following error:
IWAT0113E Error launching application: Reason: IWAT0114E Configuration error
on agent controller. Error exists in
agent controller configuration file: serviceconfig.xml. Make sure the agent
controller installation is correctly configured.

If we then change the JAVA_PATH to:

<Variable name="JAVA_PATH" position="replace"
value="/usr/java/j2re1.4.2_05/bin/java"/>

the error is gone and we get a profile session (although without the
application popping up).

Thanks in advance for your reply!

Regards

Evert-Jan Blom
Previous Topic:Multiproject test Coverage
Next Topic:I think I have gone blind / TPTP tutorial missing
Goto Forum:
  


Current Time: Tue Apr 16 05:28:44 GMT 2024

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

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

Back to the top