[nbusers] Re: NB Sluggish with Java 7

  • From: Mitch Claborn < >
  • To:
  • Subject: [nbusers] Re: NB Sluggish with Java 7
  • Date: Thu, 03 Jan 2013 11:55:42 -0600

I see a bunch of the exceptions shown below in the IDE log. Could this cause/contribute to the sluggishness?

com.csc.mm.commonjson.JSONWrapper2 is one of my classes. It is referenced by many of the custom widgets in my UI palette.

INFO: com/csc/mm/commonjson/JSONWrapper2
java.lang.ClassNotFoundException: com.csc.mm.commonjson.JSONWrapper2
        at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
        at 
org.openide.execution.NbClassLoader.findClass(NbClassLoader.java:210)
at org.netbeans.api.java.classpath.ClassLoaderSupport.findClass(ClassLoaderSupport.java:113)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
Caused: java.lang.NoClassDefFoundError: com/csc/mm/commonjson/JSONWrapper2
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:791)
        at 
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
        at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
        at 
org.openide.execution.NbClassLoader.findClass(NbClassLoader.java:210)
at org.netbeans.api.java.classpath.ClassLoaderSupport.findClass(ClassLoaderSupport.java:113)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
        at java.lang.Class.getDeclaredMethods0(Native Method)
        at java.lang.Class.privateGetDeclaredMethods(Class.java:2442)
        at java.lang.Class.privateGetPublicMethods(Class.java:2562)
        at java.lang.Class.getMethods(Class.java:1427)
        at 
java.beans.Introspector.getPublicDeclaredMethods(Introspector.java:1261)
        at java.beans.Introspector.getTargetMethodInfo(Introspector.java:1122)
        at java.beans.Introspector.getBeanInfo(Introspector.java:414)
        at java.beans.Introspector.getBeanInfo(Introspector.java:161)
        at org.openide.util.Utilities.getBeanInfo(Utilities.java:400)
[catch] at org.netbeans.modules.form.FormUtils.getBeanInfo(FormUtils.java:1810)
at org.netbeans.modules.form.palette.PaletteItem.getBeanDescriptor(PaletteItem.java:374)
at org.netbeans.modules.form.palette.PaletteItem.getTooltip(PaletteItem.java:289)
at org.netbeans.modules.form.palette.PaletteItemDataObject$ItemNode.getShortDescription(PaletteItemDataObject.java:357)
        at 
org.openide.nodes.FilterNode.getShortDescription(FilterNode.java:555)
        at 
org.openide.nodes.FilterNode.getShortDescription(FilterNode.java:555)
at org.netbeans.modules.palette.DefaultItem.getShortDescription(DefaultItem.java:89)
at org.netbeans.modules.palette.ui.CategoryList$ItemRenderer.getListCellRendererComponent(CategoryList.java:330)
at javax.swing.plaf.basic.BasicListUI.updateLayoutState(BasicListUI.java:1361)
at org.netbeans.modules.palette.ui.CategoryList$CategoryListUI.updateLayoutState(CategoryList.java:411)
at javax.swing.plaf.basic.BasicListUI.maybeUpdateLayoutState(BasicListUI.java:1311)
        at 
javax.swing.plaf.basic.BasicListUI.getCellBounds(BasicListUI.java:952)
        at javax.swing.JList.getCellBounds(JList.java:1633)
        at javax.swing.JList.ensureIndexIsVisible(JList.java:1149)
