VWP + NB 5.5 is so slow

i have 2 GB of RAM and 3 GHz CPU on windows xp. i tried vwp and nb 5.5 on 3 machines with this configuration. opening a visual web project, opening and closing web pages is so slow. it consumes cpu for minutes. what can i do for this?
[241 byte] By [NewsHuntera] at [2007-11-26 14:14:32]
# 1

I've seen some performance improvements by increasing the ram settings in netbeans.conf.

Hopefully the next version of VWP will have some performance improvements. I never had any performance problems with Creator, but NB+VWP often seems sluggish. Some features such as the CSS editor are unusable since for some reason there is a 15 second lag between typing and having anything happen on screen.

jsra at 2007-7-8 2:03:59 > top of Java-index,Development Tools,Java Tools...
# 2

> I've seen some performance improvements by increasing

> the ram settings in netbeans.conf.

Yes, you could see the difference with big projects with change in settings as descibed here:

http://wiki.netbeans.org/wiki/view/VwpFaqPerformanceTweak

> Hopefully the next version of VWP will have some

> performance improvements. I never had any performance

> problems with Creator, but NB+VWP often seems

> sluggish. Some features such as the CSS editor are

> unusable since for some reason there is a 15 second

> lag between typing and having anything happen on

> screen.

Does this happen frequently/consistenly for you? I have seen this kind of slowness you are describing. We would appreciate a thread dump when this happens with machine config and IDE log.

Regards,

Sakthi

sakthivel.gopala at 2007-7-8 2:03:59 > top of Java-index,Development Tools,Java Tools...
# 3
how can i do this thread dump?
NewsHuntera at 2007-7-8 2:04:00 > top of Java-index,Development Tools,Java Tools...
# 4
starting nb 5.5 is very slow if any project is open when i close it. it seems nb scans each class for persistance. also right click for value binding takes long time to show binding window.
NewsHuntera at 2007-7-8 2:04:00 > top of Java-index,Development Tools,Java Tools...
# 5
Thread dump instructions: http://qa.netbeans.org/bugzilla/generating-thread-dumps.html
jsra at 2007-7-8 2:04:00 > top of Java-index,Development Tools,Java Tools...
# 6
I've read other posts where it was related to specific antivirus programs running on windows. Try turning off or uninstalling your antivirus and see what happens.
Tosa_Developera at 2007-7-8 2:04:00 > top of Java-index,Development Tools,Java Tools...
# 7
i have avg antivirus. i disabled it. it is still slow.
NewsHuntera at 2007-7-8 2:04:00 > top of Java-index,Development Tools,Java Tools...
# 8

Sakthi,

I finally got a chance to revisit this problem. Sorry for the delay. Yes, the CSS typing lag happens frequently. If you open the project with no pages open then the CSS editor is fast, but once you start opening pages it slows down, especially if those pages have a lot of components. I opened up one page with about 150 components and another with 90 and now every time I type a couple of characters into the CSS editor it hangs for about 8 seconds (I counted). Closing the pages does not help either, I have to restart NetBeans to make it fast again. I tried to recreate this in a brand new project and was unable to. Maybe it has something to do with my project being fairly large (65+ pages)? I've included the thread dump below. When I took this thread dump I had 6 pages open, I then typed 揳aaaaaaaaaa?into the editor and then it hung for 39 seconds. Nothing was added to the IDE log during this delay.

Also, other than the CSS editor and opening pages, I've seen significant slowness when changing the id on components. In Creator, this used to take under a second. Now, it takes between 8-15 seconds regardless of the size of the page. Is it scanning the entire project for places where it needs to rename the component?

My computer is a Dell GX620 w/ P4 3.2Ghz (HT Enabled), 2GB RAM running XP SP2

Thread dump for the CSS editor hang:

2007-01-18 08:36:48

Full thread dump Java HotSpot(TM) Client VM (1.6.0-b105 mixed mode):

"Suggestions Broker" daemon prio=2 tid=0x50098400 nid=0x1388 in Object.wait() [0

x46a9f000..0x46a9fc94]

java.lang.Thread.State: WAITING (on object monitor)

