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 157818 - netbeans becomes periodically unresponsive for a few seconds
Summary: netbeans becomes periodically unresponsive for a few seconds
Status: CLOSED INCOMPLETE
Alias: None
Product: ide
Classification: Unclassified
Component: Performance (show other bugs)
Version: 3.x
Hardware: Macintosh Mac OS X
: P3 blocker with 1 vote (vote)
Assignee: issues@performance
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2009-02-03 04:29 UTC by callagga
Modified: 2011-05-25 11:38 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
thread dump as requested (29.19 KB, text/plain)
2009-02-03 10:43 UTC, callagga
Details
2nd thread dump (20.94 KB, text/plain)
2009-02-03 11:19 UTC, callagga
Details

Note You need to log in before you can comment on or make changes to this bug.
Description callagga 2009-02-03 04:29:43 UTC
Hi,

I'm noticing with the dev build that netbeans becomes periodically unresponsive for a few seconds.  If I jump to another
application it responds ok, but back to netbeans and it's still unresponsive.  after a few seconds it comes good, and
has buffered input.  

I am running in a separate application (iTerm) the rails "./script/autospec", however I assume this should be decoupled
from Netbeans?  I just noticed however when I change one character in a ruby file and hit save in Netbeans that:
(a) the Ruby process (for ./script/autospec) starts using CPU, BUT ALSO
(b) Netbeans process starts uses high CPU (around 98%) at the same time, and ongoing for several seconds after
./script/autospec finishes running the spec.

Not sure if this is related to the unresponsiveness periods. 

Anything I can do to get more details?  

My config:
Product Version: NetBeans IDE Dev (Build 200902011401)
Java: 1.5.0_16; Java HotSpot(TM) Client VM 1.5.0_16-133
System: Mac OS X version 10.5.6 running on i386; MacRoman; en_US (nb)
Userdir: /Users/greg/.netbeans/dev

My Mac:
Model Name:	MacBook
  Model Identifier:	MacBook2,1
  Processor Name:	Intel Core 2 Duo
  Processor Speed:	2 GHz
  Number Of Processors:	1
  Total Number Of Cores:	2
  L2 Cache:	4 MB
  Memory:	2 GB
  Bus Speed:	667 MHz
  Boot ROM Version:	MB21.00A5.B07
  SMC Version:	1.13f3
  Sudden Motion Sensor:
  State:	Enabled
Comment 1 callagga 2009-02-03 04:32:55 UTC
PS.  Just noticed an unresponsiveness period for Netbeans, when I wasn't running ./script/autospec.   Netbeans CPU was
over 99% at the time.  

I never see this behavior with version 6.5
Comment 2 callagga 2009-02-03 06:09:22 UTC
Question - Is there a way to turn off whatever is causing the slow down so we can keep testing/being productive with the
latest builds?  e.g. if this is the indexer? 
Comment 3 Marian Mirilovic 2009-02-03 09:00:47 UTC
Hi could you please generate thread-dump at time of freeze ... http://wiki.netbeans.org/GenerateThreadDump
Comment 4 callagga 2009-02-03 09:20:54 UTC
ok - will try - one question:

The wiki says:
#  press Ctrl-\ in the terminal console you used to start the IDE
# send the QUIT signal to the Java VM running the IDE "kill -QUIT process_id"

Is issuing the 1st of these enough (as this gives info).  When I try the 2nd (kill) approach I'm not sure it is doing
anything.  I've tried on both java processes I see, which process was I supposed to target for the 2nd approach?

