Re: Eclipse and JVM memory settings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Il giorno gio, 13/09/2007 alle 16.33 -0400, Andrew Overholt ha scritto:

> I spoke briefly with Andrew Niefer and a few other people on IRC and
> here are a few options for fixing the launcher to work with the -XX
> options in both the Sun VM and non-Sun VM cases:
> 
>   1. try starting the VM using the invocation api (using libjvm.so) with
>      the PermSize argument and see if it fails - if it does, launch
>      without the option.  This may add some startup delay to VMs that
>      don't support this option.  This was suggested in the eclipse.org
>      bug I link to above.
> 
>   2. look for a jre/LICENSE text file and seeing if it starts with "Sun
>      Microsystems".  Andrew Niefer suggested this option.

Ciao!

I don't know the M$ API and only the fact to have to look at the
Microsoft Developer Network gives me feels of having done something
really nasty in my previous life :), but this seems to me what the
isSunVM() does in the windows launcher, only it uses the windows
registry to get information about the installed VM.

Now, I think that parsing the jre/LICENSE file could give a good guess
about the VM we are using.

The alternative to the invocation API could be to hack around
"buildCommandLine" or "launchJavaVM" (but I don't know the order these
functions are called, so this may be too late), calling a small app that
tell us java.vendor, and go on with the result of this query. That would
solve for every other java provider, not only Sun, but at the cost of
having a small "pathfinder" application added to eclipse...

Mario
-- 
Lima Software - http://www.limasoftware.net/
GNU Classpath Developer - http://www.classpath.org/
Fedora Ambassador - http://fedoraproject.org/wiki/MarioTorre
Jabber: neugens@xxxxxxxxxx
pgp key: http://subkeys.pgp.net/ PGP Key ID: 80F240CF
Fingerprint: BA39 9666 94EC 8B73 27FA  FC7C 4086 63E3 80F2 40CF

Please, support open standards:
http://opendocumentfellowship.org/petition/
http://www.nosoftwarepatents.com/

Attachment: signature.asc
Description: Questa =?ISO-8859-1?Q?=E8?= una parte del messaggio firmata digitalmente

--
fedora-devel-java-list mailing list
fedora-devel-java-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-devel-java-list

[Index of Archives]     [Red Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux