How to get a Thread Dump:

More precisely, assuming you are on Windows:

- Open a command window (cmd.exe) and start NetBeans IDE from the
command window. Wait for the freeze to happen.
- Press Ctrl-Break in the console window.
- There will now be a thread dump in the console window. Copy all of
that text into a text file.
- Post here.



On Mon, Mar 25, 2019 at 7:16 PM Lars Bruun-Hansen
<[email protected]> wrote:
>
> Re proxy: NB is unfortunately not as good with proxies as your browser is, so 
> the fact that you can see it working in Firefox, IE, Chrome or whatever 
> doesn't prove anything.
>
> In any case, in general for a deadlocked Java application - and NB is indeed 
> just a Java application - you'll need to produce what is known as a Thread 
> Dump. With Java this can be a little tricky to produce because the Java eco 
> system will offer you multiple ways of producing a Thread Dump but if your 
> application, in this case NB, is truly in a deadlock then only one of these 
> methods will actually work. The method which will work is known as the 
> Ctrl+Break Method.(forget about jstack, VisualVM or all the other methods). 
> You can read more about the method here:  
> https://docs.oracle.com/javase/8/docs/technotes/guides/troubleshoot/tooldescr019.html
>   (hasn't changed with later versions of Java, I think)
>
> To summarize: Start NB from the command prompt instead of from a menu. When 
> the deadlock occurs then use the Ctrl+Break method and then you have a thread 
> dump file. Post the file here. Tada!  With this information it is normally 
> possible to pinpoint exactly what the problem is.
>
> /Lars
>
>
> On Mon, Mar 25, 2019 at 2:25 PM Thomson, Duncan <[email protected]> wrote:
>>
>> If you install NB on a different machine do you get the same problem?   If 
>> so, then you have successfully duplicated the issue and you can post details 
>> on your environment and exactly how you did the install so that someone can 
>> try to debug.  It’s quite possible it’s a bug, but the first step to getting 
>> it fixed is to find a way to reproduce it.
>>
>> That’s just my opinion as a user.
>>
>>
>> Sent with BlackBerry Work
>> (www.blackberry.com)
>>
>> From: Greenberg, Gary <[email protected]>
>> Date: Sunday, Mar 24, 2019, 6:27 PM
>> Cc: [email protected] <[email protected]>
>> Subject: [EXT] RE: NB10 freezes while downloading javadoc
>>
>> I don’t think it is a proxy issue.
>>
>> I can easily access Javadoc from the browser without any security issues.
>>
>> Besides, it is occurring when I refer to my own code. It doesn’t have to go 
>> outside for that.
>>
>> BTW, frequency of these freezes increasing exponentially.
>>
>> A week ago it occurred once. Yesterday – twice, This morning – every 30-40 
>> min. Now it occurs every 5 minutes, which makes any coding impossible.
>>
>>
>>
>> Gary Greenberg
>>
>> Staff Software Engineer
>>
>> Data Product Development, BI-A
>>
>> E: [email protected]
>>
>> M: 650-269-7902
>>
>>
>>
>>
>>
>> From: Leo Donahue <[email protected]>
>> Sent: Sunday, March 24, 2019 6:15 PM
>> To: Greenberg, Gary <[email protected]>
>> Cc: [email protected]
>> Subject: Re: NB10 freezes while downloading javadoc
>>
>>
>>
>>
>>
>> On Sun, Mar 24, 2019, 19:49 Greenberg, Gary <[email protected]> wrote:
>>
>> It happens very often (8 times for me today), but not always and not at the 
>> same place.
>> It is impossible to provide step-by-step instructions. You just need to edit 
>> Java code and wait it to occur.
>>
>> Usually it happened when you hit a dot after class variable and trying to 
>> select a method from the prompt list.
>>
>> Is it possible your internet proxy restricts access or some other internal 
>> security scanning process?
>>
>>
>>
>> Gary Greenberg
>>
>> Staff Software Engineer
>>
>> Data Product Development, BI-A
>>
>> E: [email protected]
>>
>> M: 650-269-7902
>>
>>
>>
>>
>>
>> From: Geertjan Wielenga <[email protected]>
>> Sent: Sunday, March 24, 2019 4:22 PM
>> To: Greenberg, Gary <[email protected]>
>> Subject: Re: NB10 freezes while downloading javadoc
>>
>>
>>
>> You're going to need to write to the whole mailing list and you're going to 
>> need to provide step by step instructions for reproducing the problem.
>>
>>
>>
>> Gj
>>
>>
>>
>> On Sun, Mar 24, 2019 at 11:58 PM Greenberg, Gary <[email protected]> wrote:
>>
>> I did file the issue (2304) and attached thread dump I produced with
>>
>> jcmd 16140 Thread.print
>>
>>
>>
>> I used to do it with kill -3 on the Mac, but it does not work on the Windows 
>> box.
>>
>> Dump does look small to me and it did not terminate the process.
>> Hopefully, you can derive something from it.
>>
>>
>>
>> Gary Greenberg
>>
>> Staff Software Engineer
>>
>> Data Product Development, BI-A
>>
>> E: [email protected]
>>
>> M: 650-269-7902
>>
>>
>>
>>
>>
>> From: Greenberg, Gary <[email protected]>
>> Sent: Sunday, March 24, 2019 3:24 PM
>> Cc: [email protected]
>> Subject: RE: NB10 freezes while downloading javadoc
>>
>>
>>
>> I did describe when it is happening. It does not happened every time, 
>> though, and I do not know when it will happen and what is causing it.
>>
>> Would you remind me what to do, to get a thread dump when it happen next 
>> time? I will attach it to the ticket.
>>
>>
>>
>> Gary Greenberg
>>
>> Staff Software Engineer
>>
>> Data Product Development, BI-A
>>
>> E: [email protected]
>>
>> M: 650-269-7902
>>
>>
>>
>>
>>
>> From: Geertjan Wielenga <[email protected]>
>> Sent: Sunday, March 24, 2019 3:16 PM
>> To: Greenberg, Gary <[email protected]>
>> Cc: [email protected]
>> Subject: Re: NB10 freezes while downloading javadoc
>>
>>
>>
>> If you can provide exact and precise steps for someone to reproduce from 
>> scratch, someone can look into it, otherwise not.
>>
>>
>>
>> Gj
>>
>>
>>
>> On Sun, Mar 24, 2019 at 10:23 PM Greenberg, Gary <[email protected]> wrote:
>>
>> That freeze happened to me for the fifth time today. It annoys to no end.
>>
>> Especially, that I am on the tight schedule for my project and pushing 
>> deadline.
>>
>> I am filing a bug.
>>
>>
>>
>> Gary Greenberg
>>
>> Staff Software Engineer
>>
>> Data Product Development, BI-A
>>
>> E: [email protected]
>>
>> M: 650-269-7902
>>
>>
>>
>>
>>
>> From: Greenberg, Gary <[email protected]>
>> Sent: Sunday, March 24, 2019 12:21 PM
>> To: [email protected]
>> Subject: NB10 freezes while downloading javadoc
>>
>>
>>
>> After I selected addAll from the prompt, Netbeans generated this function 
>> call in the code and freezes.
>>
>> “Downloading HTTP Javadoc” message is on the bottom bar.
>>
>> It happened couple more times before and I could only kill IDE through the 
>> task manager.
>>
>> Nothing is in the log file, though.
>>
>> Does anyone facing the same problem? How do you deal with that? Can I avoid 
>> it by changing some settings?

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to