Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Test and Performance Tools Platform (TPTP) » Can't get profiling to work
Can't get profiling to work [message #127703] Tue, 01 April 2008 12:19 Go to next message
Eclipse User
Originally posted by: lwrage.sei.cmu.edu

I tried to use tptp for memory profiling of my eclipse plugins, but so
far I couldn't get eclipse to connect to the agent controller. I get the
infamous "Agent controller unavailable under port 10002" with the
external agent controller and "Agent controller unavailable under port
10002" with the internal one. I have the following questions:

Does TPTP work with Sun Java 1.6, or do I have to go back to Java 1.5? I
found some comments that 1.6 didn't work a year ago, but should it work
with the current TPTP version from the europa update site?

Can I use TPTP to profile an Eclipse Application started from within
eclipse? All the examples seem to be about plain Java applications, but
the profie dialog offers "Eclipse Application" as well. Do I have to
provide any JVM arguments?

My environment:
Win XP SP2, Sun Java 1.6.0_05, brand new installation of Eclipse 3.3.2,
TPTP from the europa update site, downloaded on 3/31/08.

Thanks,
Lutz
Re: Can't get profiling to work [message #127960 is a reply to message #127703] Fri, 04 April 2008 18:36 Go to previous messageGo to next message
Dan Hoyt is currently offline Dan Hoyt
Messages: 13
Registered: July 2009
Junior Member
I don't think it's a JDK version issue.

I have a box on which just a week ago, I rebuilt the OS (XP Pro),
reinstalled Eclipse 3.3.1.1 and TPTP 4.1 from the Update Site (and today,
uninstalled TPTP and reinstalled from US). I get the same error with both
JDK5 and JDK6, specifically:

org.eclipse.core.runtime.CoreException
Agent Controller is unavailable under port 10002. Make sure that the
service is started and the port number is correct under preferences.

org.eclipse.tptp.platform.execution.exceptions.AgentControll erUnavailableException:
Error: Unable to connect to the Agent Controller.Connection refused:
connect
at
org.eclipse.tptp.platform.execution.client.core.internal.Nod eImpl.connect(NodeImpl.java:128)
at
org.eclipse.tptp.platform.execution.util.internal.AgentContr ollerFactory$EstablishConnection.run(AgentControllerFactory. java:126)
at java.lang.Thread.run(Thread.java:595)
Re: Can't get profiling to work [message #127983 is a reply to message #127960] Fri, 04 April 2008 22:00 Go to previous messageGo to next message
Dan Hoyt is currently offline Dan Hoyt
Messages: 13
Registered: July 2009
Junior Member
Okay, I just finished a brand new install on another WinXP machine of both
Europa 3.3.1.1 and Europa 3.3.2 and installed TPTP from the Europa
Discovery Update Site, and ... both of them fail just like the others.
That makes four installations (five, if you include my coworker), and
three versions of XP (Home, Pro and x64 Pro), none of which have working
profiling.

What's wrong here? What am I missing to make the IAC work? Isn't it
supposed to be pre-configured to work out of the box with the 4.4 release?

Or is this exercise just a waste of my time? I've been reluctant to spend
$500 on Instantiations CodePro Profiler, but if I spend $500 in labor
trying to make TPTP work, what's the difference?

Does ANYBODY have a working installation of TPTP's Internal Agent
Controller? If so, specifically what versions of Eclipse and TPTP are you
using and what did you have to do to configure it properly?
Re: Can't get profiling to work [message #128006 is a reply to message #127983] Fri, 04 April 2008 22:46 Go to previous messageGo to next message
Dennis Forcier is currently offline Dennis Forcier
Messages: 17
Registered: July 2009
Junior Member
I'd like to know how this thing ever got released. It's not like this
showstopper of a bug is hard to reproduce...

I'm going to try the stand-alone Agent Controller.

While I don't have quite $500 in time into this yet, I was a fan of
Instantiation's stuff when I used it several years ago, and it's starting
to look like a reasonable alternative now.
Re: Can't get profiling to work [message #128071 is a reply to message #128006] Mon, 07 April 2008 11:59 Go to previous messageGo to next message
Holger Machens is currently offline Holger Machens
Messages: 57
Registered: July 2009
Member
Dennis Forcier schrieb:
> I'd like to know how this thing ever got released. It's not like this
> showstopper of a bug is hard to reproduce...
> I'm going to try the stand-alone Agent Controller.
> While I don't have quite $500 in time into this yet, I was a fan of
> Instantiation's stuff when I used it several years ago, and it's
> starting to look like a reasonable alternative now.
>