e.g. 
Macintosh-2:~ greg$ ps ax | grep -i java
22509 s002  S+     0:00.07 /bin/bash ./../platform10/lib/nbexec --userdir /Users/greg/.netbeans/dev --jdkhome
/System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home
-J-Dcom.apple.mrj.application.apple.menu.about.name=NetBeans -J-Xdock:name=NetBeans
-J-Xdock:icon=./../nb7.0/netbeans.icns --branding nb --clusters /Applications/NetBeans/NetBeans Dev
200902011401.app/Contents/Resources/NetBeans/nb7.0:/Applications/NetBeans/NetBeans Dev
200902011401.app/Contents/Resources/NetBeans/ide11:/Applications/NetBeans/NetBeans Dev
200902011401.app/Contents/Resources/NetBeans/webcommon1:/Applications/NetBeans/NetBeans Dev
200902011401.app/Contents/Resources/NetBeans/websvccommon1:/Applications/NetBeans/NetBeans Dev
200902011401.app/Contents/Resources/NetBeans/gsf1:/Applications/NetBeans/NetBeans Dev
200902011401.app/Contents/Resources/NetBeans/ruby2: -J-Dnetbeans.importclass=org.netbeans.upgrade.AutoUpgrade
-J-Dnetbeans.accept_license_class=org.netbeans.license.AcceptLicense -J-Xmx409m
-J-Dorg.glassfish.v3.installRoot=/Applications/NetBeans/glassfish-v3-prelude-b28c
-J-Dcom.sun.mysql.startcommand=/usr/local/mysql/support-files/mysql-admin.server
-J-Dcom.sun.mysql.stopcommand=/usr/local/mysql/support-files/mysql-admin.server -J-Dcom.sun.mysql.startargs=start
-J-Dcom.sun.mysql.stopargs=stop -J-Dcom.sun.mysql.port=3306
-J-Dorg.glassfish.v3.installRoot=/Applications/NetBeans/glassfish-v3-prelude-b28c -J-client -J-Xss2m -J-Xms32m
-J-XX:PermSize=32m -J-XX:MaxPermSize=200m -J-Dnetbeans.logger.console=true -J-ea -J-Dapple.laf.useScreenMenuBar=true
-J-Dsun.java2d.noddraw=true -J-Dapple.awt.brushMetalLook=true
22631 s002  S+     2:03.18 /System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home/bin/java
-Djdk.home=/System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home -classpath /Applications/NetBeans/NetBeans Dev
200902011401.app/Contents/Resources/NetBeans/platform10/lib/boot.jar:/Applications/NetBeans/NetBeans Dev
200902011401.app/Contents/Resources/NetBeans/platform10/lib/org-openide-modules.jar:/Applications/NetBeans/NetBeans Dev
200902011401.app/Contents/Resources/NetBeans/platform10/lib/org-openide-util.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home/lib/dt.jar
-Dnetbeans.system_http_proxy=DIRECT -Dnetbeans.system_http_non_proxy_hosts=
-Dnetbeans.dirs=/Applications/NetBeans/NetBeans Dev
200902011401.app/Contents/Resources/NetBeans/nb7.0:/Applications/NetBeans/NetBeans Dev
200902011401.app/Contents/Resources/NetBeans/ide11:/Applications/NetBeans/NetBeans Dev
200902011401.app/Contents/Resources/NetBeans/webcommon1:/Applications/NetBeans/NetBeans Dev
200902011401.app/Contents/Resources/NetBeans/websvccommon1:/Applications/NetBeans/NetBeans Dev
200902011401.app/Contents/Resources/NetBeans/gsf1:/Applications/NetBeans/NetBeans Dev
200902011401.app/Contents/Resources/NetBeans/ruby2: -Dnetbeans.home=/Applications/NetBeans/NetBeans Dev
200902011401.app/Contents/Resources/NetBeans/platform10 -Dcom.apple.mrj.application.apple.menu.about.name=NetBeans
-Xdock:name=NetBeans -Xdock:icon=./../nb7.0/netbeans.icns -Dnetbeans.importclass=org.netbeans.upgrade.AutoUpgrade
-Dnetbeans.accept_license_class=org.netbeans.license.AcceptLicense -Xmx409m
-Dorg.glassfish.v3.installRoot=/Applications/NetBeans/glassfish-v3-prelude-b28c
-Dcom.sun.mysql.startcommand=/usr/local/mysql/support-files/mysql-admin.server
-Dcom.sun.mysql.stopcommand=/usr/local/mysql/support-files/mysql-admin.server -Dcom.sun.mysql.startargs=start
-Dcom.sun.mysql.stopargs=stop -Dcom.sun.mysql.port=3306
-Dorg.glassfish.v3.installRoot=/Applications/NetBeans/glassfish-v3-prelude-b28c -client -Xss2m -Xms32m -XX:PermSize=32m
-XX:MaxPermSize=200m -Dnetbeans.logger.console=true -ea -Dapple.laf.useScreenMenuBar=true -Dsun.java2d.noddraw=true
-Dapple.awt.brushMetalLook=true -XX:+HeapDumpOnOutOfMemoryError
-XX:HeapDumpPath=/Users/greg/.netbeans/dev/var/log/heapdump.hprof org.netbeans.Main --userdir /Users/greg/.netbeans/dev
--branding nb
22766 s003  R+     0:00.00 grep -i java
Macintosh-2:~ greg$ 


Comment 5 callagga 2009-02-03 10:43:47 UTC
Created attachment 76504 [details]
thread dump as requested
Comment 6 callagga 2009-02-03 11:19:01 UTC
Created attachment 76506 [details]
2nd thread dump
Comment 7 Marian Mirilovic 2009-02-04 09:37:40 UTC
ok, in this case please try :
sudo jstack <PID> 
... and attach output to this issue. Thanks in advance.
Comment 8 callagga 2009-02-04 09:54:44 UTC
which of the 2 processes would I run this against?  (i.e. /bin/bash ./../platform10/lib/nbexec, OR
/System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home/bin/java)?  
Comment 9 Marian Mirilovic 2009-09-18 14:17:30 UTC
could you run jstack against java  process ? Thanks in advance.