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.
NetBeans becomes unresponsive right after a Git operation is performed on the local repository that holds the files that are part of the NetBeans project. Attached is the snapshot taken from the NetBeans profiler. The profiled time windows shows that: 1. NetBeans is idle simply displaying the text editor. IDE is very responsive and CPU usage is low. 2. After executing a Git operation, in this case 'git pull', IDE becomes unresponsive and CPU usage is extremely high. This period lasts for several seconds. 3. NetBeans recovers responsiveness and gets back to the state in 1. This issue affects considerably to the usability of the IDE. The issue occurs for any type of language as long as the sources are part of a Git repository.
Created attachment 162651 [details] .npss file attached from NetBeans .npss file
Thanks for self-sampler snapshot. The snapshot shows that the problem seems to be caused by excessive GC. Please try to reproduce it once more and attach new self-sampler snapshot and messages.log file from the same IDE run. Thanks.
Created attachment 162970 [details] Another snapshot of the same issue
Created attachment 162971 [details] messages.log associated to the run of the second selfSampler snapshot
Hi Tomas, Thank you for your answer. I just added the two attachments you requested. This issue seems to happen only when I use Git. I have not seen it with any other usage.
messages.log shows that there is OutOfMemoryException. Did you reported this exception via exception reporter? You should see it after NetBeans restart.
it looks like one of yours OOME is reported as issue #268697.
(In reply to Tomas Hurka from comment #7) > it looks like one of yours OOME is reported as issue #268697. Correct issue number is #270220.
Unfortunately issue #270220 does not have heap dump attached. To diagnose it, we need a heap dump from java.lang.OutOfMemoryError. Please upload zipped heap dump (/Users/asanchez/Library/Application Support/NetBeans/8.2/var/log/heapdump.hprof.old) here: <http://deadlock.netbeans.org/job/upload/build>. Thanks.
Another OOME report - issue #270221, has the heap dump. So it can be used to analyse OOME.
Based on the heap dump from issue #270221, I was able to find out what is going on. The problem is in your git repository. It contains very long (several megabytes) tag messages. There is also several hundreds of tags. All this can occupy a few gigabytes of memory.
Hi Tomas, After looking into my repository it appears that there are actually tons of tag messages, some of them very long. We are working with a repository that has more than 20 years of history :) The question now is, why does it affect NetBeans so much? Other IDEs seem not to have a problem with this. Also, how can we fix it? is there any setting or workaround to fix this problem? Honestly it's a very annoying problem and makes the IDE almost unusable when working with Git. (In reply to Tomas Hurka from comment #11) > Based on the heap dump from issue #270221, I was able to find out what is > going on. The problem is in your git repository. It contains very long > (several megabytes) tag messages. There is also several hundreds of tags. > All this can occupy a few gigabytes of memory.