GWT hosted mode very slow

懵懂的女人 提交于 2019-12-11 01:06:37

问题


We do have problems with GWT hosted mode running in Eclipse Ganymede (Windwos XP 3GB RAM). When we start our application in hosted mode it takes very long to start and also the transactions once the application is started are taking minutes to react. It seems as if it takes very long to communicate between Javascript and server.

The processor shows almost no load during this time. Even compiling and starting from an external browser does not help.

Strange is that we do have two other computers (one Windows XP one Linux) with exact the same setup where the hosted mode is working at normal speed without any problems for the same application.


回答1:


Do yourself a favour, move to GWT 2.0 (currently in RC2) and take advantage of Out Of Process Hosted Mode (OOPHM), which lets you debug straight in the browser, and is lightning fast!

http://code.google.com/p/google-web-toolkit/wiki/UsingOOPHM




回答2:


Try removing all breakpoints. It helped me in such a scenario. Apparently if you place breakpoints in critical points in the program, it can cause everything to grind to nearly a halt in hosted mode.




回答3:


I second the suggestion to switch to GWT 2. Please note, however, that with GWT 2, hosted mode is very slow in Chrome. I recently switched from 1.7 to 2.0 and found hosted mode to be very slow ... until I switched to Firefox. Reason for this is that Chrome's process model is not benificial to OOPHM, at least now.




回答4:


A few ideas:

  • Does the slow Windows box have a heavily fragmented hard-drive?
  • Is it a specific database query that's taking a long time once the application is running, or are all interactions slow?
  • Are the project files on a local filesystem?
  • Is the database on a local filesystem?
    • If so, does it have the same size data set as the other machines?
    • If not, are they on different subnets or have different bandwidth available?


来源:https://stackoverflow.com/questions/1822215/gwt-hosted-mode-very-slow

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!