Error to start my first profiling project at a Linux box [message #134521] |
Wed, 20 August 2008 19:10  |
Eclipse User |
|
|
|
Hello,
This is my first try of Eclipse TPTP. I followed the instruction from
http://www.eclipse.org/tptp/home/downloads/4.5.0/documents/q uicktour/quick_tour.html.
The only thing I changed from the tutorial is to use Tomcat 6.0 instead of
5.5. The error I got when I click Profile As -> Profile On Server,
[Error: EC module (JPIAgent) loading failed]
Error occurred during initialization of VM
agent library failed to init: JPIBootLoader
I am using Eclipse 3.4, Eclipse TPTP 4.5.0, Tomcat 6, JRE 1.5.0_15. My box
is Ubuntu 8.04, Kernel Linux 2.6.24-16-generic.
I also tried some suggestions from the thread,
( http://dev.eclipse.org/newslists/news.eclipse.tptp/msg04010. html), adding
" -agentlib:JPIBootLoader=JPIAgent:server=enabled;HeapProf:all ocsites=true "
to the Tomcat VM arguments. But it doesn't help. Then I tried to use the
Monitor of "Java profiling -pre JRE 1.5". The error I got was:
Error occurred during initialization of VM
Could not find agent library on the library path or in the local
directory: piAgent
I am wondering how to start the profiling from the Eclipse workbench. And
because I am running on the Linux box, what the environment I need to set?
Thank you.
|
|
|
|
Re: Error to start my first profiling project at a Linux box [message #134621 is a reply to message #134538] |
Thu, 21 August 2008 06:49  |
Eclipse User |
|
|
|
Jan wrote:
> I just tried setting the environment according to:
> http://www.eclipse.org/newsportal/article.php?id=6549&gr oup=eclipse.tptp#6549.
> My Linux box is 64 bit, however, 64 bit Eclipse is crashing like every 5
> minutes. So I downloaded 32 bit Eclipse and run it using 32 bit JVM.
> Under such case, I don't know which library to set,
> ac.linux_em64t_4.4.1.XXX or ac.linux_ia32_4.4.4.XXX?
>
> Thank you very much.
>
When using a 32-bit JVM, you need to use the 32-bit Agent Controller and
Profiler libraries. The profiler libraries are loaded into the JVM
process space, and it is not possible to mix-and-match 32 bit and 64 bit
libraries in the same process.
HTH,
Asaf
--
Asaf Yaffe
Eclipse TPTP Committer, JVMTI Profiler
|
|
|
Powered by
FUDForum. Page generated in 0.05058 seconds