at java.lang.Object.wait(Native Method)

at java.lang.Object.wait(Object.java:485)

at java.awt.EventQueue.invokeAndWait(EventQueue.java:992)

- locked <0x146c6c98> (a java.awt.EventQueue$1AWTInvocationLock)

at javax.swing.SwingUtilities.invokeAndWait(SwingUtilities.java:1323)

at org.netbeans.modules.tasklist.suggestions.SuggestionsBroker.isTopComp

onentOpened(SuggestionsBroker.java:662)

at org.netbeans.modules.tasklist.suggestions.SuggestionsBroker.access$18

00(SuggestionsBroker.java:66)

at org.netbeans.modules.tasklist.suggestions.SuggestionsBroker$2.run(Sug

gestionsBroker.java:600)

at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:499)

at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java

:932)

"Inactive RequestProcessor thread [Was:Timeout waitFinished compatibility proces

sor/org.openide.util.Task$1Run]" daemon prio=2 tid=0x500a1c00 nid=0xae4 in Objec

t.wait() [0x468ff000..0x468ffd14]

java.lang.Thread.State: TIMED_WAITING (on object monitor)

at java.lang.Object.wait(Native Method)

at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java

:885)

- locked <0x117dd2b8> (a java.lang.Object)

"Timer-5" daemon prio=2 tid=0x47297000 nid=0xbb8 in Object.wait() [0x46e9f000..0

x46e9fa94]

java.lang.Thread.State: WAITING (on object monitor)

at java.lang.Object.wait(Native Method)

- waiting on <0x07d8e408> (a java.util.TaskQueue)

at java.lang.Object.wait(Object.java:485)

at java.util.TimerThread.mainLoop(Timer.java:483)

- locked <0x07d8e408> (a java.util.TaskQueue)

at java.util.TimerThread.run(Timer.java:462)

"Timer-1" daemon prio=6 tid=0x475c5000 nid=0x1184 in Object.wait() [0x462ef000..

0x462efb14]

java.lang.Thread.State: TIMED_WAITING (on object monitor)

at java.lang.Object.wait(Native Method)

at java.util.TimerThread.mainLoop(Timer.java:509)

- locked <0x0730d5c8> (a java.util.TaskQueue)

at java.util.TimerThread.run(Timer.java:462)

"DestroyJavaVM" prio=6 tid=0x002a7000 nid=0xa20 waiting on condition [0x00000000

..0x0090fd4c]

java.lang.Thread.State: RUNNABLE

"TimerQueue" daemon prio=6 tid=0x4661d400 nid=0x1344 in Object.wait() [0x46d4f00

0..0x46d4fb94]

java.lang.Thread.State: TIMED_WAITING (on object monitor)

at java.lang.Object.wait(Native Method)

at javax.swing.TimerQueue.run(TimerQueue.java:236)

- locked <0x0713ac88> (a javax.swing.TimerQueue)

at java.lang.Thread.run(Thread.java:619)

"AWT-EventQueue-1" prio=6 tid=0x4661c800 nid=0x1440 runnable [0x4694e000..0x4694

fc14]

java.lang.Thread.State: RUNNABLE

at org.apache.xerces.dom.ChildNode.getNextSibling(Unknown Source)

at com.sun.rave.insync.markup.MarkupUnit.getElementText(MarkupUnit.java:

272)

at com.sun.rave.insync.faces.config.ManagedBean.getName(ManagedBean.java

:126)

at com.sun.rave.insync.models.ManagedBeansModel.getManagedBean(ManagedBe

ansModel.java:54)

at com.sun.rave.insync.models.FacesModelSet.findDesignContext(FacesModel

Set.java:596)

at com.sun.rave.insync.models.FacesModelSet.findDesignContext(FacesModel

Set.java:592)

at com.sun.rave.jsfsupport.designtime.LoadBundleVariableResolver.resolve

Variable(LoadBundleVariableResolver.java:80)

at com.sun.faces.el.VariableResolverChainWrapper.getValue(VariableResolv

erChainWrapper.java:93)

at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:143)

at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELRe

