[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [hyades-dev] Problems with remote launch
|
>there is a configuration of the rac server log to see what REALLY
happens?? (it is aleady setted with loggingDetail="HIGH"
You can see more in the RAC log by changing *two* items in
serviceconfig.xml:
loggingDetail="HIGH" and also
loggingLevel="DEBUG"
I can't guarantee this will show you anything USEFUL in this case, but it
will show you MORE.
-- Allan Pratt, apratt@xxxxxxxxxx
Rational software division of IBM
"Curtis D'Entremont" <curtispd@xxxxxxxxxx>
Sent by: hyades-dev-admin@xxxxxxxxxxx
10/22/2004 11:09 AM
Please respond to
hyades-dev
To
hyades-dev@xxxxxxxxxxx
cc
Subject
Re: [hyades-dev] Problems with remote launch
Hi Luca,
Sorry to hear things aren't working out well. Let's try and tackle the
issues one by one..
>In external java application panel if I select the class name with the
browse button (works only if the test is on localhost) then the class name
instead to be org.test.Test.class is >filled with Test !
>Not only this but automagically.. the classpath is filled with
/profile/classes/org/test/
This one is a known problem - see
https://bugs.eclipse.org/bugs/show_bug.cgi?id=70352. This was missed in
the earlier releases of Hyades because most of the developers were using
default package samples to test. It works fine in this case but it gets it
wrong when you're specifying your own package. I've increased the priority
so that it gets quicker attention.
>I correct classname with org.test.Test and classpath with
/profile/classes/ then I start the test and it works but only for memory
profiling no coverage or method timing (and I >have they selected).
I've never experienced this one. Could you give me a bit more details
(please email me directly instead of posting to the newsgroup)? Are you
using the default profiling sets or creating your own and selecting the
method coverage and execution time analysis profiling types? Can you see
the profiling types under the agents in the profiling monitor? One common
error is not setting the filters correctly - click on Edit to edit the
profiling set, then click Next to see the filters. By default, org* is
filtered out.
>I'm corious to know HOW it has worked on my linux box launching java.exe
-XrunpiAgent:server=controlled org.test.Test
>maybe with wine? :-||
As I understand it, it's actually not trying to use java.exe, but is
showing the application id specified in the RAC configuration. I guess you
could say this is a problem in the logging output (it is saying that it's
launching java.exe, which is not actually true). Perhaps the RAC folks can
comment on this.
>now I copy the whole /profile directory on my hpux box under /testing
>I duplicate the Remote Profile configuration and substitute
/profile/classes/ with /testing/profile/classes/ in classpath, and check
the my remote host.
>Not works, and again follows the log of rac server
Do you get any error messages in the UI, or output to the console or .log
file in eclipse? If so, this would help us determine what is going wrong
here.
>on windows is the same but in this case I get in the console:
>java.lang.NoClassDefFoundError: org/test/Test
>Exception in thread "main"
Is the /testing/profile/classes directory at the root of the filesystem or
in your home directory? We need absolute paths here. Also, are the classes
distributed in the correct directories under this folder? One thing you
might try to confirm this is launching it from the command line while
specifying the same classpath. It should be
/testing/profile/classes/org/test/<classes here>. In general, when
experiencing problems when launching in profile mode, there's one thing we
usually try: you can start your application in profile mode manually and
attach the profiler to the VM. This is done by adding the
-XrunpiAgent:server=controlled vm argument when launching in the command
line. The "controlled" argument tells the VM to wait until the profiler
attaches until it starts the application. Then you create a new "Attach -
Java Process" launch configuration and find the agent and process you want
to attach to.
>Note that the log of rac server on nt say that the process is starter in
C:....\Temp.
Yes, it currently uses the default directory that the RAC uses. I agree
that this is something we should support with External Java Application,
so I opened https://bugs.eclipse.org/bugs/show_bug.cgi?id=76842 to track
this.
>I 'm wondering how different are the behavior of rac servers (logs are
different, windows gives console feedback,..)
I'm not sure about the logs, but the console behavior should be the same.
What you see in the console is stdout and stderr - there shouldn't be any
rac output here that I'm aware of.
>I suppose hyades is developed under windows.
Although many developers use windows, Hyades is certainly not meant to be
for windows only.
>there is a configuration of the rac server log to see what REALLY
happens?? (it is aleady setted with loggingDetail="HIGH"
I'm not aware of any other mechanism to increase logging levels - perhaps
the RAC folks can help out here.
Thanks,
Curtis d'Entremont
Problem Determination Tools
IBM Toronto Lab
Phone: (905) 413-5754
E-Mail: curtispd@xxxxxxxxxx
Luca Di Stefano <luca.distefano@xxxxxxxxxxxxxxxxxx>
Sent by: hyades-dev-admin@xxxxxxxxxxx
10/22/2004 09:21 AM
Please respond to
hyades-dev
To
hyades-dev@xxxxxxxxxxx
cc
Subject
[hyades-dev] Problems with remote launch
Hi,
following problem:
package org.test;
public class Test
{
public static void main(String[] args)
{
System.out.println("ok");
}
}
the class is in
/profile/classes/org/test/Test.class
Hyades 3.1.0 latest release.
In external java application panel if I select the class name with the
browse button (works only if the test is on localhost) then the class name
instead to be org.test.Test.class is filled with Test !
Not only this but automagically.. the classpath is filled with
/profile/classes/org/test/
Obvioulsy not works.
I correct classname with org.test.Test and classpath with
/profile/classes/ then I start the test and it works but only for memory
profiling no coverage or method timing (and I have they selected).
the log on rac server say:
<SERVER_MSG time="2004:10:22:11:46:38" severity="INFORMATION"
text="Attempting to launch process : java.exe
-XrunpiAgent:server=controlled org.test.Test"/>
<SERVER_MSG time="2004:10:22:11:46:39" severity="INFORMATION" text="Adding
agent interest: Java Profiling Agent"/>
<SERVER_MSG time="2004:10:22:11:46:41" severity="INFORMATION"
text="Incoming connection request from agent Java Profiling Agent in
process 30020 with uuid UUID-1098438401-52763-1085260847-156462072"/>
<SERVER_MSG time="2004:10:22:11:46:41" severity="WARNING" text="Registered
Agent UUID-1098438401-52763-1085260847-156462072."/>
<SERVER_MSG time="2004:10:22:11:46:41" severity="WARNING" text="Requesting
shared memory 31457280 bytes, allocating 31457280 bytes, system max
33554432 bytes"/>
<SERVER_MSG time="2004:10:22:11:46:42" severity="INFORMATION"
text="Created data channel with name rabuffer6 and CB addr 0x5da05154
buffer addr 0x5da15a6c size in=31457280 size out=16777216"/>
<SERVER_MSG time="2004:10:22:11:46:42" severity="INFORMATION"
text="Connected to client data channel socket on port 34062 with
descriptor 13"/>
<SERVER_MSG time="2004:10:22:11:46:42" severity="INFORMATION"
text="Created flusher thread and about to send message to agent"/>
<SERVER_MSG time="2004:10:22:11:46:42" severity="INFORMATION"
text="Deregistering agent UUID-1098438401-52763-1085260847-156462072. "/>
<SERVER_MSG time="2004:10:22:11:46:42" severity="INFORMATION"
text="Removing agent UUID-1098438401-52763-1085260847-156462072. from
client"/>
<SERVER_MSG time="2004:10:22:11:46:42" severity="INFORMATION"
text="Process 30020 does not exist so scrub it"/>
<SERVER_MSG time="2004:10:22:11:46:42" severity="INFORMATION"
text="Process 30020 exited"/>
I'm corious to know HOW it has worked on my linux box launching java.exe
-XrunpiAgent:server=controlled org.test.Test
maybe with wine? :-||
now I copy the whole /profile directory on my hpux box under /testing
I duplicate the Remote Profile configuration and substitute
/profile/classes/ with /testing/profile/classes/ in classpath, and check
the my remote host.
Not works, and again follows the log of rac server
<SERVER_MSG time="2004:10:22:11:20:9" severity="INFORMATION" text="Adding
agent interest: Java Profiling Agent"/>
<SERVER_MSG time="2004:10:22:11:20:12" severity="INFORMATION"
text="Process 15295 does not exist so scrub it"/>
<SERVER_MSG time="2004:10:22:11:20:12" severity="INFORMATION"
text="Process 15295 exited"/>
<SERVER_MSG time="2004:10:22:11:24:44" severity="INFORMATION"
text="Attempting to launch process : java.exe
-XrunpiAgent:server=controlled org.test.Test"/>
<SERVER_MSG time="2004:10:22:11:24:44" severity="INFORMATION" text="Adding
agent interest: Java Profiling Agent"/>
<SERVER_MSG time="2004:10:22:11:24:48" severity="INFORMATION"
text="Process 15726 does not exist so scrub it"/>
<SERVER_MSG time="2004:10:22:11:24:48" severity="INFORMATION"
text="Process 15726 exited"/>
Again, java.exe -XrunpiAgent:server=controlled org.test.Test but here I
don't have wine installed :-))
on windows is the same but in this case I get in the console:
java.lang.NoClassDefFoundError: org/test/Test
Exception in thread "main"
<SERVER_MSG time="2004:10:22:12:2:40" severity="INFORMATION"
text="Attempting to launch process : java.exe
-XrunpiAgent:server=controlled org.test.Test in location
C:\DOCUME~1\phoenix\LOCALS~1\Temp" file="..\RAServer\launcher.c"
line="315"/>
<SERVER_MSG time="2004:10:22:12:2:40" severity="INFORMATION" text="Process
launched: PID=2848" file="..\RAServer\launcher.c" line="334"/>
<SERVER_MSG time="2004:10:22:12:2:40" severity="INFORMATION" text="Adding
agent interest: Java Profiling Agent" file="..\RAServer\RACommS.c"
line="863"/>
<SERVER_MSG time="2004:10:22:12:2:41" severity="INFORMATION"
text="Incoming connection request from agent Java Profiling Agent in
process 2848 with uuid 4f9d3334-8119-40c4-b109-eee9b927d022"
file="..\RAServer\messagePump.c" line="232"/>
<SERVER_MSG time="2004:10:22:12:2:41" severity="WARNING" text="Registered
Agent 4f9d3334-8119-40c4-b109-eee9b927d022."
file="..\RAServer\messagePump.c" line="280"/>
<SERVER_MSG time="2004:10:22:12:2:41" severity="INFORMATION" text="Created
data channel with name rabuffer9 and CB addr 1B740158 buffer addr 1B782270
size in=67108864 size out=67108864" file="..\RAServer\RACommS.c"
line="1095"/>
<SERVER_MSG time="2004:10:22:12:2:41" severity="INFORMATION"
text="Connected to client data channel socket on port 34085 with
descriptor 1492" file="..\RAServer\RACommS.c" line="1231"/>
<SERVER_MSG time="2004:10:22:12:2:41" severity="INFORMATION" text="Created
flusher thread and about to send message to agent"
file="..\RAServer\RACommS.c" line="1256"/>
<SERVER_MSG time="2004:10:22:12:2:42" severity="INFORMATION"
text="Deregistering agent 4f9d3334-8119-40c4-b109-eee9b927d022. "
file="..\RAServer\util.c" line="153"/>
<SERVER_MSG time="2004:10:22:12:2:42" severity="INFORMATION"
text="Removing agent 4f9d3334-8119-40c4-b109-eee9b927d022. from client"
file="..\RAServer\util.c" line="182"/>
<SERVER_MSG time="2004:10:22:12:2:42" severity="WARNING" text="Application
exited, Closing console" file="..\RAServer\launcher.c" line="790"/>
<SERVER_MSG time="2004:10:22:12:2:42" severity="WARNING" text="Application
exited, Closing console" file="..\RAServer\launcher.c" line="712"/>
<SERVER_MSG time="2004:10:22:12:2:47" severity="INFORMATION" text="Process
2848 does not exist so scrub it" file="..\RAServer\RACommS.c"
line="2176"/>
<SERVER_MSG time="2004:10:22:12:2:47" severity="INFORMATION" text="Process
2848 exited" file="..\RAServer\util.c" line="64"/>
Here I think java.exe can work.
Note that the log of rac server on nt say that the process is starter in
C:....\Temp.
I 'm wondering how different are the behavior of rac servers (logs are
different, windows gives console feedback,..)
I suppose hyades is developed under windows.
Paths of classpath on windows and hpux are doublechecked
there is a configuration of the rac server log to see what REALLY
happens?? (it is aleady setted with loggingDetail="HIGH"
NOTE:
I think that how is now, the hyades newsgroup is not usable if no one
can/try to help users.
Maybe I'm not an advanced user, maybe I'm. Anyway, if you will that other
people uses and appreciate your work, give a chance to do it! Try to help
them. Maybe they find some bugs that you will not able to discovery, or
simple gives you feedbacks on documentation and usability.
Did you make statistics on your newsgroup like how many threads haves a
reply, or in wich time it comes? Or how many threads are closed?
best regards,
Frustrated Luca (going to giving up)
_______________________________________________ hyades-dev mailing list
hyades-dev@xxxxxxxxxxx http://dev.eclipse.org/mailman/listinfo/hyades-dev