at org.netbeans.modules.palette.ui.CategoryDescriptor.doSetOpened(CategoryDescriptor.java:225)
at org.netbeans.modules.palette.ui.CategoryDescriptor.<init>(CategoryDescriptor.java:124)
at org.netbeans.modules.palette.ui.PalettePanel.computeDescriptors(PalettePanel.java:211)
at org.netbeans.modules.palette.ui.PalettePanel.access$500(PalettePanel.java:112)
at org.netbeans.modules.palette.ui.PalettePanel$2.run(PalettePanel.java:309)
at org.netbeans.modules.palette.ui.PalettePanel.refresh(PalettePanel.java:326)
at org.netbeans.modules.palette.ui.PalettePanel.setContent(PalettePanel.java:428)
at org.netbeans.spi.palette.PaletteTopComponent.setPaletteController(PaletteTopComponent.java:159)
at org.netbeans.spi.palette.PaletteTopComponent.componentOpened(PaletteTopComponent.java:118)
at org.openide.windows.WindowManager.componentOpenNotify(WindowManager.java:307)
at org.netbeans.core.windows.WindowManagerImpl.notifyTopComponentOpened(WindowManagerImpl.java:1112)
at org.netbeans.core.windows.Central.addModeOpenedTopComponent(Central.java:784)
at org.netbeans.core.windows.ModeImpl.addOpenedTopComponent(ModeImpl.java:354)
at org.netbeans.core.windows.WindowManagerImpl.topComponentOpenAtTabPosition(WindowManagerImpl.java:1224)
at org.netbeans.core.windows.WindowManagerImpl.topComponentOpen(WindowManagerImpl.java:1189)
        at org.openide.windows.TopComponent.open(TopComponent.java:497)
        at org.openide.windows.TopComponent.open(TopComponent.java:477)
at org.netbeans.spi.palette.PaletteTopComponent.showPalette(PaletteTopComponent.java:180)
at org.netbeans.spi.palette.PaletteSwitch.showHidePaletteTopComponent(PaletteSwitch.java:228)
        at 
org.netbeans.spi.palette.PaletteSwitch.access$400(PaletteSwitch.java:79)
        at 
org.netbeans.spi.palette.PaletteSwitch$3.run(PaletteSwitch.java:349)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
        at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:721)
        at java.awt.EventQueue.access$200(EventQueue.java:103)
        at java.awt.EventQueue$3.run(EventQueue.java:682)
        at java.awt.EventQueue$3.run(EventQueue.java:680)
        at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:691)
at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:158)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
        at 
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
        at 
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)



Mitch

On 01/02/2013 09:22 AM, Geertjan Wielenga wrote:


Also a good idea to clear your user directory, i.e., create a new one
(by defining a new location in netbeans.conf).

Gj

On 01/02/2013 04:13 PM, Mitch Claborn wrote:
Remove the following.  No noticeable change.  Working on the JVM
tuning next.

--cp:p /home/javalibs/jgoodies-looks-2.4.1/jgoodies-looks-2.4.1.jar
--cp:p
/home/javalibs/jgoodies-looks-2.4.1/lib/jgoodies-common-1.2.0.jar
--laf com.jgoodies.looks.plastic.Plastic3DLookAndFeel


Mitch

On 01/01/2013 04:25 PM, Geertjan Wielenga wrote:


And this:

--cp:p
/home/javalibs/jgoodies-looks-2.4.1/jgoodies-looks-2.4.1.jar --cp:p
/home/javalibs/jgoodies-looks-2.4.1/lib/jgoodies-common-1.2.0.jar


At the very least, you should try removing those settings and
finetuning your netbeans.conf via the links I've sent to see if it
will improve things.

Gj



----- Original Message -----
From: 

To: 

Sent: Tuesday, January 1, 2013 11:24:16 PM GMT +01:00 Amsterdam /
Berlin / Bern / Rome / Stockholm / Vienna
Subject: Re: [nbusers] Re: NB Sluggish with Java 7





PS: And maybe things will speed up without this in your netbeans.conf:

--laf com.jgoodies.looks.plastic.Plastic3DLookAndFeel

Gj



----- Original Message -----
From: 

To: 

Sent: Tuesday, January 1, 2013 11:23:14 PM GMT +01:00 Amsterdam /
Berlin / Bern / Rome / Stockholm / Vienna
Subject: Re: [nbusers] Re: NB Sluggish with Java 7


