GWT is slow in Development Mode

2019-04-03 03:41发布

I'm using Eclipse Galileo with latest GWT 2.0 version in development mode, but it runs really slow (I need to wait about a minute to open one page, but after compilation, my application works very well when I run it using Tomcat 5.5).

My code is not too heavy and I guess there is an OS-related or software inconsistency problem, because I'd this problem before, but when I reinstalled Windows Vista SP2 (I formatted my Windows drive and reinstalled it), my problem was resolved for a few days and then again it became too slow.

I didn't install any special software on my Windows machine, so I really don't know why this problem occurs. Any suggestion ?

7条回答
劫难
2楼-- · 2019-04-03 04:13

If you're using smartgwt make sure firebug or similar is disabled. That will really slow down your browser in dev mode.

And as far as NetBeans is concerned there really is a plugin for GWT called GWT4NB. But the IDE is not your problem :)

查看更多
做自己的国王
3楼-- · 2019-04-03 04:16

If it has become unusually slow, but was faster previously, and you are debugging, that might be because you have a breakpoint set on a method entry. This can make things extremely slow, even if the breakpoint is not hit. Try clearing your breakpoints.

查看更多
爷的心禁止访问
4楼-- · 2019-04-03 04:16

Delete gwt cache from temporary folders like images. rpc files..etc. than see the performance. it is one of the cause to slow in hosted mode.

查看更多
SAY GOODBYE
5楼-- · 2019-04-03 04:16

Even I had the same issue with GWT. I've started testing with firefox now. first time when I ran the debug on firefox, it was slow.

I set the log level to 'info' in the runconfig > gwt tab

So, I restrated my workspace and the firefox. Then 'debug >myGWTapplication '

When you open your application on debug mode, wait for the browser plugin to connect now.

This time it does not write all the log lines in the development mode, and it is faster.

I think the firefox and the logging has made the differance. Now I do not see much lag.

Also as mentioned in the above comments, remove the debug points, i've removed all, and use then when necessary.

Edit: tried it on the IE8 - it is fast event there.

查看更多
淡お忘
6楼-- · 2019-04-03 04:26

I had similar kind of issue and I found that it was happening because of number of break points. After reducing number of break points performance got improved.

查看更多
兄弟一词,经得起流年.
7楼-- · 2019-04-03 04:29

First time you load the page, it loads all the necessary javacode (and the JVM). Later, each refresh of the page will only loads the changed javacode then execute the whole (I might be wrong though). So if you're closing the browser then reopening your page each time you want to see the changes you made, yes it's going to be slow. If you refresh the page each time, it SHOULD be fast (if the changes you made weren't huge).

Eclipse + GWT 2.0 is not the reason why it's slow... (by the way Shubhkarman, if I'm correct there is no GWT plugin for netbeans...)

查看更多
登录 后发表回答