My WTP 2.0 can not start up with -Xmx1024m [message #196970] |
Mon, 23 July 2007 09:42 |
Eclipse User |
|
|
|
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 |
|
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 Web Tools Platform
|
|
|
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 |
Eclipse User |
|
|
|
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 238 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 |
David Williams Messages: 722 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 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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 #197267 is a reply to message #197176] |
Wed, 25 July 2007 21:54 |
David Williams Messages: 722 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 :)
|
|
|
Powered by
FUDForum. Page generated in 0.02531 seconds