[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools.hyades] Re: Getting Started with Hyades in Eclipse 3.0 running a webapp on Tomcat.

Faizan a écrit :
> Sebastien Mathy wrote:
> 
> 
>>Faizan a écrit :
>>
>>>I have exact same situation and kind of stuck. I could not find any
>>>documentation that actually help to run memory profiler for java web
>>>application running under tomcat (or any webserver). It mentioned in the
>>>help doc that this tool can be used to profile java web applications but
>>>did not explain how.
>>>
> 
> 
>>You should start tomcat with this parameter :
>>-XrunpiAgent:server=enabled (put it in the JAVA_OPTS var)
>>You can after profile your webapp as an external java process
>>Regards.
> 
> 
> I still have problem. Here what I have done.
> 
> I am running tomcat on Win XP (local work station) and webapp that I want
> to profile
> First Scenario:
> 1- I added following in the catalina.bat file
>   JAVA_OPTS=-XrunpiAgent:server=enabled
> org.apache.catalina.startup.Bootstrap
> 2- I started tomcat externally using the startup.bat
> 3- In eclipse when I try to attach the Java process (following docs
> "Attaching to remote Java Process") I do not get any agent under the Agent
> Tab. I have RASERVER running also. So I can not go any further.
> 
I use this scenario. Check the raserver log and tomcat log files to
detect a problem. Have you set the correct system variable (i.e
LD_LIBRARY_PATH=$RASERVER_HOME/lib PATH=$RASERVER_HOME/bin)?
Regards.