This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
I wanted to profile main project - a netbeans module. After starting the action the output window displays build failed: Profiler Agent: Initializing... Profiler Agent: Options: >/space/ide/netbeans/profiler3/lib,5140,10< Profiler Agent: Initialized succesfully Profiler Agent: Waiting for connection on port 5140, timeout 10 seconds (Protocol version: 8) Profiler Agent Error: Timed out trying to establish connection with client /space/mercurial/trunk/main/nbbuild/templates/projectized.xml:273: The following error occurred while executing this line: /space/mercurial/trunk/main/nbbuild/build.xml:1285: The following error occurred while executing this line: /space/mercurial/trunk/main/nbbuild/build.xml:1307: exec returned: 255 BUILD FAILED (total time: 13 seconds) but there is still window with progressbar and label Connectin to the target VM.... This window doesn't disappear. After increasing agent connect timeout through profiler.agent.connect.timeout property, I was able to use the profiler. But this is not user friendly. I'm attaching thread dumps. These thread dumps were created during waiting on the connection.
Created attachment 65944 [details] Thread dumps
Startup is delayed by computing Marker Methods, that's why the agent timeouts waiting for the tool. The workaround is to increase the timeout value by providing an extra argument to netbeans launcher: -J-Dprofiler.agent.connect.timeout=60 Should be fixed for 6.5.
fixed changeset: 96128:6e4d1e44f9bb user: Jaroslav Bachorik <yardus@netbeans.org> date: Mon Aug 18 16:48:09 2008 +0200 summary: #142059 - Profiler times out while starting profiling an NB module
Integrated into 'main-golden', available in build *200808191401* on http://bits.netbeans.org/dev/nightly/ Changeset: http://hg.netbeans.org/main/rev/6e4d1e44f9bb User: Jaroslav Bachorik <yardus@netbeans.org> Log: #142059 - Profiler times out while starting profiling an NB module
*** Issue 144739 has been marked as a duplicate of this issue. ***
This does not seems to be fixed. See issue #144739
It works now. Sorry for false alarm.
*** Issue 129943 has been marked as a duplicate of this issue. ***
verified in Build 200812170242