Comment 0 for bug 83779

Revision history for this message
TJ (tj) wrote : vmargs in eclipse.ini ignored

Binary package hint: eclipse

vmargs specified in "/usr/lib/eclipse/eclipse.ini" are ignored when starting Eclipse using the shell script "/usr/bin/eclipse", although "inotifywait -m /usr/lib/eclipse/eclipse.ini" shows that eclipse.ini is opened during start-up.

vmargs in "/usr/lib/eclipse/eclipse.ini" are used when starting Eclipse from its launcher "/usr/lib/eclipse/eclipse". "inotifywait" verifies the same file operations are performed on eclipse.ini as in the non-working case.

JVM version is the same in both cases:

$ /usr/bin/java -version
java version "1.5.0_08"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_08-b03)
Java HotSpot(TM) Server VM (build 1.5.0_08-b03, mixed mode)

$ /usr/lib/jvm/java-1.5.0-sun/bin/java -version
java version "1.5.0_08"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_08-b03)
Java HotSpot(TM) Server VM (build 1.5.0_08-b03, mixed mode)

Here are the complete command lines from each method of starting Eclipse. They were collected using "ps -efly | grep eclipse" and then cleaned up to show one parameter per line:

Eclipse started via script "/usr/bin/eclipse":

/usr/lib/jvm/java-1.5.0-sun/bin/java
-Djava.library.path=/usr/lib/jni
-Dgnu.gcj.precompiled.db.path=/var/lib/gcj-4.1/classmap.db
-Dgnu.gcj.runtime.VMClassLoader.library_control=never
-Dosgi.locking=none
-jar /usr/lib/eclipse/startup.jar
-os linux
-ws gtk
-arch x86
-launcher /usr/lib/eclipse/eclipse
-name Eclipse
-showsplash 600
-exitdata 1178016
-install /usr/lib/eclipse
-vm /usr/lib/jvm/java-1.5.0-sun/bin/java
-vmargs
 -Djava.library.path=/usr/lib/jni
 -Dgnu.gcj.precompiled.db.path=/var/lib/gcj-4.1/classmap.db
 -Dgnu.gcj.runtime.VMClassLoader.library_control=never
 -Dosgi.locking=none
-jar /usr/lib/eclipse/startup.jar

Eclipse started via launcher "/usr/lib/eclipse/eclipse":

/usr/bin/java
-Xms40m
-Xmx512m
-jar /usr/lib/eclipse/./startup.jar
-os linux
-ws gtk
-arch x86
-launcher /usr/lib/eclipse/./eclipse
-name Eclipse
-showsplash 600
-exitdata 11a8016
-vm /usr/bin/java
-vmargs
 -Xms40m
 -Xmx512m
-jar /usr/lib/eclipse/./startup.jar