[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools.hyades] Re: Profiling on Linux + Windows

Hi,

it seems to be the same problem of my post: 'launch remote application' of 10/11/2004.

no answers yet ...
This newsgroup does'nt seems to be active :-((

bye,

Luca


Alexis O'Connor wrote:
Basically, I was wondering if anyone has successfully executed an application to be profiled on Linux and attached to this remotely from an Eclipse workbench running on Windows?

I am using v3.1.0 of the Hyades plugins and raserver throughout. On the Linux box is a version of Debian with GNOME 1.4 so I can not run Eclipse locally on that. I am just working with the CarModel class from the Hyades profiling example. To see if my raserver is OK, it appears that I can run CarModel in standalone mode, as follows:

$java -XrunpiAgent:server=standalone,file=my_trace.xml CarModel

Running it and then quitting (with no filters!) produces my_trace.xml a large well-formed XML document as expected. The corresponding entry from ($RASERVER_HOME/config/servicelog.log) is the following:

<SERVER_MSG time="2004:10:14:9:9:26" severity="INFORMATION" text="Service starting"/>
<SERVER_MSG time="2004:10:14:9:9:26" severity="INFORMATION" text="Successfully loaded plugin: org.eclipse.hyades.datacollection"/>
<SERVER_MSG time="2004:10:14:9:9:26" severity="INFORMATION" text="Successfully loaded plugin: org.eclipse.hyades.logging.parsers"/>
<SERVER_MSG time="2004:10:14:9:9:26" severity="INFORMATION" text="Successfully loaded plugin: org.eclipse.hyades.test"/>
<SERVER_MSG time="2004:10:14:9:9:26" severity="INFORMATION" text="Successfully loaded plugin: org.eclipse.hyades.perfmon.linux"/>
<SERVER_MSG time="2004:10:14:9:9:26" severity="INFORMATION" text="Active configuration set to: default"/>
<SERVER_MSG time="2004:10:14:9:9:26" severity="INFORMATION" text="Loaded configuration: default"/>
<SERVER_MSG time="2004:10:14:9:9:26" severity="INFORMATION" text="Service started successfully"/>


Next attempting to run it so as to attach to it from the Eclipse workbench running on Windows. The application is started as follows:

$java -XrunpiAgent:server=enabled CarModel

From the Eclipse workbench, I go to the profiling dialogue. I can add the remote Linux host and testing the connection is successful. The corresponding agent appears, which I add and then start profiling. I can start / attach to the agent. However generating data in the application and then attempting to bring up views such as package statistics fails with messages along the lines of 'No data available' (I am using the filters as per the profiling example which I have got to work without problem when ran entirely locally on Windows). The corresponding log entries in $RASERVER_HOME/config/servicelog.log are as follows:

<SERVER_MSG time="2004:10:14:9:34:21" severity="INFORMATION" text="Incoming connection request on socket 40 from 0x4644381"/>
<SERVER_MSG time="2004:10:14:9:34:21" severity="INFORMATION" text="Connection accepted on socket 40"/>
<SERVER_MSG time="2004:10:14:9:35:5" severity="INFORMATION" text="Incoming connection request from agent Java Profiling Agent in process 4424 with uuid UUID-1097742905-557519-690416105-2076034827"/>
<SERVER_MSG time="2004:10:14:9:35:5" severity="INFORMATION" text="Registering process 4424"/>
<SERVER_MSG time="2004:10:14:9:35:5" severity="WARNING" text="Registered Agent UUID-1097742905-557519-690416105-2076034827."/>
<SERVER_MSG time="2004:10:14:9:35:6" severity="INFORMATION" text="Deregistering agent UUID-1097742905-557519-690416105-2076034827. "/>
<SERVER_MSG time="2004:10:14:9:35:8" severity="INFORMATION" text="Process 4424 does not exist so scrub it"/>
<SERVER_MSG time="2004:10:14:9:35:8" severity="INFORMATION" text="Process 4424 exited"/>
<SERVER_MSG time="2004:10:14:9:35:36" severity="INFORMATION" text="Incoming connection request from agent Java Profiling Agent in process 4435 with uuid UUID-1097742936-681065-501796943-668578348"/>
<SERVER_MSG time="2004:10:14:9:35:36" severity="INFORMATION" text="Registering process 4435"/>
<SERVER_MSG time="2004:10:14:9:35:36" severity="WARNING" text="Registered Agent UUID-1097742936-681065-501796943-668578348."/>
<SERVER_MSG time="2004:10:14:9:36:12" severity="INFORMATION" text="Preparing Agent active"/>
<SERVER_MSG time="2004:10:14:9:36:20" severity="WARNING" text="Requesting shared memory 31457280 bytes, allocating 31457280 bytes, system max 33554432 bytes"/>
<SERVER_MSG time="2004:10:14:9:36:20" severity="INFORMATION" text="Created data channel with name rabuffer0 and CB addr 0x41423154 buffer addr 0x41433a6c size in=31457280 size out=16777216"/>
<SERVER_MSG time="2004:10:14:9:39:29" severity="SEVERE" text="Connecting to the client data channel socket on port 3081 failed with error major=53 minor=110"/>
<SERVER_MSG time="2004:10:14:9:39:29" severity="INFORMATION" text="Process 4435 does not exist so scrub it"/>
<SERVER_MSG time="2004:10:14:9:39:29" severity="INFORMATION" text="Process 4435 exited"/>


Clearly, it would be handy to know what error major=53, minor=110 was. Anybody have any ideas?

Alexis