[fedora-java] Eclipse and JVM memory settings

Mario Torre neugens at limasoftware.net
Fri Sep 14 09:42:24 UTC 2007


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 at jabber.org
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/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Questa ? una parte del messaggio	firmata digitalmente
URL: <http://listman.redhat.com/archives/fedora-devel-java-list/attachments/20070914/d92794cd/attachment.sig>


More information about the fedora-devel-java-list mailing list