Hi,

I am experiencing really slow times (30-40 seconds) when I refresh the
page on safari or firefox. It almost seems to recompile the full app
every single time I hit refresh. I don't even change anything, and
this the app you get when you create new Web App in eclipse. Meanwhile
the browser hangs like it's supposed to when making a synchronous
server request.

Specs: Eclipse 3.5, Mac OS 10.6, Java 6 64-bit (tried with 32-bit 5
and 6), GWT 2.0 RC2 and GPE 1.2 RC2 (tried RC1 for both of those too.

And running it with the -Dgwt=perflog=true VM argument I receive this:

perf? OophmSessionHandler?.loadModule Main 838ms

perf? ModuleDef?.refresh 35ms
perf? ResourceOracleImpl?.refresh 1ms
perf? ResourceOracleImpl?.refresh 23ms
perf? ResourceOracleImpl?.refresh 9ms
perf? TypeOracleMediator?.addNewUnits 165ms
perf? ModuleSpace?.onLoad 511ms
perf? Generator 'com.google.gwt.uibinder.rebind.UiBinderGenerator?'
produced 'com.company.mypackage.web.client.Application.Binder' 21ms
perf? TypeOracleMediator?.addNewUnits 0ms
perf? Generator
'com.google.gwt.resources.rebind.context.InlineClientBundleGenerator?'
produced
'com.company.mypackage.web.client.Application_BinderImpl_GenBundle?'
4ms
perf? TypeOracleMediator?.addNewUnits 0ms
perf? Generator 'com.google.gwt.i18n.rebind.LocaleInfoGenerator?'
produced 'com.google.gwt.i18n.client.impl.LocaleInfoImpl?' 14ms
perf? TypeOracleMediator?.addNewUnits 0ms
perf? Generator 'com.google.gwt.i18n.rebind.LocalizableGenerator?'
produced 'com.google.gwt.i18n.client.impl.CldrImpl?' 0ms

Which doesn't tell me where the 30-40 seconds are being spent.

Any help would be greatly appreciated.

Thanks,
Gaurav

On Dec 4, 12:45 am, jd <[email protected]> wrote:
> Also, the slowdown for me seems to be across the board.
>
> Right now my CPU is very high and the busy thread is doing this:
>
> Daemon Thread [Code server for rooms from Mozilla/5.0 (Macintosh; U;
> Intel Mac OS X 10.5; en-US; rv:1.9.0.15) Gecko/2009101600 Firefox/
> 3.0.15 onhttp://localhost:8888/?gwt.codesvr=localhost:9997
> @ :twjO<"N0ofi:u+0] (Suspended)
>         Thread.currentThread() line: not available [native method]
>         ThreadLocal<T>.get() line: 124
>         StringCoding.deref(ThreadLocal) line: 49
>         StringCoding.encode(String, char[], int, int) line: 361
>         String.getBytes(String) line: 812
>         BrowserChannel.writeUtf8String(DataOutputStream, String) line: 1583
>         BrowserChannel$InvokeOnClientMessage.send() line: 866
>         BrowserChannelServer.invokeJavascript(CompilingClassLoader,
> JsValueOOPHM, String, JsValueOOPHM[], JsValueOOPHM) line: 164
>         ModuleSpaceOOPHM.doInvoke(String, Object, Class<?>[], Object[]) line:
> 120
>         ModuleSpaceOOPHM(ModuleSpace).invokeNative(String, Object, Class<?>
> [], Object[]) line: 507
>         ModuleSpaceOOPHM(ModuleSpace).invokeNativeInt(String, Object, Class<?>
> [], Object[]) line: 240
>         JavaScriptHost.invokeNativeInt(String, Object, Class<?>[], Object[])
> line: 75
>         Element$.getPropertyInt$(Element, String) line: not available
>         ResizableWidgetCollection.checkWidgetSize() line: 216
>         ResizableWidgetCollection$1.run() line: 125
>         ResizableWidgetCollection$1(Timer).fire() line: 141
>         GeneratedMethodAccessor36.invoke(Object, Object[]) line: not
> available
>         DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: 25
>         Method.invoke(Object, Object...) line: 592
>         MethodAdaptor.invoke(Object, Object...) line: 103
>         MethodDispatch.invoke(JsValue, JsValue[], JsValue) line: 71
>         OophmSessionHandler.invoke(BrowserChannel, BrowserChannel$Value, int,
> BrowserChannel$Value[]) line: 157
>         BrowserChannelServer
> (BrowserChannel).reactToMessagesWhileWaitingForReturn(BrowserChannel
> $SessionHandler) line: 1713
>         BrowserChannelServer.invokeJavascript(CompilingClassLoader,
> JsValueOOPHM, String, JsValueOOPHM[], JsValueOOPHM) line: 165
>         ModuleSpaceOOPHM.doInvoke(String, Object, Class<?>[], Object[]) line:
> 120
>         ModuleSpaceOOPHM(ModuleSpace).invokeNative(String, Object, Class<?>
> [], Object[]) line: 507
>         ModuleSpaceOOPHM(ModuleSpace).invokeNativeObject(String, Object,
> Class<?>[], Object[]) line: 264
>         JavaScriptHost.invokeNativeObject(String, Object, Class<?>[], Object
> []) line: 91
>         Impl.apply(Object, Object, Object) line: not available
>         Impl.entry0(Object, Object, Object) line: 188
>         GeneratedMethodAccessor29.invoke(Object, Object[]) line: not
> available
>         DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: 25
>         Method.invoke(Object, Object...) line: 592
>         MethodAdaptor.invoke(Object, Object...) line: 103
>         MethodDispatch.invoke(JsValue, JsValue[], JsValue) line: 71
>         OophmSessionHandler.invoke(BrowserChannel, BrowserChannel$Value, int,
> BrowserChannel$Value[]) line: 157
>         BrowserChannelServer(BrowserChannel).reactToMessages(BrowserChannel
> $SessionHandler) line: 1668
>         BrowserChannelServer.processConnection() line: 401
>         BrowserChannelServer.run() line: 222
>         Thread.run() line: 613
>
> On Dec 4, 3:14 pm, jd <[email protected]> wrote:
>
>
>
> > I am also using Leopard and the "hang" is over a minute before
> > anything starts to happen.
>
> > On Dec 4, 4:45 am, jvictor <[email protected]> wrote:
>
> > > DevMode starts up quickly as you would expect inside the new eclipse
> > > console window and I receive the url to copy and paste into the
> > > browser.  The issue occurs as soon as I connect to DevMode from any
> > > browser.  Specifically, the browser seems to "hang" for about 20
> > > seconds and will then come back to life and my app performs normally
> > > from that point on.  If I do a reload of the browser I experience the
> > > same "hanging" for the same duration.  I have looked at the system
> > > activity monitor during this time and a java process is consuming all
> > > cpu.  Once the "hanging" is over, the java process returns to normal
> > > usage.
>
> > > I experience this issue with several different modules / projects
> > > including the default skeleton application created by GWT.
>
> > > At work I use a vanilla Ubuntu 9.04 installation and my experience
> > > with RC2 on that machine has shown that DevMode is very fast.
> > > Therefore, I suspect this has something to do with macs and java.
>
> > > On Dec 4, 5:36 am, Chris Ramsdale <[email protected]> wrote:
>
> > > > Where are you seeing the slowness? Is it confined to initial module 
> > > > load (of
> > > > a specific app maybe) or are you experiencing speed degradation across 
> > > > the
> > > > board?
>
> > > > On Thu, Dec 3, 2009 at 7:02 AM, jvictor <[email protected]> wrote:
> > > > > Is anyone else experiencing *extremely*slowDevMode on a mac?  I'm
> > > > > using Leopard 10.5.8 with all of the updates and running DevMode with
> > > > > 64 bit Java 6.  I experience the same slowness when using 32 bit Java
> > > > > 5 as well.  I'm using 2.0 RC 2 and experience the problem using
> > > > > firefox 3.5.5 and safari.
>
> > > > > --
>
> > > > > You received this message because you are subscribed to the Google 
> > > > > Groups
> > > > > "Google Web Toolkit" group.
> > > > > To post to this group, send email to 
> > > > > [email protected].
> > > > > To unsubscribe from this group, send email to
> > > > > [email protected]<google-web-toolkit%2Bunsubs
> > > > >  [email protected]>
> > > > > .
> > > > > For more options, visit this group at
> > > > >http://groups.google.com/group/google-web-toolkit?hl=en.

--

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


Reply via email to