http://performance.netbeans.org/howto/jvmswitches/

http://p0l0.binware.org/index.php/2010/04/17/netbeans-performance-switches/


Gj


----- Original Message -----
From: 

To: 

Sent: Tuesday, January 1, 2013 11:12:07 PM GMT +01:00 Amsterdam /
Berlin / Bern / Rome / Stockholm / Vienna
Subject: [nbusers] Re: NB Sluggish with Java 7

Here is the non-comment contents:

netbeans_default_userdir="${DEFAULT_USERDIR_ROOT}/7.2"

netbeans_default_cachedir="${DEFAULT_CACHEDIR_ROOT}/7.2"

netbeans_default_options="-J-client -J-Xss2m -J-Xms32m -J-Xmx2000m
-J-XX:PermSize=32m -J-XX:MaxPermSize=384m
-J-Dapple.laf.useScreenMenuBar=true
-J-Dapple.awt.graphics.UseQuartz=true -J-Dsun.java2d.noddraw=true
-J-Dsun.zip.disableMemoryMapping=true --cp:p
/home/javalibs/jgoodies-looks-2.4.1/jgoodies-looks-2.4.1.jar --cp:p
/home/javalibs/jgoodies-looks-2.4.1/lib/jgoodies-common-1.2.0.jar
-J-Dorg.netbeans.modules.parsing.impl.indexing.RepositoryUpdater.level=FINE

--laf com.jgoodies.looks.plastic.Plastic3DLookAndFeel --fontsize 16"



Mitch

On 01/01/2013 03:39 PM, Geertjan Wielenga wrote:


What's the content of your netbeans.conf file look like? Can you
post it in an e-mail to this mailing list?

Thanks,

Geertjan



----- Original Message -----
From: 

To: 

Sent: Tuesday, January 1, 2013 10:20:21 PM GMT +01:00 Amsterdam /
Berlin / Bern / Rome / Stockholm / Vienna
Subject: [nbusers] Re: NB Sluggish with Java 7

I upgraded to jdk 7u10 - no noticeable improvement in performance.


Mitch

On 12/27/2012 11:21 AM, Geertjan Wielenga wrote:


Maybe use the very latest version of JDK 7, which I think is JDK 7
Update 10.

Gj

On 12/27/2012 06:11 PM, Mitch Claborn wrote:
I did some searching yesterday and did not find any bug reports. The
places where I really notice a slowdown:

1) Hints pop up (Alt + space) may take a second or more, where under
Java 6 they were quite rapid.

2) In the GUI builder, dragging the edge of a component to change the
size, the dragging is jerky.  It used to be very smooth.

3) Some builds take drastically longer than before.  I have one
project that for some reason needs Clean & Build frequently. It used
to take right around 60 seconds, now it takes almost twice that.
Granted, I have switched all my projects to "Source/Binary Format"
JDK
7, so the compiler might have more to do, but twice as long seems too
much.

I have 8 i7 cores @ 1.73Ghz and 16G RAM, allocated 2G to NetBeans.

I'll wait until Monday, to see if we get any more ideas from the
mailing list and then enter a bug report unless you beat me to it. It
will probably carry more weight if we use the same bug report.


Mitch

On 12/26/2012 09:04 PM, Wade Chandler wrote:
I am not sure. I seem to have roughly the same setup as you OS NB
and
JVM wise. I have a quad core 8GB AMD A8 laptop running things. I
work
with a lot of projects at the same time and give NB about 2GB to
use.
Mostly maven projects.

I think it may help us to talk about what we mean by sluggish and be
more clear. I need to find time to study and write up my issues I
noticed with 7.2.1 and Java 7.

Off the top of my head I feel the IDE is sluggish when:

1) I use CTRL+TAB to switch windows. Used to not be this way. The
new
window with things other than the editor I attribute to this without
more proof. I often have to wait 2 seconds or the editor tab
change nor
dialog with files to choose from will happen/appear. This used to be
extremely fast. Not sure the exact cause though.

