Skip to main content



      Home
Home » Newcomers » Newcomers » Java Proflier for Eclipse 3.2?
Java Proflier for Eclipse 3.2? [message #164540] Tue, 08 August 2006 10:34 Go to next message
Eclipse UserFriend
Originally posted by: ns_dkerber.ns_WarrenRogersAssociates.com

Is there a profiler plugin that work with Eclipse 3.2? I found an
eclipse profiler on sourcforge, but it's from 2004 so I doubt it will
work with 3.2.

I'm looking to do performance optimization, so I need to see what lines
of code use most of my cpu time, rather than needing memory profiling.

--
Remove the ns_ from if replying by e-mail (but keep posts in the
newsgroups if possible).
Re: Java Proflier for Eclipse 3.2? [message #164563 is a reply to message #164540] Tue, 08 August 2006 11:33 Go to previous messageGo to next message
Eclipse UserFriend
David Kerber wrote:
> Is there a profiler plugin that work with Eclipse 3.2? I found an
> eclipse profiler on sourcforge, but it's from 2004 so I doubt it will
> work with 3.2.
>
> I'm looking to do performance optimization, so I need to see what lines
> of code use most of my cpu time, rather than needing memory profiling.
>

The TPTP project ( http://www.eclipse.org/tptp/ ) has a profiler. TPTP
is part of Callisto, so you could use the update manager to download it
from the Callisto Discovery Site (Help -> Software Updates -> Find and
Install... -> Seach for new features).

Erkki
Re: Java Proflier for Eclipse 3.2? [message #164570 is a reply to message #164540] Tue, 08 August 2006 11:34 Go to previous messageGo to next message
Eclipse UserFriend
David Kerber wrote:
> Is there a profiler plugin that work with Eclipse 3.2? I found an
> eclipse profiler on sourcforge, but it's from 2004 so I doubt it will
> work with 3.2.
>
> I'm looking to do performance optimization, so I need to see what lines
> of code use most of my cpu time, rather than needing memory profiling.
>

Since you have 3.2, use the Callisto Discovery Site in Help => Software
Updates => Find and Install... => Search for new features to install and
then select TPTP, Select Required to get its prerequisites, and then
you'll have TPTP's profiling capabilities available to you via the
Profiling and Logging perspective.

When you Profile... you want select the Monitor tab on the launch
window, turn off the default Basic Memory Analysis, and select Execution
Time Analysis instead. You might also want to Edit Options and Show
execution flow graphical details.

--
RDS

Randy D. Smith randy (dot) d (dot) smith (at) intel (dot) com
Eclipse TPTP Committer, Platform Proj (data collection/agent controller)
Re: Java Proflier for Eclipse 3.2? [message #164578 is a reply to message #164570] Tue, 08 August 2006 11:36 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ns_dkerber.ns_WarrenRogersAssociates.com

Thanks, both of you!


In article <ebaau7$6c7$1@utils.eclipse.org>, randy.d.smith@intel.com
says...

....

> Since you have 3.2, use the Callisto Discovery Site in Help => Software
> Updates => Find and Install... => Search for new features to install and
> then select TPTP, Select Required to get its prerequisites, and then
> you'll have TPTP's profiling capabilities available to you via the
> Profiling and Logging perspective.
>
> When you Profile... you want select the Monitor tab on the launch
> window, turn off the default Basic Memory Analysis, and select Execution
> Time Analysis instead. You might also want to Edit Options and Show
> execution flow graphical details.


--
Remove the ns_ from if replying by e-mail (but keep posts in the
newsgroups if possible).
Re: Java Proflier for Eclipse 3.2? [message #164625 is a reply to message #164570] Tue, 08 August 2006 13:58 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ns_dkerber.ns_WarrenRogersAssociates.com

In article <ebaau7$6c7$1@utils.eclipse.org>, randy.d.smith@intel.com
says...
> David Kerber wrote:
> > Is there a profiler plugin that work with Eclipse 3.2? I found an
> > eclipse profiler on sourcforge, but it's from 2004 so I doubt it will
> > work with 3.2.
> >
> > I'm looking to do performance optimization, so I need to see what lines
> > of code use most of my cpu time, rather than needing memory profiling.
> >
>
> Since you have 3.2, use the Callisto Discovery Site in Help => Software
> Updates => Find and Install... => Search for new features to install and
> then select TPTP, Select Required to get its prerequisites, and then
> you'll have TPTP's profiling capabilities available to you via the
> Profiling and Logging perspective.
>
> When you Profile... you want select the Monitor tab on the launch
> window, turn off the default Basic Memory Analysis, and select Execution
> Time Analysis instead. You might also want to Edit Options and Show
> execution flow graphical details.

I'm having trouble getting this to start. The code I want to profile is
a servlet, set up to run under tomcat 5.5. It runs fine in debug mode,
so I know I have the server set up correctly. But how do I start
profiling (click-by-click, if possible!)? Do I select profile as from
the server, or from the app?

When I right-click on the project root and select "Profile as" |
"Profile on server", I get an error: "Error occurred during
initialization of VM. Could not find agent library on the library path
or in the local directory: piAgent"

When I select "Profile as" | Profile, it brings me to the profile
configuration screen. I'm not sure what to select there, but I've tried
"tomcat server", "java app" (but there's no sub main for it to run).

I can't figure out where to go from there.

Thanks for any suggestions.
--
Remove the ns_ from if replying by e-mail (but keep posts in the
newsgroups if possible).
Re: Java Proflier for Eclipse 3.2? [message #164634 is a reply to message #164625] Tue, 08 August 2006 14:14 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ns_dkerber.ns_WarrenRogersAssociates.com

Followup: I found piAgent.dll, in:

C:\Program Files\eclipse32\eclipse\plugins
\org.eclipse.hyades.execution.win32.x86_4.2.0.v200606131519

Why wouldn't it be found when it's needed? Is maybe the path too long?



In article <MPG.1f429ac025cc942d989697@news.eclipse.org>,
ns_dkerber@ns_WarrenRogersAssociates.com says...
> In article <ebaau7$6c7$1@utils.eclipse.org>, randy.d.smith@intel.com
> says...
> > David Kerber wrote:
> > > Is there a profiler plugin that work with Eclipse 3.2? I found an
> > > eclipse profiler on sourcforge, but it's from 2004 so I doubt it will
> > > work with 3.2.
> > >
> > > I'm looking to do performance optimization, so I need to see what lines
> > > of code use most of my cpu time, rather than needing memory profiling.
> > >
> >
> > Since you have 3.2, use the Callisto Discovery Site in Help => Software
> > Updates => Find and Install... => Search for new features to install and
> > then select TPTP, Select Required to get its prerequisites, and then
> > you'll have TPTP's profiling capabilities available to you via the
> > Profiling and Logging perspective.
> >
> > When you Profile... you want select the Monitor tab on the launch
> > window, turn off the default Basic Memory Analysis, and select Execution
> > Time Analysis instead. You might also want to Edit Options and Show
> > execution flow graphical details.
>
> I'm having trouble getting this to start. The code I want to profile is
> a servlet, set up to run under tomcat 5.5. It runs fine in debug mode,
> so I know I have the server set up correctly. But how do I start
> profiling (click-by-click, if possible!)? Do I select profile as from
> the server, or from the app?
>
> When I right-click on the project root and select "Profile as" |
> "Profile on server", I get an error: "Error occurred during
> initialization of VM. Could not find agent library on the library path
> or in the local directory: piAgent"
>
> When I select "Profile as" | Profile, it brings me to the profile
> configuration screen. I'm not sure what to select there, but I've tried
> "tomcat server", "java app" (but there's no sub main for it to run).
>
> I can't figure out where to go from there.
>
> Thanks for any suggestions.
>

--
Remove the ns_ from if replying by e-mail (but keep posts in the
newsgroups if possible).
Re: Java Proflier for Eclipse 3.2? [message #164729 is a reply to message #164634] Wed, 09 August 2006 03:39 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: surya_is_the_man.yahoo.com

David Kerber wrote:

> Followup: I found piAgent.dll, in:

> C:Program Fileseclipse32eclipseplugins
> org.eclipse.hyades.execution.win32.x86_4.2.0.v200606131519

> Why wouldn't it be found when it's needed? Is maybe the path too long?



> In article <MPG.1f429ac025cc942d989697@news.eclipse.org>,
> ns_dkerber@ns_WarrenRogersAssociates.com says...
>> In article <ebaau7$6c7$1@utils.eclipse.org>, randy.d.smith@intel.com
>> says...
>> > David Kerber wrote:
>> > > Is there a profiler plugin that work with Eclipse 3.2? I found an
>> > > eclipse profiler on sourcforge, but it's from 2004 so I doubt it will
>> > > work with 3.2.
>> > >
>> > > I'm looking to do performance optimization, so I need to see what lines
>> > > of code use most of my cpu time, rather than needing memory profiling.
>> > >
>> >
>> > Since you have 3.2, use the Callisto Discovery Site in Help => Software
>> > Updates => Find and Install... => Search for new features to install and
>> > then select TPTP, Select Required to get its prerequisites, and then
>> > you'll have TPTP's profiling capabilities available to you via the
>> > Profiling and Logging perspective.
>> >
>> > When you Profile... you want select the Monitor tab on the launch
>> > window, turn off the default Basic Memory Analysis, and select Execution
>> > Time Analysis instead. You might also want to Edit Options and Show
>> > execution flow graphical details.
>>
>> I'm having trouble getting this to start. The code I want to profile is
>> a servlet, set up to run under tomcat 5.5. It runs fine in debug mode,
>> so I know I have the server set up correctly. But how do I start
>> profiling (click-by-click, if possible!)? Do I select profile as from
>> the server, or from the app?
>>
>> When I right-click on the project root and select "Profile as" |
>> "Profile on server", I get an error: "Error occurred during
>> initialization of VM. Could not find agent library on the library path
>> or in the local directory: piAgent"
>>
>> When I select "Profile as" | Profile, it brings me to the profile
>> configuration screen. I'm not sure what to select there, but I've tried
>> "tomcat server", "java app" (but there's no sub main for it to run).
>>
>> I can't figure out where to go from there.
>>
>> Thanks for any suggestions.
>>

Could it be the space in Program Files? I made sure this time when I made
my custom XP Pro disk to make sure that directory had no space in its name.
Re: Java Proflier for Eclipse 3.2? [message #164767 is a reply to message #164729] Wed, 09 August 2006 08:15 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ns_dkerber.ns_WarrenRogersAssociates.com

In article <223200c87eaeea795a22f8375deadf58$1@www.eclipse.org>,
surya_is_the_man@yahoo.com says...
> David Kerber wrote:
>
> > Followup: I found piAgent.dll, in:
>
> > C:Program Fileseclipse32eclipseplugins
> > org.eclipse.hyades.execution.win32.x86_4.2.0.v200606131519
>
> > Why wouldn't it be found when it's needed? Is maybe the path too long?
>

....

>
> Could it be the space in Program Files? I made sure this time when I made
> my custom XP Pro disk to make sure that directory had no space in its name.

No, that wasn't the problem: I tried moving eclipse it to the root of
my c: drive, and it still wouldn't find it. The only thing I could do
to get it going was to copy all the .dll's from that directory to the
Eclipse base directory.

Anybody have a suggestion as to why it's doing this?

--
Remove the ns_ from if replying by e-mail (but keep posts in the
newsgroups if possible).
Re: Java Proflier for Eclipse 3.2? [message #164904 is a reply to message #164767] Wed, 09 August 2006 18:59 Go to previous messageGo to next message
Eclipse UserFriend
David Kerber wrote:
> In article <223200c87eaeea795a22f8375deadf58$1@www.eclipse.org>,
> surya_is_the_man@yahoo.com says...
>
>>David Kerber wrote:
>>
>>
>>>Followup: I found piAgent.dll, in:
>>
>>>C:Program Fileseclipse32eclipseplugins
>>>org.eclipse.hyades.execution.win32.x86_4.2.0.v200606131519
>>
>>>Why wouldn't it be found when it's needed? Is maybe the path too long?
>>
>
> ...
>
>
>>Could it be the space in Program Files? I made sure this time when I made
>>my custom XP Pro disk to make sure that directory had no space in its name.
>
>
> No, that wasn't the problem: I tried moving eclipse it to the root of
> my c: drive, and it still wouldn't find it. The only thing I could do
> to get it going was to copy all the .dll's from that directory to the
> Eclipse base directory.
>
> Anybody have a suggestion as to why it's doing this?
>


I must admit I'm a little confused with where we're at with this... if
what I say below doesn't help, I suggest reposting a succinct summary of
what you're running into on eclipse.tptp and see if anyone else can help
you there.

Suggestion as to why it's doing that? Seems to me it's a PATH problem...
but by default the internal agent controller (IAC) should know where to
find it's dlls in its plugin directories ... though there is a release
note item about this specific problem on *Linux* systems that requires
putting the libpiAgent.so path on the system path. I hadn't run into it
on Windows though.

When you moved it there you said you were able to "get it going" ...
does this mean you *can* profile as you'd like? Or just that you no
longer got that message??

--
RDS

Randy D. Smith randy (dot) d (dot) smith (at) intel (dot) com
Eclipse TPTP Committer, Platform Proj (data collection/agent controller)
Re: Java Proflier for Eclipse 3.2? [message #164956 is a reply to message #164904] Thu, 10 August 2006 08:07 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ns_dkerber.ns_WarrenRogersAssociates.com

In article <ebdpcv$3md$1@utils.eclipse.org>, randy.d.smith@intel.com
says...

....

> > No, that wasn't the problem: I tried moving eclipse it to the root of
> > my c: drive, and it still wouldn't find it. The only thing I could do
> > to get it going was to copy all the .dll's from that directory to the
> > Eclipse base directory.
> >
> > Anybody have a suggestion as to why it's doing this?
> >
>
>
> I must admit I'm a little confused with where we're at with this... if
> what I say below doesn't help, I suggest reposting a succinct summary of
> what you're running into on eclipse.tptp and see if anyone else can help
> you there.
>
> Suggestion as to why it's doing that? Seems to me it's a PATH problem...
> but by default the internal agent controller (IAC) should know where to
> find it's dlls in its plugin directories ... though there is a release
> note item about this specific problem on *Linux* systems that requires
> putting the libpiAgent.so path on the system path. I hadn't run into it
> on Windows though.
>
> When you moved it there you said you were able to "get it going" ...
> does this mean you *can* profile as you'd like? Or just that you no
> longer got that message??

Profiling worked after copying those .dll's to my c:\eclipse32 folder.
Note that I didn't take the default "eclipse" folder name. Could that
have something to do with it? Maybe somebody left a path hard-coded in
that particular piece of code?

--
Remove the ns_ from if replying by e-mail (but keep posts in the
newsgroups if possible).
Re: Java Proflier for Eclipse 3.2? [message #165017 is a reply to message #164956] Thu, 10 August 2006 12:40 Go to previous messageGo to next message
Eclipse UserFriend
David Kerber wrote:
> In article <ebdpcv$3md$1@utils.eclipse.org>, randy.d.smith@intel.com
> says...
>
> ...
>
>
>>>No, that wasn't the problem: I tried moving eclipse it to the root of
>>>my c: drive, and it still wouldn't find it. The only thing I could do
>>>to get it going was to copy all the .dll's from that directory to the
>>>Eclipse base directory.
>>>
>>>Anybody have a suggestion as to why it's doing this?
>>>
>>
>>
>>I must admit I'm a little confused with where we're at with this... if
>>what I say below doesn't help, I suggest reposting a succinct summary of
>>what you're running into on eclipse.tptp and see if anyone else can help
>>you there.
>>
>>Suggestion as to why it's doing that? Seems to me it's a PATH problem...
>>but by default the internal agent controller (IAC) should know where to
>>find it's dlls in its plugin directories ... though there is a release
>>note item about this specific problem on *Linux* systems that requires
>>putting the libpiAgent.so path on the system path. I hadn't run into it
>>on Windows though.
>>
>>When you moved it there you said you were able to "get it going" ...
>>does this mean you *can* profile as you'd like? Or just that you no
>>longer got that message??
>
>
> Profiling worked after copying those .dll's to my c:\eclipse32 folder.
> Note that I didn't take the default "eclipse" folder name. Could that
> have something to do with it? Maybe somebody left a path hard-coded in
> that particular piece of code?
>

Are you saying that you unzipped your installation INTO a directory
called eclipse32? Or are you saying you unzipped, and then moved the
subdirectory "eclipse" to "eclipse32"? If the latter, that is quite
likely the problem.

Nobody cares where the eclipse subdirectory is put, but you're right
that there is built-in the understanding that "eclipse" is the top-level
directory of the actual installation... just as it is assumed that
"plugins" and "features" remain the names they're given. I'd be
surprised if this was the only place that the assumption is made that
"eclipse" remain unchanged.

But you're free to file a bugzilla on the profiling tool asking them to
not hardwire that particular part of the tree's name... not sure how it
would be dealt with!

--
RDS

Randy D. Smith randy (dot) d (dot) smith (at) intel (dot) com
Eclipse TPTP Committer, Platform Proj (data collection/agent controller)
Re: Java Proflier for Eclipse 3.2? [message #165081 is a reply to message #165017] Thu, 10 August 2006 16:30 Go to previous message
Eclipse UserFriend
Originally posted by: ns_dkerber.ns_WarrenRogersAssociates.com

In article <ebfnho$gbf$1@utils.eclipse.org>, randy.d.smith@intel.com
says...

....

> Are you saying that you unzipped your installation INTO a directory
> called eclipse32? Or are you saying you unzipped, and then moved the
> subdirectory "eclipse" to "eclipse32"? If the latter, that is quite
> likely the problem.

Yes, it was the latter, so I'll try changing it back. I kind of assumed
(yeah, I know what that does!!) that the top-level folder name wouldn't
matter. Profiling seems to be the only part that doesn't like it; the
WTP handled it with no trouble.

>
> Nobody cares where the eclipse subdirectory is put, but you're right
> that there is built-in the understanding that "eclipse" is the top-level
> directory of the actual installation... just as it is assumed that
> "plugins" and "features" remain the names they're given. I'd be
> surprised if this was the only place that the assumption is made that
> "eclipse" remain unchanged.
>
> But you're free to file a bugzilla on the profiling tool asking them to
> not hardwire that particular part of the tree's name... not sure how it
> would be dealt with!

--
Remove the ns_ from if replying by e-mail (but keep posts in the
newsgroups if possible).
Previous Topic:Can't Open Browser Window
Next Topic:where is my internal webbrowser?
Goto Forum:
  


Current Time: Wed Jul 23 12:31:21 EDT 2025

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

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

Back to the top