Very slow DevMode on Mac Leopard with GWT 2.0 RC2

27 views
Skip to first unread message

jvictor

unread,
Dec 3, 2009, 7:02:50 AM12/3/09
to Google Web Toolkit
Is anyone else experiencing *extremely* slow DevMode 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.

Chris Ramsdale

unread,
Dec 3, 2009, 11:36:01 AM12/3/09
to google-we...@googlegroups.com
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?  


--

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-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.



jvictor

unread,
Dec 3, 2009, 4:45:09 PM12/3/09
to Google Web Toolkit
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 <cramsd...@google.com> 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 <jeffvic...@gmail.com> wrote:
> > Is anyone else experiencing *extremely* slow DevMode 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 google-we...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-tool...@googlegroups.com<google-web-toolkit%2Bunsu...@googlegroups.com>
> > .

jd

unread,
Dec 4, 2009, 3:14:14 AM12/4/09
to Google Web Toolkit
I am also using Leopard and the "hang" is over a minute before
anything starts to happen.
> > > google-web-tool...@googlegroups.com<google-web-toolkit%2Bunsubs cr...@googlegroups.com>

jd

unread,
Dec 4, 2009, 3:45:10 AM12/4/09
to Google Web Toolkit
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 on http://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

keyvez

unread,
Dec 6, 2009, 7:33:26 PM12/6/09
to Google Web Toolkit
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 <jdpatter...@gmail.com> 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
> > > > > Is anyone else experiencing *extremely*slowDevMode on a mac?  I'm

jvictor

unread,
Dec 6, 2009, 7:45:14 PM12/6/09
to Google Web Toolkit
That's interesting to know that it is happening with Snow Leopard as
well. I was thinking about upgrading to Snow Leopard to see if that
would fix the problem.

I still have not found a solution to this problem, and as keyvez
noted, the issue is that a refresh takes the same amount of time as
the initial load.

I expect the initial load time to be relatively high (maybe 10 - 30
seconds depending on the module) but the subsequent refreshes are
usually fast (about 2 seconds).

Maybe this has something to do with DevMode not realizing that the
request being made is actually a "refresh request" and not an "initial
request"?

fmk11

unread,
Dec 6, 2009, 8:50:48 PM12/6/09
to Google Web Toolkit
Same thing here; I'm experiencing extremely slow reloads.
I'm using Firefox 3.5.5 on Snow Leopard. I also use and external Ruby
on Rails server on http://localhost:3000 so my complete URL looks
like:

http://localhost:3000/welcome/dashboard?gwt.codesvr=192.168.1.100:9997


... for what I read here this doesn't have anything to do with my
external RoR
server.


On Dec 6, 10:45 pm, jvictor <jeffvic...@gmail.com> wrote:
> That's interesting to know that it is happening with Snow Leopard as
> well.  I was thinking about upgrading to Snow Leopard to see if that
> would fix the problem.
>
> I still have not found a solution to this problem, and as keyvez
> noted, the issue is that a refresh takes the same amount of time as
> the initial load.
>
> I expect the initial load time to be relatively high (maybe 10 - 30
> seconds depending on the module) but the subsequent refreshes are
> usually fast (about 2 seconds).
>
> Maybe this has something to do with DevMode not realizing that the
> request being made is actually a "refresh request" and not an "initial
> request"?
>
> On Dec 7, 1:33 pm, keyvez <key...@gmail.com> wrote:
>
>
>
> > Hi,
>
> > I am experiencing reallyslowtimes (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), GWT2.0RC2and GPE 1.2RC2(tried RC1 for both of those too.
> > > > > withRC2on 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 <cramsd...@google.com> 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 <jeffvic...@gmail.com> 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 using2.0RC 2 and experience the problem using

keyvez

unread,
Dec 7, 2009, 5:28:35 AM12/7/09
to Google Web Toolkit
I solved my problem. My DNS settings didn't have my routers DNS only
the two google's DNS servers I added a few days ago. So if you are
experiencing the same problem, try the following:

http://localhost:8888/index.html?gwt.codesvr=localhost:9997
http://localhost:8888/index.html?gwt.codesvr=127.0.0.1:9997

check /etc/hosts or DNS settings in System Preferences.

Good luck.
Gaurav

jvictor

unread,
Dec 7, 2009, 6:02:56 AM12/7/09
to Google Web Toolkit
Thanks for figuring that out. Worked great for me. I simply added
the following line to /etc/hosts

192.168.1.4 localhost

where 192.168.1.4 is the static ip my computer is assigned by my
router.

Changing the url to localhost or 127.0.0.1 works as well if you don't
want to edit your hosts file.

On Dec 7, 11:28 pm, keyvez <key...@gmail.com> wrote:
> I solved my problem. My DNS settings didn't have my routers DNS only
> the two google's DNS servers I added a few days ago. So if you are
> experiencing the same problem, try the following:
>
> http://localhost:8888/index.html?gwt.codesvr=localhost:9997http://localhost:8888/index.html?gwt.codesvr=127.0.0.1:9997
Reply all
Reply to author
Forward
0 new messages