2) Often the hints are refreshing or indexes are building and
ALT+ENTER
takes forever to show the hints or for the hint symbol to appear
so I
can used the key combo.

3) Sometimes rolling over the menus in the window... File, Edit,
Tools,
etc can take longer to appear.

I have not yet looked for filed bugs or filed any, but do need to
find
the time. I feel some of this is 7.2+ as I was using Java 7 to run
before. Are any of those issues the same as yours? If you file
issues or
find them please share the links. I will try to find time to do the
same. Were these issues addressed I think NB would be near
perfect on
this machine less a few bugs I have filed in various
features...some of
which I know are now fixed in 7.3.

Wade

=================

Wade Chandler
Software Engineer/Consultant
www.wadechandler.com <http://www.wadechandler.com>

NetBeans Dream Team Member
NetBeans Contributor
www.netbeans.org <http://www.netbeans.org>

On Dec 26, 2012 7:31 PM, "Mitch Claborn" 
<
<mailto: >>
 wrote:

      Sorry, I wasn't quite clear. I realize that the 1.6
compiler should
      not be able to produce 1.7 files. I was asking if anyone
had seen a
      bug report on the sluggishness of NetBeans running under 1.7.


      Mitch

      On 12/26/2012 06:18 PM, Edson Richter wrote:

          Em 26/12/2012 21:50, Mitch Claborn escreveu:

              Alas that won't work for me.  I have some build
files that
              have JDK
              1.7 source/target formats that I can't compile with
the JDK
              1.6 compiler.

              Has anyone seen a bug report on this issue? If not,
I'll
              file one.


          This is not a bug.
          Source format is not regressible: 1.6 has not necessary
features to
          compile 1.7 format.

          Regards,

          Edson


              Mitch

              On 12/26/2012 04:11 PM, Thomas Wolf wrote:

                  I observed similar in Mac OS X.  My "fix" was
to go back
                  to 1.6u39
                  for running the IDE.

                  Sent from my iPhone

                  On Dec 26, 2012, at 5:02 PM, Mitch Claborn
                  
<
<mailto: >>
wrote:

                      NetBeans 7.2
                      Ubuntu 12.04 64 bit

                      I recently switched NetBeans to run under
the Oracle
                      1.7 JDK.
                      Configured this way, NB is noticeably slower,
                      particularly in the
                      GUI designer, for example changing the size
of a
                      component, and in
                      the pop-up code completion hints.

                      Has anyone else experienced this or know of
a fix?

                      --

                      Mitch














[nbusers] Re: NB Sluggish with Java 7

Mitch Claborn 01/01/2013

<Possible follow-up(s)>

[nbusers] Re: NB Sluggish with Java 7

Geertjan Wielenga 01/01/2013

[nbusers] Re: NB Sluggish with Java 7

Mitch Claborn 01/01/2013

[nbusers] Re: NB Sluggish with Java 7

Mitch Claborn 01/01/2013

[nbusers] Re: NB Sluggish with Java 7

Geertjan Wielenga 01/01/2013

[nbusers] Re: NB Sluggish with Java 7

Geertjan Wielenga 01/01/2013

[nbusers] Re: NB Sluggish with Java 7

Geertjan Wielenga 01/01/2013

[nbusers] Re: NB Sluggish with Java 7

Geertjan Wielenga 01/01/2013

[nbusers] Re: NB Sluggish with Java 7

Mitch Claborn 01/02/2013

[nbusers] Re: NB Sluggish with Java 7

Geertjan Wielenga 01/02/2013

[nbusers] Re: NB Sluggish with Java 7

Mitch Claborn 01/03/2013

[nbusers] Re: NB Sluggish with Java 7

Wade Chandler 01/03/2013

Project Features

About this Project

www was started in November 2009, is owned by jpirek, and has 21 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20140418.2d69abc). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close