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 255440 - Profiler calibration output is not read
Summary: Profiler calibration output is not read
Status: VERIFIED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Engine (show other bugs)
Version: 8.1
Hardware: PC Windows 8.1
: P2 normal (vote)
Assignee: Tomas Hurka
URL:
Keywords: VISUALVM
Depends on:
Blocks:
 
Reported: 2015-09-21 07:06 UTC by Jiri Skrivanek
Modified: 2016-06-28 13:01 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Skrivanek 2015-09-21 07:06:53 UTC
It is not possible to calibrate JDK 9. To reproduce:

- create new java project
- go to Options -> Java -> Profiler
- click Manage
- select JDK 9
- click Calibrate but it fails with the following message

*** Profiler message (Mon Sep 21 09:01:11 CEST 2015): Starting target application...
D:\jdk1.9.0\bin\java.exe -agentpath:D:/Development/builds/NB9/netbeans/profiler/lib/deployed/jdk16/windows-amd64/profilerinterface.dll -Xbootclasspath/a:D:\Development\builds\NB9\netbeans\profiler\lib\jfluid-server.jar;D:\Development\builds\NB9\netbeans\profiler\lib\jfluid-server-15.jar org.netbeans.lib.profiler.server.ProfilerServer D:/Development/builds/NB9/netbeans/profiler/lib/deployed/jdk16/windows-amd64 5141 10 ____Profiler+Calibration+Run____
WARNING [org.netbeans.modules.profiler.NetBeansProfiler]: IDEAppStatusHandler - errorAndWaitForConfirm: Data transfer error during instrumentation calibration
*** Profiler warning (Mon Sep 21 09:02:20 CEST 2015): target app terminated:Target JVM inactive
WARNING [org.netbeans.modules.profiler.NetBeansProfiler]: IDEAppStatusHandler - errorAndWaitForConfirm: null


Product Version: NetBeans Dev JDK9 branch (Build 20150918-951c25ccfea0)
Java: 1.9.0-ea; Java HotSpot(TM) 64-Bit Server VM 1.9.0-ea-jigsaw-nightly-h3391-20150915-b81
Runtime: Java(TM) SE Runtime Environment 1.9.0-ea-jigsaw-nightly-h3391-20150915-b81
System: Windows 8.1 version 6.3 running on amd64; Cp1250; en_US (nb)
Comment 1 Tomas Hurka 2015-09-21 08:34:14 UTC
It works fine on Mac OS X.
Comment 2 Tomas Hurka 2015-09-22 11:48:23 UTC
This looks like Windows only issue.
Can you please try to run NetBeans with
-J-Dorg.netbeans.profiler.separateConsole=true
and re-run the calibration?
Comment 3 Jiri Skrivanek 2015-09-22 11:52:46 UTC
With that option calibration works.
Comment 4 Tomas Hurka 2015-09-23 08:10:24 UTC
This is not jigsaw specific. The problem is caused excessive stdout/stderr output from JVM running calibration. This output is not read by NetBeans. Once the internal buffers are full, calibration is stuck waiting for stdout/stderr to be read.
Comment 5 Tomas Hurka 2015-09-23 08:15:26 UTC
Fixed in profiler-main

changeset:   291835:756fe011f1e2
user:        Tomas Hurka <thurka@netbeans.org>
date:        Wed Sep 23 10:13:19 2015 +0200
summary:     bugfix #255440, read stdout and stderr of executed external process
Comment 6 Quality Engineering 2015-09-26 12:58:23 UTC
Integrated into 'main-silver', will be available in build *201509261150* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/756fe011f1e2
User: Tomas Hurka <thurka@netbeans.org>
Log: bugfix #255440, read stdout and stderr of executed external process