Out of memory; to increase the amount of memory, use the -Xmx flag at startup (java -Xmx128M)

996 views
Skip to first unread message

Sagar

unread,
May 27, 2009, 8:41:06 AM5/27/09
to Google Web Toolkit, sagar...@daffodilsw.com
Hello all,

I created a sample GWT application using GWT1.5. then i moved this
application to GWT 1.6 as instructed in the tutorial provided at the
google web toolkit. after finishing i am getting the error of

"Out of memory; to increase the amount of memory, use the -Xmx flag at
startup (java -Xmx128M) ".
I increased the heap size for eclipse to a maximum of enormous 1024MB
still the same error coming.

Kindly suggest..

Regards,
Sagar

alex.d

unread,
May 28, 2009, 2:31:45 AM5/28/09
to Google Web Toolkit
You should also increase the heap size for your application itself.
You can find it under "Run configurations"->Arguments->VM Arguments.
Set it to -Xmx512m - works fine for me.

Sagar

unread,
May 29, 2009, 2:09:13 AM5/29/09
to Google Web Toolkit
Thanks a lot Alex,

There was some memory leak problem with the Java collections I used..
its working fine now.

We should use parameterized collection as far as possible..

Regards,
Sagar

On May 28, 11:31 am, "alex.d" <alex.dukhov...@googlemail.com> wrote:
> You should also increase the heap size for your application itself.
> You can find it under "Run configurations"->Arguments->VM Arguments.
> Set it to -Xmx512m - works fine for me.
>

Bhumika Thaker

unread,
Jul 24, 2012, 2:48:23 AM7/24/12
to google-we...@googlegroups.com, Google Web Toolkit, sagarha...@gmail.com

>> why parameterized collection as far as possible..?
can u please elaboration this one.
Reply all
Reply to author
Forward
0 new messages