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.

Bug 142059 - Profiler times out when starting profiling an NB module
Summary: Profiler times out when starting profiling an NB module
Status: VERIFIED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: J Bachorik
URL:
Keywords:
: 129943 144739 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-07-29 13:21 UTC by Petr Pisl
Modified: 2009-01-13 11:57 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Thread dumps (23.04 KB, text/plain)
2008-07-29 13:23 UTC, Petr Pisl
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Pisl 2008-07-29 13:21:42 UTC
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.
Comment 1 Petr Pisl 2008-07-29 13:23:42 UTC
Created attachment 65944 [details]
Thread dumps
Comment 2 Jiri Sedlacek 2008-07-30 09:57:06 UTC
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.
Comment 3 J Bachorik 2008-08-18 16:00:45 UTC
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

Comment 4 Quality Engineering 2008-08-19 17:11:34 UTC
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
Comment 5 Tomas Hurka 2008-08-21 17:40:15 UTC
*** Issue 144739 has been marked as a duplicate of this issue. ***
Comment 6 Tomas Hurka 2008-08-21 17:41:20 UTC
This does not seems to be fixed. See issue #144739
Comment 7 Jaroslav Tulach 2008-08-22 16:22:26 UTC
It works now. Sorry for false alarm.
Comment 8 J Bachorik 2008-08-28 10:39:21 UTC
*** Issue 129943 has been marked as a duplicate of this issue. ***
Comment 9 mariadavydova 2009-01-13 11:57:47 UTC
verified in Build 200812170242