LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Eclipse starts complaining about option MaxPermSize (https://www.linuxquestions.org/questions/programming-9/eclipse-starts-complaining-about-option-maxpermsize-4175626862/)

bkelly 04-02-2018 12:34 PM

Eclipse starts complaining about option MaxPermSize
 
Novice level. Ubuntu 16.04 Eclipse Helios Service Release 2
I have Eclipse loaded and configured for C++. Open a terminal windows, cd to the appropriate directory and enter: ./eclipse
The command line shows this:
Quote:

OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0.
Eclipse does start and appears to be normal.
There are no options on the command line. Go to Window -> Preferences -> Run/Debug -> Launching to find startup options. There is nothing there that looks like MaxPermSize.

I could ignore this but there may be other options getting set that I don't know about and may cause problems.

Where is this option being set and how can it be eliminated? Should it be eliminated?

norobro 04-02-2018 03:31 PM

There is a good discussion about the warning here: https://stackoverflow.com/questions/...xpermsize-350m

I don't normally run Ubuntu or use eclipse but I do have 17.10 installed on a partition. Commenting out two lines in /etc/eclipse.ini got rid of the warning:
Code:

$ cat /etc/eclipse.ini
-startup
plugins/org.eclipse.equinox.launcher_1.3.0.dist.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.dist
-showsplash
org.eclipse.platform
#--launcher.XXMaxPermSize
#256m

--launcher.defaultAction
openFile
-vmargs
-Xms40m
-Xmx384m
-Dorg.eclipse.equinox.p2.reconciler.dropins.directory=/usr/share/eclipse/dropins


bkelly 04-05-2018 10:46 AM

norobro: I found that file and it had exactly those two lines so I commented them out. When starting from the command line it has the same error message.
I think I have a version of Eclipse that is just an untar and run version. I did not know that when it was download. It resides here:

Quote:

/home/esir-dev/Eclipse/eclipse
Might that be contributing to the problem?

norobro 04-05-2018 06:27 PM

Quote:

Originally Posted by bkelly (Post 5839691)
Might that be contributing to the problem?

Possibly. The package manager installed the eclipse excutable in "/usr/lib/eclipse". There is a symlink in that directory pointing at "/etc/eclipse.ini". You might check in "/home/esir-dev/Eclipse/" for an "eclipse.ini" file or if there is a symlink check to see where it is pointing.

After my last post I upgraded to Ubuntu 18.04 and now have run into the following bug which doesn't seem to be receiving any attention from the Debian devs. https://bugs.debian.org/cgi-bin/bugr...cgi?bug=891956


All times are GMT -5. The time now is 06:26 AM.