Hi,
I wrote as an end user who does not care about the other users.
The main question is that is it useful at all to explicitly set MaxMetaspaceSize for Java 8 because there is a system which should set MetaspaceSize to reasonable size automatically.
If everything works fine without setting MaxMeatspaceSize then it is probably better not to set it and keep startup files more simple.
However, sooner or later some other user notices the warning as well and asks the meaning of it from the mailing list. Perhaps I will start to care about other users and try to remove the warning by adding a Java version check into the startup.bat for Windows by following the Linux example from
https://github.com/sbt/sbt-native-packager/issues/203 and then share the result. I don’t mind if some other user on the list makes it before me.
-Jukka Rahkonen-
Andrea Aime wrote:
···
Hi Jukka,
we cannot simply replace the option, since it’s unknown to Java 7:
java -version
java version “1.7.0_72”
Java™ SE Runtime Environment (build 1.7.0_72-b14)
Java HotSpot™ 64-Bit Server VM (build 24.72-b04, mixed mode)
java -jar -XX:MaxMetaspaceSize=128m …
Unrecognized VM option ‘MaxMetaspaceSize=128m’
To avoid the warning we’d have to first recognize the java version, and then decide
which option to use (or if you to use it at all).
It’s probably not too hard I guess, we’d have to parse the first line of
output in “java -version”, extract the version and setup the options accordingly.
But wondering if we should just leave it be and wait for us to upgrade to java 8 as the
minimum version. On one side, java 7 is unsupported, on the other end, we have
enforced java 7 only recently (starting with 2.6.x if I remember correctly), so not
sure 2.8.x will be a good time to do the switch… maybe 2.9.x instead? (March 2016?)
Cheers
Andrea
On Fri, Jun 12, 2015 at 9:05 AM, Rahkonen Jukka (MML) <jukka.rahkonen@…6847…> wrote:
Hi,
Geoserver works OK for me with jre 8 but in the beginning of startup this message is printed to the console:
JAVA_HOME: C:\Program Files (x86)\Java\jre1.8.0_40
Please wait while loading GeoServer…
Java HotSpot™ Client VM warning: ignoring option MaxPermSize=128m; support
was removed in 8.0
I read from http://www.infoq.com/news/2013/03/java-8-permgen-metaspace that instead of MaxPermSize Java 8 has a MaxMetaspaceSize but also that Java 8 can also increase the new MetaspaceSize automatically if needed and it is not necessary to set it at all.
I know that the MaxPermSize warning is just a warning but it I however would like to get rid of it with Java 8, would it be better to
a) remove “set JAVA_OPTS=-XX:MaxPermSize=128m” from the Geoserver startup file or
b) edit it into “set JAVA_OPTS=-XX:MaxMetaspaceSize=128m” ?
-Jukka Rahkonen-
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
–
==
GeoServer Professional Services from the experts! Visit
http://goo.gl/it488V for more information.
==
Ing. Andrea Aime
@geowolf
Technical Lead
GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549
http://twitter.com/geosolutions_it
AVVERTENZE AI SENSI DEL D.Lgs. 196/2003
Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il loro utilizzo è consentito esclusivamente al destinatario del messaggio, per le finalità indicate nel messaggio stesso. Qualora riceviate questo messaggio senza esserne il destinatario, Vi preghiamo cortesemente di darcene notizia via e-mail e di procedere alla distruzione del messaggio stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso, divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità diverse, costituisce comportamento contrario ai principi dettati dal D.Lgs. 196/2003.
The information in this message and/or attachments, is intended solely for the attention and use of the named addressee(s) and may be confidential or proprietary in nature or covered by the provisions of privacy act (Legislative Decree June, 30 2003, no.196 - Italy’s New Data Protection Code).Any use not in accord with its purpose, any disclosure, reproduction, copying, distribution, or either dissemination, either whole or partial, is strictly forbidden except previous formal approval of the named addressee(s). If you are not the intended recipient, please contact immediately the sender by telephone, fax or e-mail and delete the information in this message that has been received in error. The sender does not give any warranty or accept liability as the content, accuracy or completeness of sent messages and accepts no responsibility for changes made after they were sent or for other risks which arise as a result of e-mail transmission, viruses, etc.