Wednesday, September 15, 2010

GWT Hosted Mode Slow

I have a bit of a problem with GWT Hosted mode taking an awful long
time to launch my app - even just reloading the page (with the server
running and no code changes) takes forever.

The CPU is at 100% for a couple of minutes and as far as I can tell
none of my code executes (it's deep in the belly of some GWT code).
The few times I've managed to hit pause in the debugger, the offending
thread shows the stack trace below (the finer details may vary, but
it's always in getRootPanel):

My HTML is dead simple - a single table with two cells, so it's not
like there is a million IDs to look up, and I only call getRootPanel
once at the very beginning. I have never had this issue with other GWT
projects I've worked on, and can't for the life of me figure out
what's different this time (in fact I have another entry point in the
same project that works just fine).

Anyone have any ideas?

String.substring(int, int) line: not available
String.subSequence(int, int) line: not available
Pattern.split(CharSequence, int) line: not available
String.split(String, int) line: not available
String.split(String) line: not available
PathPrefixSet.includesResource(String) line: 237
ZipFileClassPathEntry.computeApplicableResources(TreeLogger,
PathPrefixSet) line: 146
ZipFileClassPathEntry.findApplicableResources(TreeLogger,
PathPrefixSet) line: 95
ResourceOracleImpl.refresh(TreeLogger) line: 351
ModuleDef.getResourcesOracle() line: 324
StandardGeneratorContext.getResourcesOracle() line: 386
CachedGeneratorContext.getResourcesOracle() line: 66
AbstractLocalizableImplCreator.generateConstantOrMessageClass(TreeLogger,
GeneratorContext, GwtLocale, JClassType) line: 97
LocalizableGenerator.generate(TreeLogger, GeneratorContext, String,
String) line: 121
LocaleInfoGenerator.generateOneLocale(TreeLogger, GeneratorContext,
LocalizableGenerator, String, Map<String,Set<GwtLocale>>, GwtLocale)
line: 309
LocaleInfoGenerator.generateConstantsLookup(TreeLogger,
GeneratorContext, SourceWriter, LocalizableGenerator, Set<GwtLocale>,
GwtLocale, String) line: 259
LocaleInfoGenerator.generate(TreeLogger, GeneratorContext, String)
line: 226
StandardGeneratorContext.runGenerator(TreeLogger, Class<Generator>,
String) line: 418
RuleGenerateWith.realize(TreeLogger, StandardGeneratorContext, String)
line: 38
StandardRebindOracle$Rebinder.tryRebind(TreeLogger, String) line: 108
StandardRebindOracle$Rebinder.rebind(TreeLogger, String,
ArtifactAcceptor) line: 54
StandardRebindOracle.rebind(TreeLogger, String, ArtifactAcceptor)
line: 154
ShellModuleSpaceHost.rebind(TreeLogger, String) line: 119
ModuleSpaceOOPHM(ModuleSpace).rebind(String) line: 531
ModuleSpaceOOPHM(ModuleSpace).rebindAndCreate(String) line: 414
GWTBridgeImpl.create(Class<?>) line: 39
GWT.create(Class<?>) line: 98
LocaleInfo.<clinit>() line: 36
RootPanel.get(String) line: 195

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment