Please use the Apache issue tracking system for new NetBeans issues ( !!
Bug 226000 - NetBeans extreme slowdown during a day of work
NetBeans extreme slowdown during a day of work
Product: ide
Classification: Unclassified
Component: Performance
PC Windows 7
: P2 (vote)
Assigned To: Tomas Hurka
Depends on:
  Show dependency treegraph
Reported: 2013-02-12 00:13 UTC by ecerichter
Modified: 2013-02-12 17:56 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT

IDE log (315.40 KB, text/plain)
2013-02-12 00:13 UTC, ecerichter
Profiler snapshot (776.20 KB, application/octet-stream)
2013-02-12 00:14 UTC, ecerichter
Windows task manager (14.74 KB, image/png)
2013-02-12 00:16 UTC, ecerichter
messages.log.1 (317.94 KB, application/octet-stream)
2013-02-12 16:21 UTC, ecerichter
messages.log.2 (1.00 MB, application/octet-stream)
2013-02-12 16:22 UTC, ecerichter
uigestures (310.53 KB, application/octet-stream)
2013-02-12 16:23 UTC, ecerichter
uigestures.1 (787.47 KB, application/octet-stream)
2013-02-12 16:23 UTC, ecerichter
netbeans.conf (2.93 KB, application/octet-stream)
2013-02-12 17:24 UTC, ecerichter

Note You need to log in before you can comment on or make changes to this bug.
Description ecerichter 2013-02-12 00:13:37 UTC
Product Version = NetBeans IDE 7.3 RC2 (Build 201302050851)
Operating System = Windows 7 version 6.1 running on amd64
Java; VM; Vendor = 1.7.0_13
Runtime = Java HotSpot(TM) 64-Bit Server VM 23.7-b01

Right now, my computer with 8 cores at 3.2 Ghz is screaming due NetBeans consuming constant 70% of CPU.
I've no idea about what is going on.
I'm working in development of Web App (few JSP pages, few Servlets, and some javascript code).
I took a profiler from the session, but it is going slowdown more and more.
Attached there is the log file, the snapshot of the profiler and the screenshot of the Windows task manager.
Comment 1 ecerichter 2013-02-12 00:13:48 UTC
Created attachment 131266 [details]
IDE log
Comment 2 ecerichter 2013-02-12 00:14:49 UTC
Created attachment 131267 [details]
Profiler snapshot
Comment 3 ecerichter 2013-02-12 00:16:14 UTC
Created attachment 131268 [details]
Windows task manager

Computer is doing nothing: there is no Antivirus activity, few light applications.
Computer has 8Gb of memory, with > 4Gb free.
Started after a redeployment. Tomcat is working fine.
No other log messages anywhere. Just NetBeans eating my CPU.
Comment 4 Petr Cyhelsky 2013-02-12 16:16:21 UTC
Just from looking at the snapshot it doesn§t seem there is any problem in what the IDE is doing, but it seems there is a lot of gc being done which can consume a lot of cpu. The beginning of messages.log is missing, please attach the other parts like messages.log.1 etc. It would also be great to have some data concerning the gc, So when the problem occurs again do the following:

1. Run VisualVM
2. Monitor the application for some time
3. Create application snapshot
4. Attach the application snapshot here.
Comment 5 ecerichter 2013-02-12 16:21:49 UTC
Created attachment 131304 [details]

As per your request.
Comment 6 ecerichter 2013-02-12 16:22:19 UTC
Created attachment 131305 [details]
Comment 7 ecerichter 2013-02-12 16:23:20 UTC
Created attachment 131306 [details]
Comment 8 ecerichter 2013-02-12 16:23:57 UTC
Created attachment 131307 [details]
Comment 9 Petr Cyhelsky 2013-02-12 16:32:03 UTC
And the application snapshot from VisualVM? (it would be great, because we would see among other information the graph of gc's CPU usage...) The messages.log(s) are almost useless, because there is so much logging going on in your IDE, that they seem to be "rolled over" so much, that in none of them there is the normal beginning from the start of the IDE (where we can see the parameters like -xmx, what garbage collector you are using, and other....)
Comment 10 ecerichter 2013-02-12 17:23:18 UTC
I'm using standard netbeans.conf, only exception is "--locale en:US", because I prefer working in English.
Comment 11 ecerichter 2013-02-12 17:24:24 UTC
Created attachment 131311 [details]

And here is java version:

C:\Users\richter>java -version
java version "1.7.0_13"
Java(TM) SE Runtime Environment (build 1.7.0_13-b20)
Java HotSpot(TM) 64-Bit Server VM (build 23.7-b01, mixed mode)
Comment 12 ecerichter 2013-02-12 17:25:24 UTC
How to get the VisualVM snapshot from NetBeans?
It is necessary any startup parameter?

I've never used VisualVM before.
Comment 13 Jiri Kovalsky 2013-02-12 17:56:13 UTC
You need to download VisualVM [1], install it and then launch it. It will detect all running Java applications so you right click NetBeans 7.3 node and invoke "Heap Dump" from its popup menu. This will generate new [heapdump] node. Right click it, and "Save As..." it. Then upload it to our Hudson [2] and don't forget to provide 226000 as its "Upload_Name". That's all. Thanks!


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo