Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » My WTP 2.0 can not start up with -Xmx1024m
My WTP 2.0 can not start up with -Xmx1024m [message #196970] Mon, 23 July 2007 09:42 Go to next message
Eclipse UserFriend
Originally posted by: wjfang.gmail.com

Hello,

I downloaded WTP 2.0 using the wtp-all-in-one-sdk-win32. But it can not
start with the Java argument
-Xmx1024m.

More information:
1. WTP 2.0 can start with a smaller maximum heap, e.g., -Xmx768m.
2. My other Java program, e.g., Tomcat, can start up with -Xmx1024m.
3. There is no error message in .log file.
4. I am using jdk 1.6.0_01.

Has anyone also met this?

Thanks in advance!

Weijian
Re: My WTP 2.0 can not start up with -Xmx1024m [message #197061 is a reply to message #196970] Mon, 23 July 2007 19:36 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 2342
Registered: July 2009
Senior Member
Weijian wrote:
> I downloaded WTP 2.0 using the wtp-all-in-one-sdk-win32. But it can not
> start with the Java argument
> -Xmx1024m.
>
> More information:
> 1. WTP 2.0 can start with a smaller maximum heap, e.g., -Xmx768m.
> 2. My other Java program, e.g., Tomcat, can start up with -Xmx1024m.
> 3. There is no error message in .log file.
> 4. I am using jdk 1.6.0_01.
>
> Has anyone also met this?
>
> Thanks in advance!

What's the full command line you're using to start it? Have you
modified the eclipse.ini file somehow?

--
Nitin Dahyabhai
Structured Source Editor


---
Nitin Dahyabhai
Eclipse WTP, IBM
Re: My WTP 2.0 can not start up with -Xmx1024m [message #197136 is a reply to message #197061] Tue, 24 July 2007 18:23 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: wjfang.gmail.com

> What's the full command line you're using to start it? Have you

C:\eclipse\eclipse.exe -vmargs -Xmx1024M -XX:MaxPermSize=256M

> modified the eclipse.ini file somehow?
>
No.

I attached the exit dialog.

Cheers,

Weijian


  • Attachment: exit.PNG
    (Size: 15.83KB, Downloaded 78 times)
Re: My WTP 2.0 can not start up with -Xmx1024m [message #197160 is a reply to message #197136] Tue, 24 July 2007 21:05 Go to previous messageGo to next message
David Williams is currently offline David WilliamsFriend
Messages: 701
Registered: July 2009
Senior Member
On Tue, 24 Jul 2007 14:23:25 -0400, Weijian <wjfang@gmail.com> wrote:

>> What's the full command line you're using to start it? Have you
>
> C:\eclipse\eclipse.exe -vmargs -Xmx1024M -XX:MaxPermSize=3D256M
>

What physical memory do you have on your machine? I did a little experim=
ent,
and I confirmed your command line worked on my machine, but then I kept =
increasing max heap,
and found if it got large enough then I'd see the same VM startup error.=
In my case,
I have 2G of memory on my machine, so sort of makes sense my machine mig=
ht handle 1G, but not 1.5G or 2G.
So ... if you only have 1G, or 1.5? then that might explain it.
Re: My WTP 2.0 can not start up with -Xmx1024m [message #197176 is a reply to message #197160] Wed, 25 July 2007 10:06 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: wjfang.gmail.com

I also got 2G physical memory.

And you see on my computer Tomcat can run with "-Xmx1024m" with no problem.
So the JVM is happy with "-Xmx1024m". It seems it is Eclipse that is not
happy with it. Does eclipse have its own memory management system, which
does some analysis on start-up and somehow goes to a conclusion that
"-Xmx1024m" is not a proper setting on my computer?

"David Williams" <david_williams@us.ibm.com> wrote in message
news:op.tvzl771hac05ss@dmw2t23.ibm.com...
On Tue, 24 Jul 2007 14:23:25 -0400, Weijian <wjfang@gmail.com> wrote:

>> What's the full command line you're using to start it? Have you
>
> C:\eclipse\eclipse.exe -vmargs -Xmx1024M -XX:MaxPermSize=256M
>

What physical memory do you have on your machine? I did a little experiment,
and I confirmed your command line worked on my machine, but then I kept
increasing max heap,
and found if it got large enough then I'd see the same VM startup error. In
my case,
I have 2G of memory on my machine, so sort of makes sense my machine might
handle 1G, but not 1.5G or 2G.
So ... if you only have 1G, or 1.5? then that might explain it.
Re: My WTP 2.0 can not start up with -Xmx1024m [message #197222 is a reply to message #197176] Wed, 25 July 2007 13:50 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: kosta.bea.com

I've seen this behavior myself, but I never tried to get to the bottom
of it. This is not the best news group to reach people who know this
piece of Eclipse. I suggest re-posting on the Eclipse Platform news group.

- Konstantin
Re: My WTP 2.0 can not start up with -Xmx1024m [message #197236 is a reply to message #197222] Wed, 25 July 2007 14:26 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: wjfang.gmail.com

Hi, Konstantin,

Does the eclipse platform you saw with this behavior contain WTP?


"Konstantin Komissarchik" <kosta@bea.com> wrote in message
news:f87kee$g0p$1@build.eclipse.org...
> I've seen this behavior myself, but I never tried to get to the bottom of
> it. This is not the best news group to reach people who know this piece of
> Eclipse. I suggest re-posting on the Eclipse Platform news group.
>
> - Konstantin
Re: My WTP 2.0 can not start up with -Xmx1024m [message #197244 is a reply to message #197236] Wed, 25 July 2007 14:35 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: kosta.bea.com

I've seen it both ways. The eclipse launcher that you are having
problems with is not specific to WTP and would not be affected by it.

- Konstantin
Re: My WTP 2.0 can not start up with -Xmx1024m [message #197267 is a reply to message #197176] Wed, 25 July 2007 21:54 Go to previous message
David Williams is currently offline David WilliamsFriend
Messages: 701
Registered: July 2009
Senior Member
On Wed, 25 Jul 2007 06:06:16 -0400, Weijian <wjfang@gmail.com> wrote:

> I also got 2G physical memory.
>
> And you see on my computer Tomcat can run with "-Xmx1024m" with no pro=
blem.
> So the JVM is happy with "-Xmx1024m". It seems it is Eclipse that is n=
ot
> happy with it. Does eclipse have its own memory management system, whi=
ch
> does some analysis on start-up and somehow goes to a conclusion that
> "-Xmx1024m" is not a proper setting on my computer?
>

Yes, probably ... but, is probably still a bug, and could ask on platorm=
newsgroup as
Konstantin suggests (or open a bug, if you can demononstrate "raw" java =
command works, but
eclipse.exe does not).

I peeked in some of the launcher code, and saw

static void adjustVMArgs( _TCHAR *vm, _TCHAR **vmArgv[] ) {
/* Sun VMs need some extra perm gen space */
if (isSunVM(vm) && permGen !=3D NULL) {


And, that was all the C code I wanted to read :)
Previous Topic:load a report library through a JavaScript handler
Next Topic:Eclipse 3.2.2 and Axis
Goto Forum:
  


Current Time: Mon Dec 22 03:44:59 GMT 2014

Powered by FUDForum. Page generated in 0.03049 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software