Hi,

have you tried running it with administrator privileges?
That works for me.

Greetings
Holger
Re: Can't get profiling to work [message #128081 is a reply to message #128071] Mon, 07 April 2008 14:48 Go to previous messageGo to next message
Dan Hoyt is currently offline Dan Hoyt
Messages: 13
Registered: July 2009
Junior Member
I've run across the administrator suggestion before. Because of the
cross-platform nature of Eclipse and the way *nix security works, I've
always assumed this is OS-level administrator access we're talking about.
Or is there some other kind of administrator access in Eclipse I don't
know about?

If OS-level, I'm on Win XP Pro, and my account is an administrator (as I
suspect 99% of Windows users outside government are).
Re: Can't get profiling to work [message #128109 is a reply to message #127983] Mon, 07 April 2008 22:00 Go to previous messageGo to next message
Dan Hoyt is currently offline Dan Hoyt
Messages: 13
Registered: July 2009
Junior Member
I finally got this working -- slowly.

While running through the install instructions for Instantiations CodePro,
I learned something new (to me) about Eclipse: extension locations.

Just out of curiosity, I uninstalled the two TPTP features (Profiling and
Platform) I had installed using the update site, downloaded the all-in-one
TPTP 4.4.1 .ZIP, installed it into a separate directory and registered it
as an extension location in Eclipse.

The first time I clicked on the "Test Connection" button in my Profiling
launch configuration, it came back with a JVMTI error, but the second
click connected properly, and I was able to launch with profiling.

Unfortunately, it's also running v-e-r-y s-l-o-w-l-y (as in 25 *minutes*
to fully launch a workbench product that normally takes less than 25
seconds), running well past my physical RAM (and thus into WinXP's
pagefile) and pegging my CPU at 100% for the entire time.

(FWIW, CodePro exhibits pretty much the same behavior, so I'm not
convinced it's TPTP that's the problem.)

I don't see how the extension location could have fixed it, so I'm
assuming it's the fact that I included the other three features (Testing,
Monitoring and BIRT Connection), but who knows? It's (kind of) working.
Re: Can't get profiling to work [message #128134 is a reply to message #128109] Tue, 08 April 2008 08:51 Go to previous messageGo to next message
Asaf Yaffe is currently offline Asaf Yaffe
Messages: 333
Registered: July 2009
Senior Member
Dan,

Glad to see you are making progress here :)

>
> Unfortunately, it's also running v-e-r-y s-l-o-w-l-y (as in 25
> *minutes* to fully launch a workbench product that normally takes less
> than 25 seconds), running well past my physical RAM (and thus into
> WinXP's pagefile) and pegging my CPU at 100% for the entire time.
>

Profiling performance can be improved dramatically by defining a good
filter. In your case, I assume you only need to profile a set of plugins
and can probably exclude most of the Eclipse workbench code from profiling.

Please refer to the online documentation for more information on
defining filters in the "Profiling Launch Configuration" dialog. Make
sure to INCLUDE your plugins and EXCLUDE everything else you don't need.

HTH,
Asaf

--
Asaf Yaffe
Eclipse TPTP Committer, JVMTI Profiler
Re: Can't get profiling to work [message #128240 is a reply to message #128109] Wed, 09 April 2008 07:20 Go to previous message
Eclipse User
Originally posted by: mauro.molinari.cardinis.com

Dan Hoyt ha scritto:
> Unfortunately, it's also running v-e-r-y s-l-o-w-l-y (as in 25
> *minutes* to fully launch a workbench product that normally takes less
> than 25 seconds), running well past my physical RAM (and thus into
> WinXP's pagefile) and pegging my CPU at 100% for the entire time.

Unfortunately, TPTP performance is very poor... I learnt on my own. Try
so search Bugzilla for open bugs about TPTP and "performance" in the
subject. Here are a couple of examples:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=93452
https://bugs.eclipse.org/bugs/show_bug.cgi?id=177207

NetBeans is many steps ahaead in profiling compared to Eclipse,
unfortunately :-(

Cheers,
Mauro.
Previous Topic:"IAC was not found"
Next Topic:Error Reporting
Goto Forum:
  


Current Time: Wed Oct 01 14:31:05 GMT 2014

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

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