Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Test and Performance Tools Platform (TPTP) » PerfmonAgent
PerfmonAgent [message #76965] Tue, 11 July 2006 12:04 Go to next message
Eclipse User
Originally posted by: radek.kedzior.gazeta.pl

Hi!

I have some questions about PerfmonAgent. I've been looking for those
information, but not enough effective.

- agent.xml - where can I find information about this file?
<Agent Name="org.eclipse.tptp.legacy.PerfmonAgent">
<Interface>org.eclipse.tptp.agent</Interface>
Is there any other interface? I was trying to use:
ICollector, but while executing:

ICollector TCollector = (ICollector)ac.getAgent(
"org.eclipse.tptp.legacy.PerfmonAgent", "org.eclipse.tptp.collector");

the cast exception is thrown, so the ICollector is not implemented by
PerfmonAgent. Am I right?

<SingleInstance>0</SingleInstance>
<Bound>0</Bound>
<MaxControllers>-1</MaxControllers>
<MaxObservers>-1</MaxObservers>
Are these options correct?

<ConfigFile></ConfigFile>
Where can I find it? Is there any?

This configuration seems quite ok. After executing:

IAgent[] a = ac.queryRunningAgents();
IAgent TAgent = (IAgent)ac.getAgent( "org.eclipse.tptp.legacy.PerfmonAgent",
"org.eclipse.tptp.agent" );
IAgent[] b = ac.queryRunningAgents();

variable 'a' doesn't contain PerfmonAgent and variable 'b' does.

- API

I have an instance of PerfmonAgent in TAgent, and now I don't know how to
communicate with it. If it implements an IAgent interface I can call methods
delivered by this interface. But I still don't know what options (data)
those methods needs. I found PerfmonMessages class but there is no
description.

Where can I find information how to inform PerfmonAgent which data I need
and how can I receive that data. Not via Eclipse but I need API. Is there
any documentation or not yet?



Thanks

Radek Kedzior
Re: PerfmonAgent [message #77081 is a reply to message #76965] Tue, 11 July 2006 15:44 Go to previous messageGo to next message
Eclipse User
Originally posted by: radek.kedzior.gazeta.pl

> <ConfigFile></ConfigFile>
> Where can I find it? Is there any?

I think I've found it:
http://dev.eclipse.org/viewcvs/index.cgi/platform/org.eclips e.tptp.platform.agentcontroller/src-native-new/agents/org.ec lipse.tptp.PerfmonAgent/config/Attic/agentconfig.xml?cvsroot =TPTP_Project
Am I right?
Re: PerfmonAgent [message #77088 is a reply to message #76965] Tue, 11 July 2006 15:49 Go to previous messageGo to next message
Eclipse User
Originally posted by: radek.kedzior.gazeta.pl

> I was trying to use:
> ICollector, but while executing:
>
> ICollector TCollector = (ICollector)ac.getAgent(
> "org.eclipse.tptp.legacy.PerfmonAgent", "org.eclipse.tptp.collector");
> the cast exception is thrown, so the ICollector is not implemented by
> PerfmonAgent. Am I right?
I've found also file "agent.xml" and there is written
<Interface>org.eclipse.tptp.collector</Interface>
So why there is a cast exception? Is ICollector a wrong interface?
Re: PerfmonAgent [message #77118 is a reply to message #76965] Tue, 11 July 2006 17:23 Go to previous messageGo to next message
Randy D. Smith is currently offline Randy D. Smith
Messages: 394
Registered: July 2009
Senior Member
FaLCoN wrote:
> Hi!
>
> I have some questions about PerfmonAgent. I've been looking for those
> information, but not enough effective.
>
> - agent.xml - where can I find information about this file?
> <Agent Name="org.eclipse.tptp.legacy.PerfmonAgent">
> <Interface>org.eclipse.tptp.agent</Interface>
> Is there any other interface? I was trying to use:
> ICollector, but while executing:
>
> ICollector TCollector = (ICollector)ac.getAgent(
> "org.eclipse.tptp.legacy.PerfmonAgent", "org.eclipse.tptp.collector");
>
> the cast exception is thrown, so the ICollector is not implemented by
> PerfmonAgent. Am I right?
>
> <SingleInstance>0</SingleInstance>
> <Bound>0</Bound>
> <MaxControllers>-1</MaxControllers>
> <MaxObservers>-1</MaxObservers>
> Are these options correct?
>
> <ConfigFile></ConfigFile>
> Where can I find it? Is there any?
>
> This configuration seems quite ok. After executing:
>
> IAgent[] a = ac.queryRunningAgents();
> IAgent TAgent = (IAgent)ac.getAgent( "org.eclipse.tptp.legacy.PerfmonAgent",
> "org.eclipse.tptp.agent" );
> IAgent[] b = ac.queryRunningAgents();
>
> variable 'a' doesn't contain PerfmonAgent and variable 'b' does.
>
> - API
>
> I have an instance of PerfmonAgent in TAgent, and now I don't know how to
> communicate with it. If it implements an IAgent interface I can call methods
> delivered by this interface. But I still don't know what options (data)
> those methods needs. I found PerfmonMessages class but there is no
> description.
>
> Where can I find information how to inform PerfmonAgent which data I need
> and how can I receive that data. Not via Eclipse but I need API. Is there
> any documentation or not yet?
>
>
>
> Thanks
>
> Radek Kedzior

If you'll read my response to Przemyslaw Kleszczewski's "Perfmon Agent"
thread prior to this one, you'll get some historical context. One of the
things I mention there is the potential for confusion between the
existing RAC-oriented PerfmonAgent that comes with TPTP since as long as
I'm aware of, and the "migrated PerfmonAgent" that came with *4.1 only*.

I think you're working with the migrated PerfmonAgent code, but
potentially trying to talk to the old PerfmonAgent. You mention that
"queryRunningAgents" gave you access to a PerfmonAgent... how was it
started? If from the client, it's almost certainly the original
PerfmonAgent that talks RAC protocol. I don't think the client workbench
can launch the "migrated PerfmonAgent"... unless you get the
PerfmonPluginforAC (I think it was called) execution framework changes
from 4.1.

Besides the environment string changes mentioned in the prior response
mentioned above, I recall there were changes in the inheritance
hierarchy... that is probably the reason for the above class mismatch...
I recall running into them, but I don't recall how I got around them.
Perhaps I didn't... as I said, we abandoned the effort to keep the
"migrated PerfmonAgent" up to date due to lack of resources and
potential confusion... and here I am confused again! :-)

*One* thing I can help you with is the agent.xml specification: That's
documented at < http://www.eclipse.org/tptp/index.html > =>
Documentation => Installation and Getting Started Guides: Getting
Started with the Agent Controller 4.2.0-link => Windows => under
"Configure Agent Controller" the "Agent Controller configuration files"
link <
http://www.eclipse.org/tptp/home/downloads/installguide/agen tcontroller_42/ac_ref/r_config_ovw.html
> => second bullet item will direct you to "The agent.xml File" link at
<
http://www.eclipse.org/tptp/home/downloads/installguide/agen tcontroller_42/ac_ref/r_config_agent.html
>.

No, as far as I know there is no documentation on the "protocol" for
communicating between the client and the agent for PerfmonAgent. All I
know about it I learned from reading the code. Basically, you click on
tree elements in the client, which turns into tree element indicators
being sent to the agent. The agent is looping reading data based on a
database of tree elements to deliver, and delivering that information.
Another thread gets the client requests, and modifies the database, so
that the next iteration around the additional data is sent. That's it in
a nutshell.

--
RDS

Randy D. Smith randy (dot) d (dot) smith (at) intel (dot) com
Eclipse TPTP Committer, Platform Proj (data collection/agent controller)
Re: PerfmonAgent [message #77140 is a reply to message #77081] Tue, 11 July 2006 18:00 Go to previous message
Randy D. Smith is currently offline Randy D. Smith
Messages: 394
Registered: July 2009
Senior Member
FaLCoN wrote:
>> <ConfigFile></ConfigFile>
>>Where can I find it? Is there any?
>
>
> I think I've found it:
> http://dev.eclipse.org/viewcvs/index.cgi/platform/org.eclips e.tptp.platform.agentcontroller/src-native-new/agents/org.ec lipse.tptp.PerfmonAgent/config/Attic/agentconfig.xml?cvsroot =TPTP_Project
> Am I right?


I'm not quite sure WHAT I'm looking at at this link! Sorry!

But it raises and important point... we've moved away from the whole
"agentconfig.xml" idea (Andy Kaylor had some strong reasons for wanting
to distinguish between agent.xml and agentconfig.xml... but they've
gradually blurred into obscurity).

But, the last I looked, you HAD to have something in there. It's
ignored, but if it's empty, it was causing something to crash... the
Process Controller? I don't recall. But I always just had it to point to
the equivalent of /tmp or something similar.
--
RDS

Randy D. Smith randy (dot) d (dot) smith (at) intel (dot) com
Eclipse TPTP Committer, Platform Proj (data collection/agent controller)
Previous Topic:Perfmon Agent
Next Topic:ARM with AspectJ
Goto Forum:
  


Current Time: Tue Sep 16 05:07:14 GMT 2014

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

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