[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[News.eclipse.test-and-performance] Re: problems with profiling tools

Hi David,

Looking closely at your serviceconfig.xml, I see a few problems with the way the paths are written. For example, jvm="C:Program FilesJavaj2re1.4.2_06binclientjvm.dll". Note the lack of slashes here. I'm assuming you used the SetConfig.bat setup script to configure the agent controller (as opposed to writing the file yourself).

If my understanding of the data collection side of things is correct (correct me if I'm wrong), running in standalone refers to the JVMPI agent running without the agent controller, so the serviceconfig.xml would not be used in this case. This would probably explain why it works in standalone mode and not with the agent controller.

I've opened a bug on your behalf (https://bugs.eclipse.org/bugs/show_bug.cgi?id=80334); feel free to add yourself to the CC list to get notification of when it's fixed. I marked it as critical - we can't release 3.2 with something like this. Thanks for reporting this. In the meantime, you can try adding the slashes manually and see how it goes.

Thanks,
Curt

David Komanek wrote:


Dear all,

I have problem with eclipse profiling tools on WinXP. I am able to start RAServer, monitor it with perfmonagent and generate trace logs in the command line, like

java -XrunpiAgent:server=standalone -classpath "." cz.komanek.test03.Test

(Test.class is a simple "HelloWorld" app with no special imports)

But for some reason eclipse is not able to communicate with the RAServer at both my workplace and home boxes. The message sounds:

IWAT0113E Error launching application.
Reason: IWAT0113E Configuration error on agent controller. Error exists in agent controller configuration file: serviceconfig.xml
Make sure the agent controller installation is correctly configured.

I followed the guide about RASERVER_PATH etc., tried various Java JDK versions, but with no success. What seems to be the point is that manually launched profiling works fine, so I do not expect the problem is really in serviceconfig.xml

When I try to import the profiling file (from the manual attempt) from the disk, it gets the data without problems.

Am I missing something basic or is there a known bug ?

Eclipse 3.0.1
Hyades - build from last Friday
Windows XP Pro SP2
All tested software resides in C:Program fileselipse
serviceconfig.xml is attached bellow

Please, do you have some advice for me (except the one I should not touch eclipse with my poo rknowledge about it :-)

Sincerely,

David Komanek


<?xml version="1.0" encoding="UTF-8"?>
<AgentControllerConfiguration activeConfiguration="default" filePort="10005" jvm="C:Program FilesJavaj2re1.4.2_06binclientjvm.dll" loggingDetail="LOW" loggingLevel="INFORMATION" port="10002" processPolling="true" securedPort="10003" version="3.1.0">
<AgentControllerEnvironment configuration="default">
<Variable name="JAVA_PATH" position="replace" value="C:Program FilesJavaj2re1.4.2_06binjava.exe"/>
<Variable name="RASERVER_HOME" position="replace" value="C:Program Fileseclipsehyades_rac"/>
<Variable name="PATH" position="prepend" value="%RASERVER_HOME%bin"/>
<Variable name="SYS_TEMP_DIR" position="replace" value="C:DOCUME~1KomanekLOCALS~1Temp"/>
<Variable name="LOCAL_AGENT_TEMP_DIR" position="replace" value="%SYS_TEMP_DIR%"/>
<Variable name="CLASSPATH" position="append" value="%RASERVER_HOME%libcommons-logging.jar"/>
<Variable name="CLASSPATH" position="append" value="%RASERVER_HOME%libhcframe.jar"/>
<Variable name="CLASSPATH" position="append" value="%RASERVER_HOME%libhexcore.jar"/>
<Variable name="CLASSPATH" position="append" value="%RASERVER_HOME%libhexl.jar"/>
<Variable name="CLASSPATH" position="append" value="%RASERVER_HOME%libhexr.jar"/>
<Variable name="CLASSPATH" position="append" value="%RASERVER_HOME%libhl14.jar"/>
<Variable name="CLASSPATH" position="append" value="%RASERVER_HOME%libhlcommons.jar"/>
<Variable name="CLASSPATH" position="append" value="%RASERVER_HOME%libhlcore.jar"/>
<Variable name="CLASSPATH" position="append" value="%RASERVER_HOME%libhlevents.jar"/>
<Variable name="CLASSPATH" position="append" value="%RASERVER_HOME%libhlcbe101.jar"/>
<Variable name="CLASSPATH" position="append" value="%RASERVER_HOME%libecore.jar"/>
<Variable name="CLASSPATH" position="append" value="%RASERVER_HOME%libcommon.jar"/>
</AgentControllerEnvironment>
<Application configuration="default" executable="java.exe" location="%SYS_TEMP_DIR%" path="%JAVA_PATH%"/>
<Hosts configuration="default">
<Allow host="LOCAL"/>
</Hosts>
<Plugin path="%RASERVER_HOME%plugins"/>
</AgentControllerConfiguration>