Home » Archived » Test and Performance Tools Platform (TPTP) » Agentr Controller -> no agents available
Agentr Controller -> no agents available [message #38788] |
Thu, 03 November 2005 06:04  |
Eclipse User |
|
|
|
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 10:36   |
Eclipse User |
|
|
|
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 #39583 is a reply to message #38788] |
Fri, 04 November 2005 11:19   |
Eclipse User |
|
|
|
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 #40019 is a reply to message #39955] |
Fri, 11 November 2005 05:26  |
Eclipse User |
|
|
|
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
|
|
|
Goto Forum:
Current Time: Tue Jul 22 15:26:16 EDT 2025
Powered by FUDForum. Page generated in 0.03697 seconds
|