Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Test and Performance Tools Platform (TPTP) » I just want TPTP to work once.
I just want TPTP to work once. [message #53532] Fri, 10 February 2006 16:52 Go to next message
Eclipse UserFriend
Originally posted by: myatt.research.ge.com

OK, I'm frustrated beyond all belief. I've gone through every install
guide, help doc, tutorial, and demo/video in the documentation section and
I still can't get TPTP to profile a simple small Java class.

WIn2kSP4
Sun JDK1.4.2
Eclipse 3.1
TPTP 4.1.0

I've got all the latest versions of everything required (EMF, XSD, etc.)

I have a simple java class with a main method that instantiates itself and
then calls another method that performs a few thousand loops with some
other code just to do something and generate objects.

I can run this class as a java app just fine.

However, I go to the Java source file in the Java perspective and
right-click. Select Profile AS > Profile. The config manager comes up. I
create a new 'Java Application' configuration for the class. For the
Profiling tab select the default 'memory analysis' that appeared after
installing TPTP. Then apply changes and click Profile. Eclipse switches to
the Profiling perspective and a new entry appears on the left in the
Profiling Monitor window. On the Console window several output statements
appear so I know the app is running. The profile entry shows
"<monitoring... collecting>Profile" with a sub-entry of Memory Analysis'.
It looks like it works. Eventually the entry changes to "<terminated...
collecting>Profile". During the profile, the status bar shows numbers
incrementing "Processed X bytes, bytes/second, etc."

However, once the profile terminates I double click the 'memory analysis'
sub-entry and the "Memory Statistics" window does open, but with the
message "No data is available to display". According to the demos and
tutorials I followed there should at least be something here. (Note : the
profile is not writing to a log file, so something should be displayed).

Am I doing something wrong?
Re: I just want TPTP to work once. [message #53560 is a reply to message #53532] Fri, 10 February 2006 17:31 Go to previous messageGo to next message
Randy D. Smith is currently offline Randy D. SmithFriend
Messages: 394
Registered: July 2009
Senior Member
The only thing I see potentially wrong is the "I've got all the latest
version of everything required (EMF, XSD, etc.)". I'd feel better if
you'd listed those with the other four and specified versions that match
that required environment (2.1 for EMF/XSD). You're not using 2.2 of
those are you? I'd feel even better yet if the minor numbers matched
those of the Eclipse version (you say 3.1 ... is it 3.1.0, .1, .2??).
Yes, any 3.1 SHOULD work with any 2.1 with our 4.1.0 ... but you can
imagine that not every combination of those has been tested.

I'm not a big profiler... I'm down below that level, and when I pop up,
it's usually with the perfmon stuff. There, believe it or not, I've seen
problems between 1.4.2_07 and 1.4.2_08 of Sun's Java (it was due to XML
parsing stuff). So I'm a little paranoid about getting versioning per
the download pages. (I'm even sitting here staring at the SP4 on your
Win2K and wondering what I'm missing back here in SP2 land! :-) )

Otherwise, I'll have to hope someone more experienced with profiling
comes along and helps you.
--
RDS


Adam Myatt wrote:
> OK, I'm frustrated beyond all belief. I've gone through every install
> guide, help doc, tutorial, and demo/video in the documentation section
> and I still can't get TPTP to profile a simple small Java class.
>
> WIn2kSP4
> Sun JDK1.4.2
> Eclipse 3.1
> TPTP 4.1.0
>
> I've got all the latest versions of everything required (EMF, XSD, etc.)
>
> I have a simple java class with a main method that instantiates itself
> and then calls another method that performs a few thousand loops with
> some other code just to do something and generate objects.
>
> I can run this class as a java app just fine.
>
> However, I go to the Java source file in the Java perspective and
> right-click. Select Profile AS > Profile. The config manager comes up. I
> create a new 'Java Application' configuration for the class. For the
> Profiling tab select the default 'memory analysis' that appeared after
> installing TPTP. Then apply changes and click Profile. Eclipse switches
> to the Profiling perspective and a new entry appears on the left in the
> Profiling Monitor window. On the Console window several output
> statements appear so I know the app is running. The profile entry shows
> "<monitoring... collecting>Profile" with a sub-entry of Memory
> Analysis'. It looks like it works. Eventually the entry changes to
> "<terminated... collecting>Profile". During the profile, the status bar
> shows numbers incrementing "Processed X bytes, bytes/second, etc."
>
> However, once the profile terminates I double click the 'memory
> analysis' sub-entry and the "Memory Statistics" window does open, but
> with the message "No data is available to display". According to the
> demos and tutorials I followed there should at least be something here.
> (Note : the profile is not writing to a log file, so something should be
> displayed).
> Am I doing something wrong?
>
Beware Java 1.4.2.X on WinXP, WIn2k [message #53587 is a reply to message #53560] Fri, 10 February 2006 18:21 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: myatt.research.ge.com

Started with Java1.4.2.08 and upgraded to Java 1.5.0.06 and it suddenly
worked. Not sure what the underlying problem is. Problem is I need to be
able to profile apps using 1.4.2. Oh well, at least I got it working for
now.
Re: I just want TPTP to work once. [message #53614 is a reply to message #53560] Fri, 10 February 2006 18:35 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: myatt.research.ge.com

you might be on to something when you mentioned 'XML parser stuff'. In my
JRE's lib/ext directory I had 3 JARs : xalan.jar, xerces-1.4.3.jar, and
xml-apis.jar. When I removed those and restart Eclipse, the profiler
suddenly worked. I'm not really an XML guru so I'm not sure why that may
be.
Re: I just want TPTP to work once. [message #53641 is a reply to message #53532] Fri, 10 February 2006 20:34 Go to previous message
Marius Slavescu is currently offline Marius SlavescuFriend
Messages: 67
Registered: July 2009
Member
Hi Adam,

First to get data in the Memory Statistic view you need to enable the
"Memory Analysis->Basic Memory Analysis" option in the profiling set
that you use to profile the application.

Was the "events processed" greater than 0 in the status bar?

If it is 0 then you may have chosen the profile to a file option in the
Profiling->Destination tab, disable that option if you want live data or
you can import the file specified there using "Import Profiling file"
wizard.

If it is greater then 0 then I would try to open the Execution
Statistics view and if it doesn't have any data, make sure you select
"No filter" in the Filter pop-up menu (from the view toolbar).

Regards,
Marius

Adam Myatt wrote:
> OK, I'm frustrated beyond all belief. I've gone through every install
> guide, help doc, tutorial, and demo/video in the documentation section
> and I still can't get TPTP to profile a simple small Java class.
>
> WIn2kSP4
> Sun JDK1.4.2
> Eclipse 3.1
> TPTP 4.1.0
>
> I've got all the latest versions of everything required (EMF, XSD, etc.)
>
> I have a simple java class with a main method that instantiates itself
> and then calls another method that performs a few thousand loops with
> some other code just to do something and generate objects.
>
> I can run this class as a java app just fine.
>
> However, I go to the Java source file in the Java perspective and
> right-click. Select Profile AS > Profile. The config manager comes up. I
> create a new 'Java Application' configuration for the class. For the
> Profiling tab select the default 'memory analysis' that appeared after
> installing TPTP. Then apply changes and click Profile. Eclipse switches
> to the Profiling perspective and a new entry appears on the left in the
> Profiling Monitor window. On the Console window several output
> statements appear so I know the app is running. The profile entry shows
> "<monitoring... collecting>Profile" with a sub-entry of Memory
> Analysis'. It looks like it works. Eventually the entry changes to
> "<terminated... collecting>Profile". During the profile, the status bar
> shows numbers incrementing "Processed X bytes, bytes/second, etc."
>
> However, once the profile terminates I double click the 'memory
> analysis' sub-entry and the "Memory Statistics" window does open, but
> with the message "No data is available to display". According to the
> demos and tutorials I followed there should at least be something here.
> (Note : the profile is not writing to a log file, so something should be
> displayed).
> Am I doing something wrong?
>
Previous Topic:NumberFormatException when running some tests with the http recorder
Next Topic:TPTP HTTP Response Rendering..is it possible?
Goto Forum:
  


Current Time: Fri Apr 26 05:47:32 GMT 2024

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

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

Back to the top