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 189603 - Netbeans is constantly using a high amount of CPU time, even when apparently idle.
Summary: Netbeans is constantly using a high amount of CPU time, even when apparently ...
Status: RESOLVED INCOMPLETE
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: Macintosh (x86) Mac OS X
: P3 normal with 3 votes (vote)
Assignee: Ondrej Brejla
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2010-08-17 15:57 UTC by bittarman
Modified: 2012-02-14 12:53 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Profiler LOG (129.68 KB, application/octet-stream)
2010-09-05 11:57 UTC, msebera
Details
Netbeans 6.9.1 profile (46.71 KB, application/octet-stream)
2010-10-14 23:24 UTC, bluescrubbie
Details

Note You need to log in before you can comment on or make changes to this bug.
Description bittarman 2010-08-17 15:57:37 UTC
This has been happening since a recent update. Was apparent first in 6.9, and still present after installing 6.9.1.
From top:
PID   COMMAND      %CPU      TIME     #TH  #WQ  #POR #MREG RPRVT  RSHRD  RSIZE  VPRVT  VSIZE  PGRP PPID STATE    UID  FAULTS
203  java         129.1     97:26.75 44/2 1    551  1348  700M   42M    745M   913M   3794M  3962 3962 running  501  1632141+



Product Version = NetBeans IDE 6.9.1 (Build 201007282301)
Operating System = Mac OS X version 10.6.4 running on x86_64
Java; VM; Vendor = 1.6.0_20
Runtime = Java HotSpot(TM) 64-Bit Server VM 16.3-b01-279
Comment 1 Peter Pis 2010-08-25 12:21:31 UTC
Could you please provide some snapshot of that?
http://wiki.netbeans.org/FaqProfileMeNow

Please attach the link of attached snapshot with the help of:
http://upload.megashare.com/
Comment 2 msebera 2010-09-05 11:57:38 UTC
Created attachment 101874 [details]
Profiler LOG

Dont know if it helps, but this is the profiler.

Netbeans freezes in fact everytime i run it, and it etas from 300 to 700 megs of memory and almost full CPU. I should make some screens of Activity monitor, and some from Netbeans GUI (when queue of actions contains for example 10 times "Deleting")

For me it looks like some unchatched loop, which tries to make everything more times than we want :D

I'm Running the same as creator of this bug.

Mac OS X 10.6.4, in x86_64 on MBP 13" 2010

Wish you nice day
Comment 3 bluescrubbie 2010-10-14 23:24:59 UTC
Created attachment 102421 [details]
Netbeans 6.9.1 profile

same problem, with 6.9.1 hogging cpu indefinitely with no user activity. The ol Parsing & Indexing Loop looks pretty busy.
Comment 4 Tomas Zezula 2010-11-05 13:13:59 UTC
The parsing loop does single scheduled task which is the PHP (46.5s) and probably longer.
This task was schedules while you was still in the IDE as result of some action, but it takes long time.
The time is spent in php parsing and intensive queries (there is some IO and also class loading in order of seconds). The class loading is natural (the clases were not used before) the IO may benefit in the NB 7.0 from the memory caching integrated into jet-main e8f93be3c8c6
Comment 5 Ondrej Brejla 2012-02-14 12:53:13 UTC
There is a lot of improvements in parsing in 7.2 dev. Can you test it there? [1] If the problem still remains, please, provide me some new profiling snapshot and reopen this issue. Thanks!

[1] http://bits.netbeans.org/download/trunk/nightly/latest/