solver.java:62)

at com.sun.el.parser.AstIdentifier.getValue(AstIdentifier.java:65)

at com.sun.el.parser.AstValue.getValue(AstValue.java:106)

at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:192)

at com.sun.faces.application.ValueBindingValueExpressionAdapter.getValue

(ValueBindingValueExpressionAdapter.java:102)

at javax.faces.component.ValueExpressionValueBindingAdapter.getValue(Val

ueExpressionValueBindingAdapter.java:73)

at javax.faces.component.UIOutput.getConverter(UIOutput.java:138)

at com.sun.webui.jsf.util.ConversionUtilities.convertValueToString(Conve

rsionUtilities.java:532)

at com.sun.webui.jsf.component.ListSelector.createListItem(ListSelector.

java:436)

at com.sun.webui.jsf.component.ListSelector.processOptions(ListSelector.

java:236)

at com.sun.webui.jsf.component.ListSelector.getListItems(ListSelector.ja

va:120)

at com.sun.webui.jsf.renderkit.html.ListRendererBase.renderList(ListRend

ererBase.java:376)

at com.sun.webui.jsf.renderkit.html.ListRendererBase.renderListComponent

(ListRendererBase.java:168)

at com.sun.webui.jsf.renderkit.html.ListboxRenderer.encodeEnd(ListboxRen

derer.java:70)

at com.sun.webui.jsf.renderkit.html.AbstractDesignTimeRenderer.encodeEnd

(AbstractDesignTimeRenderer.java:40)

at com.sun.webui.jsf.renderkit.html.SelectorDesignTimeRenderer.encodeEnd

(SelectorDesignTimeRenderer.java:131)

at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:

848)

at com.sun.rave.insync.faces.FacesPageUnit.renderBean(FacesPageUnit.java

:1312)

at com.sun.rave.insync.faces.FacesPageUnit.renderNode(FacesPageUnit.java

:1485)

at com.sun.rave.insync.faces.FacesPageUnit.renderNode(FacesPageUnit.java

:1499)

at com.sun.rave.insync.faces.FacesPageUnit.renderNode(FacesPageUnit.java

:1499)

at com.sun.rave.insync.faces.FacesPageUnit.renderNode(FacesPageUnit.java

:1499)

at com.sun.rave.insync.faces.FacesPageUnit.renderNode(FacesPageUnit.java

:1499)

at com.sun.rave.insync.faces.FacesPageUnit.renderNode(FacesPageUnit.java

:1499)

at com.sun.rave.insync.faces.FacesPageUnit.renderNode(FacesPageUnit.java

:1499)

at com.sun.rave.insync.faces.FacesPageUnit.renderNode(FacesPageUnit.java

:1499)

at com.sun.rave.insync.faces.FacesPageUnit.renderNode(FacesPageUnit.java

:1499)

at com.sun.rave.insync.faces.FacesPageUnit.renderBean(FacesPageUnit.java

:1299)

at com.sun.rave.insync.faces.FacesPageUnit.renderNode(FacesPageUnit.java

:1485)

at com.sun.rave.insync.faces.FacesPageUnit.renderBean(FacesPageUnit.java

:1299)

at com.sun.rave.insync.faces.FacesPageUnit.renderNode(FacesPageUnit.java

:1485)

at com.sun.rave.insync.faces.FacesPageUnit.renderBean(FacesPageUnit.java

:1299)

at com.sun.rave.insync.faces.FacesPageUnit.renderNode(FacesPageUnit.java

:1485)

at com.sun.rave.insync.faces.FacesPageUnit.renderBean(FacesPageUnit.java

:1299)

at com.sun.rave.insync.faces.FacesPageUnit.getFacesRenderTree(FacesPageU

nit.java:1069)

at com.sun.rave.insync.faces.FacesPageUnit.renderHtml(FacesPageUnit.java

:1607)

at com.sun.rave.insync.models.FacesModel.getHtmlDomFragment(FacesModel.j

ava:1554)

at com.sun.rave.insync.models.FacesModel.findHtmlBody(FacesModel.java:15

78)

