47668

GWT hosted mode very slow

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.

Answer1:

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

Answer2:

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.

Answer3:

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.

Answer4:

A few ideas:

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

Recommend

  • How to solve “fatal: relocations remain against allocatable but non-writable sections” while using J
  • Unity 5.1 Animator Controller not transitioning
  • Cross compiling Qt 5
  • Locating unmatched delimiters in Clojurescript
  • Defining a method whose return type is the singleton type of an argument of that method
  • How to get file download speed (transfer rate) with php?
  • Netezza Incremental load from Sql server using SSIS
  • Android application not restoring state when installed from .apk, works fine from eclipse
  • LNK1104: cannot open file 'kernel32.lib'
  • c++ search a vector for element first seen position
  • Is there any purpose for h2-h6 headings in HTML5?
  • Prevent page break in text block with iText, XMLWorker
  • Portable JRE on Linux - possible?
  • Python 3.2.2, error(scripts to exe)
  • NSIS decompiler
  • Python cosine function precision [duplicate]
  • HttpClient: disabling chunked encoding
  • Trying to get the char code of ENTER key
  • Problem while Building a Setup Project for a windows Service?
  • How to handle images sent by a mobile device?
  • Marklogic : Query response time is very high
  • iOS: Detect app start via notification press
  • How to delay loading a property with linq to sql external mapping?
  • Recording logins for password protected directories
  • formatting the colorbar ticklabels with SymLogNorm normalization in matplotlib
  • Pass value from viewmodel to script in zk
  • Sony Xperia Z Tablet not found by adb
  • Menu Color Fade on Hover with Jquery
  • Javascript convert timezone issue
  • Why is the timeout on a windows udp receive socket always 500ms longer than set by SO_RCVTIMEO?
  • Timeout for blocking function call, i.e., how to stop waiting for user input after X seconds?
  • Function pointer “assignment from incompatible pointer type” only when using vararg ellipsis
  • Matrix multiplication with MKL
  • Benchmarking RAM performance - UWP and C#
  • Hits per day in Google Big Query
  • How do you join a server to an Active Directory (domain)?
  • coudnt use logback because of log4j
  • File not found error Google Drive API
  • Converting MP3 duration time