My WTP 2.0 can not start up with -Xmx1024m [message #196970] |
Mon, 23 July 2007 05: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 #197160 is a reply to message #197136] |
Tue, 24 July 2007 17:05   |
Eclipse User |
|
|
|
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 06: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 #197267 is a reply to message #197176] |
Wed, 25 July 2007 17:54  |
Eclipse User |
|
|
|
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.04908 seconds