at com.sun.rave.insync.models.FacesModel.getHtmlBody(FacesModel.java:156

6)

at com.sun.rave.designer.jsf.JsfForm.getHtmlBody(JsfForm.java:434)

at com.sun.rave.designer.WebForm.getHtmlBody(WebForm.java:863)

at com.sun.rave.designer.WebForm.getHtmlBody(WebForm.java:849)

at com.sun.rave.designer.DesignerPaneUI.resetPageBox(DesignerPaneUI.java

:582)

at com.sun.rave.designer.WebForm.modelRefreshed(WebForm.java:1484)

at com.sun.rave.designer.WebForm.access$200(WebForm.java:85)

at com.sun.rave.designer.WebForm$HtmlDomProviderListener.modelRefreshed(

WebForm.java:1804)

at com.sun.rave.designer.jsf.JsfForm.fireModelRefreshed(JsfForm.java:697

)

at com.sun.rave.designer.jsf.JsfForm.refreshModel(JsfForm.java:555)

at com.sun.rave.designer.jsf.RefreshServiceImpl.refreshDataObject(Refres

hServiceImpl.java:87)

at com.sun.rave.designer.jsf.RefreshServiceImpl.refreshFolder(RefreshSer

viceImpl.java:103)

at com.sun.rave.designer.jsf.RefreshServiceImpl.refreshProject(RefreshSe

rviceImpl.java:69)

at com.sun.rave.designer.jsf.JsfForm.refreshProject(JsfForm.java:565)

at com.sun.rave.designer.jsf.JsfForm.refreshDesignersInProject(JsfForm.j

ava:914)

at com.sun.rave.designer.jsf.DesignerServiceHackImpl$1$1.run(DesignerSer

viceHackImpl.java:890)

at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)

at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)

at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThre

ad.java:273)

at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.

java:183)

at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre

ad.java:173)

at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)

at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)

at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)

"MDR event dispatcher" daemon prio=2 tid=0x470de400 nid=0x2f0 in Object.wait() [

0x46cff000..0x46cffc94]

java.lang.Thread.State: WAITING (on object monitor)

at java.lang.Object.wait(Native Method)

- waiting on <0x06c9c510> (a java.util.LinkedList)

at java.lang.Object.wait(Object.java:485)

at org.netbeans.mdr.util.EventNotifier$EventsDelivery.run(EventNotifier.

java:263)

- locked <0x06c9c510> (a java.util.LinkedList)

at java.lang.Thread.run(Thread.java:619)

"AWT-Windows" daemon prio=6 tid=0x463a3000 nid=0x748 runnable [0x4688f000..0x468

8fc94]

java.lang.Thread.State: RUNNABLE

at sun.awt.windows.WToolkit.eventLoop(Native Method)

at sun.awt.windows.WToolkit.run(WToolkit.java:290)

at java.lang.Thread.run(Thread.java:619)

"AWT-Shutdown" prio=6 tid=0x463a2000 nid=0x102c in Object.wait() [0x4683f000..0x

4683fd14]

java.lang.Thread.State: WAITING (on object monitor)

at java.lang.Object.wait(Native Method)

- waiting on <0x06600708> (a java.lang.Object)

at java.lang.Object.wait(Object.java:485)

at sun.awt.AWTAutoShutdown.run(AWTAutoShutdown.java:259)

- locked <0x06600708> (a java.lang.Object)

at java.lang.Thread.run(Thread.java:619)

"Java2D Disposer" daemon prio=10 tid=0x460f1400 nid=0x1380 in Object.wait() [0x4

67ef000..0x467efd94]

java.lang.Thread.State: WAITING (on object monitor)

at java.lang.Object.wait(Native Method)

at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:116)

- locked <0x066007a0> (a java.lang.ref.ReferenceQueue$Lock)

at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:132)

at sun.java2d.Disposer.run(Disposer.java:125)

at java.lang.Thread.run(Thread.java:619)

"Timer-0" daemon prio=6 tid=0x45fc4800 nid=0xf74 in Object.wait() [0x4633f000..0

x4633fa14]

