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 104193 - Profiler Agent doesn't warn user about version mismatch
Summary: Profiler Agent doesn't warn user about version mismatch
Status: NEW
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Tomas Hurka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-17 16:21 UTC by Alexander Kouznetsov
Modified: 2011-11-02 20:22 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Sample application (2.36 KB, application/octet-stream)
2007-05-17 16:23 UTC, Alexander Kouznetsov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Kouznetsov 2007-05-17 16:21:29 UTC
Profiler 070515
NetBeans IDE Dev (Build 070516)
1.6.0; Java HotSpot(TM) Client VM 1.6.0-b105
Windows XP version 5.1 running on x86
ru_RU (nb); Cp1251

Steps to reproduce:
- Download attached application JAR
- Use Attach Wizard to specify direct attach command line arguments for "JDK
5.0_04 and newer"
- Create Custom Analyze Performance task with "Exclude time spend in sleep() and
wait() methods" option disabled
- Direct Attach to the application running on JDK 6.0
- RESULT: No warning is given to user about version mismatch. Obtained results
do include the time spend in sleep() and wait() methods

If you specify the command line arguments for JDK 6.0, the results would include
sleep() and wait() methods time.

This issue is based on the following user feedback (as well as issue 104171):

>So, I configured everything as was suggested by the Wizard, and then
>started profiling my app running on Java 6 with settings for Java 5.

>Well, in this mode, the Profiler was ignoring sleep() and wait()
>times, even though I explicitly specified not to.

>...

>It turned out that for Java 6 one does need to specify a profiler agent
>for Java 6, and "Java 5 and newer" doesn't mean Java 6.

>Would it be possible to give user a warning if he uses profile agent
>for the wrong java version? Or any other hint? Also, "Java 5.0 and
>newer" is very confusing in the profiler wizard.

>Silence against versions mismatch and incorrect results is not the
>best way. It's good that I managed to find the misconfiguration, but
>if not, I would just trust the Profiler less.
Comment 1 Alexander Kouznetsov 2007-05-17 16:23:27 UTC
Created attachment 42508 [details]
Sample application
Comment 2 Tomas Hurka 2007-11-07 10:35:36 UTC
Changing target milestone to dev, since NetBeans 6.0 is in high resistance mode.
Comment 3 Tomas Hurka 2009-04-08 12:56:44 UTC
Milestone cleanup: future->next