on WindXP, profiler hangs at "Connecting to JVMTI agent" [message #140892] |
Tue, 03 March 2009 14:33  |
Eclipse User |
|
|
|
I'm having an problem where the profiler hangs when starting an app at the
"Connecting to JVMTI" agent step.
This is *not* the same as a problem reported in Nov 2008:
http://dev.eclipse.org/newslists/news.eclipse.tptp/msg06835. html
https://bugs.eclipse.org/bugs/show_bug.cgi?id=240677
which manifested itself in the same way. That was caused by the
agentcontroller being compiled with an old version of libstdc++, which is
missing on the target system. That was Ubuntu, this is WinXP.
The interesting thing is the class I want to profile is in an app which
links in more than 50 jar files. If I pull this class out into a new
project with *no* additional jar files required, the profiler starts up
fine.
It appears to be some sort of a race condition or a timeout perhaps caused
by the high overhead of loading/processing all the jar files when my
target class has all those jar files in its classpath.
Running eclipse -debug, I see that the socket it's (apparently) trying to
communicate with is closed. Stack trace below. Could it be that it takes
so long to load/process all those jars that the connection times out?
Thanks,
Jon
Starting application: 735
Application Started: 13203
java.net.SocketException: Socket is closed
at java.net.Socket.getOutputStream(Socket.java:799)
at
org.eclipse.tptp.platform.execution.client.core.internal.Con nectionIm
pl.sendMessage(ConnectionImpl.java:517)
at
org.eclipse.tptp.platform.execution.client.core.internal.Age ntControl
ler.sendCommand(AgentController.java:1203)
at
org.eclipse.tptp.platform.execution.client.agent.internal.Ag entImpl.s
endCommand(AgentImpl.java:353)
at
org.eclipse.tptp.platform.jvmti.client.internal.launcher.TID elegateHe
lper.sendOptions(TIDelegateHelper.java:1083)
at
org.eclipse.tptp.platform.jvmti.client.internal.launcher.TID elegateHe
lper.attachToAgent(TIDelegateHelper.java:751)
at
org.eclipse.tptp.platform.jvmti.client.internal.launcher.TID elegateHe
lper.attachToAgent(TIDelegateHelper.java:675)
at
org.eclipse.tptp.platform.jvmti.client.internal.launcher.TID elegateHe
lper.access$7(TIDelegateHelper.java:673)
at
org.eclipse.tptp.platform.jvmti.client.internal.launcher.TID elegateHe
lper$2.processLaunched(TIDelegateHelper.java:514)
at
org.eclipse.tptp.platform.execution.client.core.internal.Pro cessImpl.
launchAC(ProcessImpl.java:701)
at
org.eclipse.tptp.platform.execution.client.core.internal.Pro cessImpl.
launch(ProcessImpl.java:130)
at
org.eclipse.tptp.platform.jvmti.client.internal.launcher.TID elegateHe
lper.launchProcess(TIDelegateHelper.java:549)
at
org.eclipse.tptp.platform.jvmti.client.internal.launcher.TID elegateHe
lper.launch(TIDelegateHelper.java:347)
at
org.eclipse.tptp.platform.jvmti.client.internal.launcher.TIJ avaLaunch
erDelegate.launch(TIJavaLauncherDelegate.java:37)
at
org.eclipse.tptp.trace.ui.internal.launcher.core.LauncherUti lity.dele
gateInit(LauncherUtility.java:1164)
at
org.eclipse.tptp.trace.ui.provisional.launcher.PrimaryLaunch Delegate.
run(PrimaryLaunchDelegate.java:195)
at java.lang.Thread.run(Thread.java:595)
java.net.SocketException: Socket is closed
at java.net.Socket.getOutputStream(Socket.java:799)
at
org.eclipse.tptp.platform.execution.client.core.internal.Con nectionIm
pl.sendMessage(ConnectionImpl.java:517)
at
org.eclipse.tptp.platform.execution.client.core.internal.Age ntControl
ler.sendCommand(AgentController.java:1203)
at
org.eclipse.tptp.platform.execution.client.agent.internal.Ag entImpl.s
endCommand(AgentImpl.java:353)
at
org.eclipse.tptp.platform.jvmti.client.internal.launcher.TID elegateHe
lper$PeriodicPoll.run(TIDelegateHelper.java:1782)
java.net.SocketException: Socket is closed
at java.net.Socket.getOutputStream(Socket.java:799)
at
org.eclipse.tptp.platform.execution.client.core.internal.Con nectionIm
pl.sendMessage(ConnectionImpl.java:517)
at
org.eclipse.tptp.platform.execution.client.core.internal.Age ntControl
ler.sendCommand(AgentController.java:1203)
at
org.eclipse.tptp.platform.execution.client.agent.internal.Ag entImpl.s
endCommand(AgentImpl.java:353)
at
org.eclipse.tptp.platform.jvmti.client.internal.launcher.TID elegateHe
lper.configureDataProcessor(TIDelegateHelper.java:841)
at
org.eclipse.tptp.platform.jvmti.client.internal.launcher.TID elegateHe
lper.attachToAgent(TIDelegateHelper.java:760)
at
org.eclipse.tptp.platform.jvmti.client.internal.launcher.TID elegateHe
lper.attachToAgent(TIDelegateHelper.java:675)
at
org.eclipse.tptp.platform.jvmti.client.internal.launcher.TID elegateHe
lper.access$7(TIDelegateHelper.java:673)
at
org.eclipse.tptp.platform.jvmti.client.internal.launcher.TID elegateHe
lper$2.processLaunched(TIDelegateHelper.java:514)
at
org.eclipse.tptp.platform.execution.client.core.internal.Pro cessImpl.
launchAC(ProcessImpl.java:701)
at
org.eclipse.tptp.platform.execution.client.core.internal.Pro cessImpl.
launch(ProcessImpl.java:130)
at
org.eclipse.tptp.platform.jvmti.client.internal.launcher.TID elegateHe
lper.launchProcess(TIDelegateHelper.java:549)
at
org.eclipse.tptp.platform.jvmti.client.internal.launcher.TID elegateHe
lper.launch(TIDelegateHelper.java:347)
at
org.eclipse.tptp.platform.jvmti.client.internal.launcher.TIJ avaLaunch
erDelegate.launch(TIJavaLauncherDelegate.java:37)
at
org.eclipse.tptp.trace.ui.internal.launcher.core.LauncherUti lity.dele
gateInit(LauncherUtility.java:1164)
at
org.eclipse.tptp.trace.ui.provisional.launcher.PrimaryLaunch Delegate.
run(PrimaryLaunchDelegate.java:195)
at java.lang.Thread.run(Thread.java:595)
java.net.SocketException: Socket is closed
at java.net.Socket.getOutputStream(Socket.java:799)
at
org.eclipse.tptp.platform.execution.client.core.internal.Con nectionIm
pl.sendMessage(ConnectionImpl.java:517)
at
org.eclipse.tptp.platform.execution.client.core.internal.Age ntControl
ler.sendCommand(AgentController.java:1203)
at
org.eclipse.tptp.platform.execution.client.agent.internal.Ag entImpl.s
endCommand(AgentImpl.java:353)
at
org.eclipse.tptp.platform.jvmti.client.internal.launcher.TID elegateHe
lper$PeriodicPoll.run(TIDelegateHelper.java:1782)
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05672 seconds