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 210474 - VisualVM threads not shown
Summary: VisualVM threads not shown
Status: RESOLVED INVALID
Alias: None
Product: profiler
Classification: Unclassified
Component: Engine (show other bugs)
Version: 7.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Tomas Hurka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-31 10:23 UTC by rgs
Modified: 2012-04-02 10:03 UTC (History)
0 users

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 rgs 2012-03-31 10:23:06 UTC
Product Version = NetBeans IDE 7.1 (Build 201112071828)
Operating System = Windows 7 version 6.1 running on amd64
Java; VM; Vendor = 1.7.0_02
Runtime = Java HotSpot(TM) 64-Bit Server VM 22.0-b10

I hava a java application that uses threads and i would like to monitor it with visualvm. I could connect it to visualvm and i see every tab correctly but not the threads tab.

On it, i can't see any threads working but i can see the number of them running.

I have also the JConsole plugin "Top threads" and there i also cannot see any thread.

The Java version is 1.7.2  and the application uses daemon threads.

I've debugged the app and when it starts everything goes fine and i can see thread timetable. When the first thread starts the timetable hangs and i can't see anything else.

This is the code to create and start the threads

for (i = 0; i < 10; i++)
        {
            attenderThreads.add(new Attender(i));
        }
       
        for (i = 0; i < attenderThreads.size(); i++)
        {
            ((Attender) attenderThreads.elementAt(i)).start();
        }

And this is the class Attender than extends Thread

    public Attender(int _ithread)
    {
        setDaemon(true);

        ithread = _ithread;
        threadSuspended = true;

        locked = false;

        super.setName ("Attender "+ _ithread);
    }

Finally, the application works fine but i need to see the threads because sometimes the app hangs and i don't know where it's happening.

The app is Java Console and i can make a Thread dump and i see all the threads.
Comment 1 Tomas Hurka 2012-04-02 09:15:06 UTC
I am confused. Are you using VisualVM or NetBeans to monitor your application?
Comment 2 rgs 2012-04-02 09:33:54 UTC
I use visualvm but i put the bug here because i saw that it's on Netbeans platform. Is there any option to monitor it onn Netbeans?
Comment 3 Tomas Hurka 2012-04-02 10:03:30 UTC
Please file a bug against VisualVM at <http://visualvm.java.net/> with a steps how to reproduce it. Thanks.