GWT 1.6.4 with Smart GWT 1.1

Hallo everyone, mayeb you have experienced this behavviour and can give me some pointers.

I used the stock standard GWT webAppCreator command line tool on Windows.
Import the project into Eclipse

Test run using the generated ant in hosted mode and off course everthing starts-up and works OK.

I then include smartgwt.jar from the smargwt-1.1 distribution in the build path, and include the smartgwt inherits into the module.gwt.xml file, and add the isomorphicDir var in the module html file.

No other changes, only that

But then when I start hosted mode if takes (what feel like) forever to launch! Still the same application, still no changes to source code, only the includion of the 3 changes mentioned above (1) include the smartgwt.jar (2) add smartgwt inherit in module.gwt.xml and (3) add the isomorphicDir var in the module html file

It feels long may sound relative, but on my 4Gig ram dual core laptop it takes 4 - 5 minutes to launch after I included smartgwt changes.
Additionally after addid smartgwt changes my firewall indicates that javaw is trying to access the internet, it would almost seem that the hosted mode launch is getting a timeout, or rather is suspended untill it gets a network timeout of sorts?

Any help, guidance would be appreciated.

Cheers - Daniel Koch

do you use the enterprise theme? My apps which set the theme seem to take much longer to start in hosted mode than those that don’t.

Daniel,
Those startup times are way too much and its likely that your firewall software or antivirus is interfering. If you search this forum, you’ll see some other reports of slowdowns due to certain firewalls with overly strict rules or certain antivirus software.

It’s not that SmartGWT is trying to access the internet, the firewall is probably intercepting calls to http://localhost:8888 when running in hosted mode.

I’ve not been able to get to the root of what particular firewall or antivirus product / setting is causing this slowdown, but try temporarily turning off your firewall and / or antivirus setting to see if that helps. If it does, you can try selectively enabling it to narrow down the root cause.

Sanjiv

I think i found an issue in the gwt code.

In:
com.google.gwt.core.ext.linker.impl.StandardLinkerContext

it checks the lastmodifed time for the jar resource against the previously exploded resource:

      if (!outFile.exists()
          || (outFile.lastModified() <= artifact.getLastModified())) {
    	  
        Util.copy(artifactLogger, artifact.getContents(artifactLogger), outFile);
        outFile.setLastModified(artifact.getLastModified());
      }

The <= looks to me to be wrong. It shoud be “<”, so only updates if newer resource available. Currently re-exploding each time.

I’ve put a modifed class in my classpath, and the host mode startup time is much improved.

Going to see what the gwt people say.

Dear Sanjiv, thank you for the pointers.

After I disabled McAfee anti virus start up time was back to normal.

Cheers - Danie

Good to hear. Can you provide the details / settings of the McAfee anti-virus? I’d like to get to the root of what setting is causing this extreme slowdown.

Dear Sanjiv, McAfee has something called On Access Scan which is a real CPU killer.

Opening the McAfee Virus Scan Console, you can change the properties of On Access Scan, spesifically what to exclude.

I excluded .jar files and also my Eclipse workspace folder (including its subfolders)

I hope these pointers helps someone else that suffers similar problems.

Cheers - Daniel Koch