Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Test and Performance Tools Platform (TPTP) » Getting the new technology agent controller working
Getting the new technology agent controller working [message #63969] Tue, 04 April 2006 19:29 Go to next message
Jeremy McJunkin is currently offline Jeremy McJunkinFriend
Messages: 23
Registered: July 2009
Junior Member
I've downloaded and installed the new technology agent controller. I have
followed the instructions in the readme.txt file, however, when I try to
run SampleClient, it just stops after printing the Agent ID.

Here is the output from the SampleClient shell:
[bin]$ SampleClient

Connected to the Agent Controller on "localhost" at port number 10006

The Time Collector Agent ID: 102

Also, when trying to run a test suite in tptp, this is the exception trace
I see from the tptpAgentController shell:
[bin]$ tptpAgentCtlr
Exception in thread "Reader Thread: IBMRAC:ramaster"
java.lang.NullPointerException
at java.util.Hashtable.getEntry(Hashtable.java:492)
at java.util.Hashtable.containsKey(Hashtable.java:368)
at
org.eclipse.tptp.platform.agentcontroller.internal.impl.Traf ficControllerImpl.getTransport(TrafficControllerImpl.java:21 8)
at
org.eclipse.tptp.platform.agentcontroller.internal.hyades.im pl.HyadesMessageProcessorImpl.waitUntilFlushCompleted(Hyades MessageProcessorImpl.java:1339)
at
org.eclipse.tptp.platform.agentcontroller.internal.hyades.im pl.HyadesMessageProcessorImpl.processExited(HyadesMessagePro cessorImpl.java:1258)
at
org.eclipse.tptp.platform.agentcontroller.internal.hyades.im pl.HyadesMessageProcessorImpl.processExited(HyadesMessagePro cessorImpl.java:1233)
at
org.eclipse.tptp.platform.agentcontroller.internal.hyades.pr oxy.ProcessProxy.processExited(ProcessProxy.java:181)
at
org.eclipse.tptp.platform.agentcontroller.internal.hyades.im pl.HyadesMessageProcessorImpl.agentInactive(HyadesMessagePro cessorImpl.java:1307)
at
org.eclipse.tptp.platform.agentcontroller.internal.hyades.pr oxy.AgentProxy.setActive(AgentProxy.java:90)
at
org.eclipse.tptp.platform.agentcontroller.internal.hyades.im pl.HyadesMessageProcessorImpl.handleAgentInactive(HyadesMess ageProcessorImpl.java:261)
at
org.eclipse.tptp.platform.agentcontroller.internal.hyades.im pl.HyadesMessageProcessorImpl.incommingCommand(HyadesMessage ProcessorImpl.java:212)
at
org.eclipse.tptp.platform.agentcontroller.internal.hyades.im pl.HyadesMessageProcessorImpl.incommingMessage(HyadesMessage ProcessorImpl.java:114)
at
org.eclipse.tptp.platform.agentcontroller.internal.hyades.im pl.HyadesByteProcessorImpl.processByteStream(HyadesByteProce ssorImpl.java:197)
at
org.eclipse.tptp.platform.agentcontroller.internal.hyades.im pl.HyadesByteProcessorImpl.incommingBytes(HyadesByteProcesso rImpl.java:84)
at
org.eclipse.tptp.platform.agentcontroller.internal.hyades.im pl.HyadesProcessingModuleImpl.incommingBytes(HyadesProcessin gModuleImpl.java:68)
at
org.eclipse.tptp.platform.agentcontroller.internal.transport .impl.DataReaderThreadImpl.run(DataReaderThreadImpl.java:46)
Re: Getting the new technology agent controller working [message #63992 is a reply to message #63969] Tue, 04 April 2006 19:39 Go to previous messageGo to next message
Jeremy McJunkin is currently offline Jeremy McJunkinFriend
Messages: 23
Registered: July 2009
Junior Member
Forgot to mention, this is on ia32 linux.
Re: Getting the new technology agent controller working [message #64103 is a reply to message #63969] Tue, 04 April 2006 21:49 Go to previous messageGo to next message
Randy D. Smith is currently offline Randy D. SmithFriend
Messages: 394
Registered: July 2009
Senior Member
Jeremy McJunkin wrote:
> I've downloaded and installed the new technology agent controller. I
> have followed the instructions in the readme.txt file, however, when I
> try to run SampleClient, it just stops after printing the Agent ID.

Which version of the new tech AC?? If the latest, you're *really* on the
bleeding edge with Linux-IA32 version... I run that to get just these
kind of kinks out, but for now we're only really pushing on the Windows
side. It's *so* bleeding edge that I'll even have to ask for a complete
version number! I just built and uploaded the 200604040905 version (and
haven't even tried it on Linux yet... I've had the Windows version up
for about an hour)... earlier versions are in various states of dealing
with just the kind of problems you're seeing.

Stability would mean back in the 4.1 release times... but that version
didn't have "backward compatibility" to the RAC, so I don't think you'd
be able to get any "test suite" coming from the workbench to work the
way you expect.

Give me the agntctrl.linux_ia32-TPTP-4.?.0-200?????????.zip info (tell
me what the ?s are) and I'll take it from there.

--
RDS

Randy D. Smith randy (dot) d (dot) smith (at) intel (dot) com
Eclipse TPTP Committer, Platform Proj (data collection/agent controller)
Re: Getting the new technology agent controller working [message #64318 is a reply to message #64103] Wed, 05 April 2006 13:08 Go to previous messageGo to next message
Jeremy McJunkin is currently offline Jeremy McJunkinFriend
Messages: 23
Registered: July 2009
Junior Member
The version I downloaded was 4.1.0.1, this was from the downloads page in
the new technology agent controller section.
Re: Getting the new technology agent controller working [message #64764 is a reply to message #64318] Thu, 06 April 2006 14:49 Go to previous messageGo to next message
Randy D. Smith is currently offline Randy D. SmithFriend
Messages: 394
Registered: July 2009
Senior Member
Jeremy McJunkin wrote:
> The version I downloaded was 4.1.0.1, this was from the downloads page
> in the new technology agent controller section.
>

I've asked the rest of our team to look at this... I'm a little confused
about what I'm seeing here.

You did edit the <Install-Dir>/agents/*/agent.xml files, right? They
have Windows-isms in them by default that have to be edited to get it
working.

Can you elaborate on what you're doing by way of the "test suite" you
refer to? Again, that sounds a lot like using the Eclipse workbench's
TPTP Profiling and Logging view... and in the "new technology AC" of
4.1.0.1, there's not a lot to connect to at that point in time. Yes,
you're right, at least SampleClient *should* work!

Meanwhile, I'll download and try following the instructions myself to
see if I've missed something... I haven't used 4.1 in a while since
we've been working on 4.2

What version of the JDK are you using? Whose is it? (IBM, Sun, ?) What
version of Linux are you on??

Thanks,


--
RDS

Randy D. Smith randy (dot) d (dot) smith (at) intel (dot) com
Eclipse TPTP Committer, Platform Proj (data collection/agent controller)
Re: Getting the new technology agent controller working [message #64810 is a reply to message #64764] Thu, 06 April 2006 15:38 Go to previous messageGo to next message
Jeremy McJunkin is currently offline Jeremy McJunkinFriend
Messages: 23
Registered: July 2009
Junior Member
Randy D. Smith wrote:

> Jeremy McJunkin wrote:
>> The version I downloaded was 4.1.0.1, this was from the downloads page
>> in the new technology agent controller section.
>>

> I've asked the rest of our team to look at this... I'm a little confused
> about what I'm seeing here.

> You did edit the <Install-Dir>/agents/*/agent.xml files, right? They
> have Windows-isms in them by default that have to be edited to get it
> working.

> Can you elaborate on what you're doing by way of the "test suite" you
> refer to? Again, that sounds a lot like using the Eclipse workbench's
> TPTP Profiling and Logging view... and in the "new technology AC" of
> 4.1.0.1, there's not a lot to connect to at that point in time. Yes,
> you're right, at least SampleClient *should* work!

> Meanwhile, I'll download and try following the instructions myself to
> see if I've missed something... I haven't used 4.1 in a while since
> we've been working on 4.2

> What version of the JDK are you using? Whose is it? (IBM, Sun, ?) What
> version of Linux are you on??
h
> Thanks,

Well, SampleClient just started to work after I restarted my machine, I
noticed in the log file that it could not access the shared memory but I
am not sure if this was from the previous running of SampleClient or from
tptp in eclipse. I have not had a chance to test tptp in eclipse yet
becuase I just used the callipso update site and now the test perspective
no longer exists, so I am using the tptp update site hoping that will fix
it. By the way, I was using ibm's 1.5 jdk for eclipse, but
tptpAgentController was using ibm's 1.42 jdk. Could this be a problem?
Also, I am running on an internal linux offering based on rhel 4
Re: Getting the new technology agent controller working [message #65455 is a reply to message #64810] Mon, 10 April 2006 22:41 Go to previous messageGo to next message
Randy D. Smith is currently offline Randy D. SmithFriend
Messages: 394
Registered: July 2009
Senior Member
Jeremy McJunkin wrote:
> Well, SampleClient just started to work after I restarted my machine, I
> noticed in the log file that it could not access the shared memory but I
> am not sure if this was from the previous running of SampleClient or
> from tptp in eclipse.

Almost certainly the previous run of SampleClient... we had a problem
where TimeCollector (SampleClient's agent) was sticking around holding
onto shared memory... I think the fix to that is coming in the 4.2i2
build that's about to be done. Moral of the story... if you run into
similar problems in the future, look at your ps results to see if the
tptpProcessController or any other agent (e.g., TimeCollector) is
hanging around once the tptpAgentCtlr goes away... if so, it needs to be
killed. Like I said, fixed in 4.2i2.

> I have not had a chance to test tptp in eclipse
> yet becuase I just used the callipso update site and now the test
> perspective no longer exists, so I am using the tptp update site hoping
> that will fix it. By the way, I was using ibm's 1.5 jdk for eclipse,
> but tptpAgentController was using ibm's 1.42 jdk. Could this be a
> problem? Also, I am running on an internal linux offering based on rhel 4

I've used 1.5 and 1.4.2, but I'm not sure I've mixed and matched them as
you have. I'm really not sure whether that can cause problems. Frankly,
I'm as concerned about the RHEL 4 as I am about the JVMs... I'm not sure
if anyone here is testing on RHEL 4 yet... I'll check around.

But your references to TPTP in Eclipse and the new tech AC together
concern me a bit, particularly as you refer to 4.1.0.1. Let me repeat
something I said on another thread, edited somewhat:

"Bottom line, the new tech AC was meant for "new agent and *client*
work" in TPTP 4.1 ... it was never intended (then) to be a replacement
for the RAC (original AC) in an environment with an *unchanged* Eclipse
workbench. The Eclipse workbench really doesn't "know about" the AC in
that release. .... We intentionally used a different port as we talked
a different protocol. So for 4.1.0.1, if you want to use Eclipse
workbench functionality, you'll need to talk to the RAC (or IAC), not
the new tech AC.

That all being said, let me mention that *the* emphasis for the new tech
AC for 4.2 is precisely what you're doing, which is provide this new
tech agent controller listening on the same port (10002) for the same
protocol, that is, we're providing backward compatibility (BC) to the
RAC via the AC... I call it AC/BC... but some here say that's "too cute".

.... but you'll have to track the 4.2 development at least through the
pending release of the 4.2i2 stable build RSN (real soon now) if you
want to work with the new tech AC in such an environment."


--
RDS

Randy D. Smith randy (dot) d (dot) smith (at) intel (dot) com
Eclipse TPTP Committer, Platform Proj (data collection/agent controller)
Re: Getting the new technology agent controller working [message #66035 is a reply to message #65455] Tue, 11 April 2006 21:54 Go to previous message
Randy D. Smith is currently offline Randy D. SmithFriend
Messages: 394
Registered: July 2009
Senior Member
Randy D. Smith wrote:
> Jeremy McJunkin wrote:
>> I have not had a chance to test tptp in eclipse yet becuase I just
>> used the callipso update site and now the test perspective no longer
>> exists, so I am using the tptp update site hoping that will fix it.
>> By the way, I was using ibm's 1.5 jdk for eclipse, but
>> tptpAgentController was using ibm's 1.42 jdk. Could this be a
>> problem? Also, I am running on an internal linux offering based on
>> rhel 4

As a result of helping Lisa in a separate thread, she directed me to
some earlier release notes that had an interesting item I thought I'd
mention here, as they might become relevant later on; be ye forewarned:

"Symptom 3: Profiling data is not collected and the process console is
unavailable

A launched process from the Profiling Perspective appears in the
Profiling Monitor but no profiling data is collected. The process
console standard in, standard out, and standard error are also
unavailable. These problems can be due to any of the following causes:

....
Cause 4: The JRE used to build a test case needs to be the JRE used to
start Eclipse
Edit the Eclipse workbench preference:

1. Click Window > Preference...
2. Select Java > Installed JREs
3. Select the JRE used to start Eclipse. If this JRE is not in the
list, create it."

I'd never noticed that one before! Interesting!!

Not sure if it will continue to be relevant or not... this was from the
latest release notes (for 4.1), but it's worth noting that there is an
explicit situation where mixing and matching JREs can be dangerous.

--
RDS

Randy D. Smith randy (dot) d (dot) smith (at) intel (dot) com
Eclipse TPTP Committer, Platform Proj (data collection/agent controller)
Previous Topic:[AGR] Inconclusive results when playing back hierarchic test suites
Next Topic:In AGR While Creating Datapool, "Link to Datapool" is not visible
Goto Forum:
  


Current Time: Fri Apr 19 15:03:05 GMT 2024

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

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

Back to the top