[Bug 463807] New: eclipse crashes because java vmargs are overwritten
https://bugzilla.novell.com/show_bug.cgi?id=463807 User funtasyspace@yahoo.com added comment https://bugzilla.novell.com/show_bug.cgi?id=463807#c307488 Summary: eclipse crashes because java vmargs are overwritten Product: openSUSE 11.1 Version: Final Platform: Other OS/Version: openSUSE 11.1 Status: NEW Severity: Critical Priority: P5 - None Component: Java AssignedTo: bnc-team-java@forge.provo.novell.com ReportedBy: funtasyspace@yahoo.com QAContact: qa@suse.de CC: hmuelle@novell.com, felix@derklecks.de, anosek@novell.com, scottolcott@gmail.com, rob@hasselbaum.net Found By: --- * I don't know if this is a regression of bug #307488 or related to it, so I opened a new one. * I was wondering why I permanently get those 'java.lang.OutOfMemoryError: PermGen space' errors resulting in eclipse crashing when running eclipse on openSUSE 11.1. Allthough I modified '/etc/eclipse.conf' and added '-XX:MaxPermSize=256M' to the VM_ARGS this doesn't seem to have any effect. Investigating in a running eclipse 'Help > About Eclipse SDK > Configuration Details' shows the problem: *** System properties: .. -vm /usr/lib64/jvm/java/bin/java -vmargs -Xms256m -Xmx1024m -XX:MaxPermSize=256M -vm /usr/bin/java eclipse.ee.install.verify=false eclipse.home.location=file:/usr/lib64/eclipse/ eclipse.launcher=/usr/lib64/eclipse/eclipse eclipse.product=org.eclipse.sdk.ide eclipse.startTime=1231249746644 eclipse.vm=/usr/bin/java eclipse.vmargs=-jar /usr/share/eclipse/./plugins/org.eclipse.equinox.launcher_1.0.100.v20080509-1800.jar .. As you can see 'eclipse.vmargs' is empty, although the '-vmargs -Xms256m -Xmx1024m -XX:MaxPermSize=256M' was passed. Looking at the running processes reveals: # less /etc/eclipse.conf linux:/home/user1 # ps aux | grep java user1 14211 0.0 0.0 12476 1552 pts/13 S+ 14:49 0:00 /bin/bash /usr/share/eclipse/eclipse -vm /usr/lib64/jvm/java/bin/java -vmargs -Xms256m -Xmx1024m -XX:MaxPermSize=256M user1 14212 0.0 0.0 10372 892 pts/13 S+ 14:49 0:00 /usr/share/eclipse/eclipse.bin -startup /usr/share/eclipse/./plugins/org.eclipse.equinox.launcher_1.0.100.v20080509-1800.jar -vm /usr/lib64/jvm/java/bin/java -vmargs -Xms256m -Xmx1024m -XX:MaxPermSize=256M user1 14213 89.0 7.8 1191804 242652 pts/13 Sl+ 14:49 0:09 /usr/bin/java -jar /usr/share/eclipse/./plugins/org.eclipse.equinox.launcher_1.0.100.v20080509-1800.jar -os linux -ws gtk -arch x86_64 -showsplash -launcher /usr/lib64/eclipse/eclipse -name Eclipse --launcher.library /usr/lib64/eclipse/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.0.100.v20080606/eclipse_1114b.so -startup /usr/share/eclipse/./plugins/org.eclipse.equinox.launcher_1.0.100.v20080509-1800.jar -exitdata 4b0005 -vm /usr/lib64/jvm/java/bin/java -vmargs -Xms256m -Xmx1024m -XX:MaxPermSize=256M -vm /usr/bin/java -vmargs -jar /usr/share/eclipse/./plugins/org.eclipse.equinox.launcher_1.0.100.v20080509-1800.jar Notice in the last process call, that there is an additional '-vm /usr/bin/java -vmargs' which probably overrides the previous '-vm /usr/lib64/jvm/java/bin/java -vmargs -Xms256m -Xmx1024m -XX:MaxPermSize=256M'. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=463807 User meissner@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=463807#c1 Marcus Meissner <meissner@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |meissner@novell.com Status|NEW |NEEDINFO Info Provider| |funtasyspace@yahoo.com --- Comment #1 from Marcus Meissner <meissner@novell.com> 2009-01-06 15:50:10 MST --- did you install yesterdays java security updates? rpm -q java-1_5_0-sun java-1_6_0-sun -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=463807 User funtasyspace@yahoo.com added comment https://bugzilla.novell.com/show_bug.cgi?id=463807#c2 --- Comment #2 from Jörg Hermsdorf <funtasyspace@yahoo.com> 2009-01-07 01:52:38 MST ---
# rpm -q java-1_5_0-sun java-1_6_0-sun java-1_5_0-sun-1.5.0_update17-1.1 java-1_6_0-sun-1.6.0.u11-1.1
Yes, but I experienced the 'java.lang.OutOfMemoryError: PermGen space' errors before that update with the OpenJDK 1.6.0-b12 version too. If I start eclipse from command line by hand while removing the additionally and wrongly added '-vm /usr/bin/java -vmargs' like below, it works fine: # /usr/bin/java -jar /usr/share/eclipse/./plugins/org.eclipse.equinox.launcher_1.0.100.v20080509-1800.jar -os linux -ws gtk -arch x86_64 -showsplash -launcher /usr/lib64/eclipse/eclipse -name Eclipse --launcher.library /usr/lib64/eclipse/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.0.100.v20080606/eclipse_1114b.so -startup /usr/share/eclipse/./plugins/org.eclipse.equinox.launcher_1.0.100.v20080509-1800.jar -exitdata 4b0005 -vm /usr/lib64/jvm/java/bin/java -vmargs -Xms256m -Xmx1024m -XX:MaxPermSize=256M -jar /usr/share/eclipse/./plugins/org.eclipse.equinox.launcher_1.0.100.v20080509-1800.jar -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=463807 Jörg Hermsdorf <funtasyspace@yahoo.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED Info Provider|funtasyspace@yahoo.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=463807 User mvyskocil@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=463807#c3 Michal Vyskocil <mvyskocil@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mvyskocil@novell.com --- Comment #3 from Michal Vyskocil <mvyskocil@novell.com> 2009-01-07 09:50:12 MST --- Seems to jpackage script /usr/bin/eclipse is broken, or don't work with current eclipse binary. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=463807 User mvyskocil@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=463807#c4 Michal Vyskocil <mvyskocil@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P2 - High --- Comment #4 from Michal Vyskocil <mvyskocil@novell.com> 2009-01-08 01:04:21 MST --- It is easy fix this crash. Just remove all quotes from last command in /usr/bin/eclipse, because it causes in a wrong argument passing (concatenate of several arguments to one). With launch command /usr/share/eclipse/eclipse $ECLIPSE_OPTS $@ $VM_OPTS works perfectly. The arguments are read from /etc/eclipse.conf and ~/.eclipserc or can be overriden via command line. For example: $ cat /etc/eclipse.conf # The directory where to find the workspace by default. USER_DIR="$HOME/.eclipse" # The JVM to use. If you have jpackage-utils installed, you shouldn't set this. #JAVACMD="" # Arguments to pass to the JVM. VM_ARGS="-XX:MaxPermSize=512M -Xms512m -Xmx1024m" $ eclipse -vm /usr/lib64/jvm/java-1.6.0-sun-1.6.0.u11/jre/bin/java -vmargs -XX:MaxPermSize=256M -Xms256m -Xmx2048m will causes in eclipse.vm=/usr/lib64/jvm/java-1.6.0-sun-1.6.0.u11/jre/bin/java eclipse.vmargs=-XX:MaxPermSize=256M -Xms256m -Xmx2048m -jar and a run without arguments use the values from eclipse.conf $ eclipse eclipse.vm=/usr/lib64/jvm/java/bin/java eclipse.vmargs=-XX:MaxPermSize=512M -Xms512m -Xmx1024m I'll try to release a fix for this bug together with a serious problem with Updates (bnc#436894), which wasn't fixed in 11.1 ... -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=463807 User mvyskocil@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=463807#c5 --- Comment #5 from Michal Vyskocil <mvyskocil@novell.com> 2009-01-23 07:02:00 MST --- JFI: fix for this bug was submitted to SLE11 and Factory -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=463807 User funtasyspace@yahoo.com added comment https://bugzilla.novell.com/show_bug.cgi?id=463807#c6 --- Comment #6 from Jörg Hermsdorf <funtasyspace@yahoo.com> 2009-02-12 01:55:35 MST --- What about openSUSE 11.1? Will there be a fix for it too? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com