java.lang.Thread.State: TIMED_WAITING (on object monitor)

at java.lang.Object.wait(Native Method)

at java.util.TimerThread.mainLoop(Timer.java:509)

- locked <0x06600840> (a java.util.TaskQueue)

at java.util.TimerThread.run(Timer.java:462)

"CLI Requests Server" daemon prio=6 tid=0x45f3e800 nid=0xaa0 runnable [0x4629f00

0..0x4629fb14]

java.lang.Thread.State: RUNNABLE

at java.net.PlainSocketImpl.socketAccept(Native Method)

at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:384)

- locked <0x06600a98> (a java.net.SocksSocketImpl)

at java.net.ServerSocket.implAccept(ServerSocket.java:450)

at java.net.ServerSocket.accept(ServerSocket.java:421)

at org.netbeans.CLIHandler$Server.run(CLIHandler.java:867)

"Active Reference Queue Daemon" daemon prio=2 tid=0x45f68400 nid=0x146c in Objec

t.wait() [0x4617f000..0x4617fb94]

java.lang.Thread.State: WAITING (on object monitor)

at java.lang.Object.wait(Native Method)

at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:116)

- locked <0x06600c28> (a java.lang.ref.ReferenceQueue$Lock)

at org.openide.util.Utilities$ActiveQueue.run(Utilities.java:3002)

at java.lang.Thread.run(Thread.java:619)

"Low Memory Detector" daemon prio=6 tid=0x45c3dc00 nid=0x1148 runnable [0x000000

00..0x00000000]

java.lang.Thread.State: RUNNABLE

"CompilerThread0" daemon prio=10 tid=0x45c39c00 nid=0x17d0 waiting on condition

[0x00000000..0x45e8f998]

java.lang.Thread.State: RUNNABLE

"Attach Listener" daemon prio=10 tid=0x45c37c00 nid=0x1328 runnable [0x00000000.

.0x00000000]

java.lang.Thread.State: RUNNABLE

"Signal Dispatcher" daemon prio=10 tid=0x45c37000 nid=0x9cc waiting on condition

[0x00000000..0x00000000]

java.lang.Thread.State: RUNNABLE

"Finalizer" daemon prio=8 tid=0x45c27800 nid=0x818 in Object.wait() [0x45d9f000.

.0x45d9fa94]

java.lang.Thread.State: WAITING (on object monitor)

at java.lang.Object.wait(Native Method)

at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:116)

- locked <0x06600e80> (a java.lang.ref.ReferenceQueue$Lock)

at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:132)

at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:159)

"Reference Handler" daemon prio=10 tid=0x45c23400 nid=0xe9c in Object.wait() [0x

45d4f000..0x45d4fb14]

java.lang.Thread.State: WAITING (on object monitor)

at java.lang.Object.wait(Native Method)

at java.lang.Object.wait(Object.java:485)

at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:116)

- locked <0x06600850> (a java.lang.ref.Reference$Lock)

"VM Thread" prio=10 tid=0x45c20400 nid=0x17e0 runnable

"VM Periodic Task Thread" prio=10 tid=0x45c48400 nid=0x15ec waiting on condition

JNI global references: 3486

Heap

def new generationtotal 26816K, used 10637K [0x02990000, 0x046a0000, 0x06600

000)

eden space 23872K, 39% used [0x02990000, 0x032d02e8, 0x040e0000)

from space 2944K, 39% used [0x043c0000, 0x044e34e8, 0x046a0000)

tospace 2944K,0% used [0x040e0000, 0x040e0000, 0x043c0000)

tenured generationtotal 356924K, used 246365K [0x06600000, 0x1c28f000, 0x33b

90000)

the space 356924K, 69% used [0x06600000, 0x15697780, 0x15697800, 0x1c28f000)

compacting perm gen total 69888K, used 68841K [0x33b90000, 0x37fd0000, 0x43b90

000)

the space 69888K, 98% used [0x33b90000, 0x37eca768, 0x37eca800, 0x37fd0000)

No shared spaces configured.

jsra at 2007-7-8 2:04:00 > top of Java-index,Development Tools,Java Tools...