Skip to content

Commit

Permalink
Support Java 11
Browse files Browse the repository at this point in the history
  • Loading branch information
k-tamura committed Dec 2, 2021
1 parent 2167e52 commit ee9db0e
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 41 deletions.
37 changes: 30 additions & 7 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,17 @@
<!-- default properties (JDK 1.7 or earlier) -->
<jvm.args.perm.size>-XX:MaxPermSize=128m</jvm.args.perm.size>
<jvm.args.gc.log.path>-Xloggc:logs/gc.log</jvm.args.gc.log.path>
<jvm.args.print.heap.at.gc>-XX:+PrintHeapAtGC</jvm.args.print.heap.at.gc>
<jvm.args.print.gc.details>-XX:+PrintGCDetails</jvm.args.print.gc.details>
<jvm.args.print.gc.date.stamps>-XX:+PrintGCDateStamps</jvm.args.print.gc.date.stamps>
<jvm.args.gc.log.file.rotation>-XX:+UseGCLogFileRotation</jvm.args.gc.log.file.rotation>
<jvm.args.number.of.gc.log.files>-XX:NumberOfGCLogFiles=5</jvm.args.number.of.gc.log.files>
<jvm.args.gc.log.file.size>-XX:GCLogFileSize=10M</jvm.args.gc.log.file.size>
</properties>

<profiles>
<profile>
<id>JDK-Switch</id>
<id>JDK8-Switch</id>
<activation>
<jdk>1.8</jdk>
</activation>
Expand All @@ -27,6 +33,23 @@
<jvm.args.gc.log.path>-Xloggc:logs/gc_%p_%t.log</jvm.args.gc.log.path>
</properties>
</profile>
<profile>
<id>JDK11-Switch</id>
<activation>
<jdk>11</jdk>
</activation>
<properties>
<jvm.args.perm.size>-XX:MaxMetaspaceSize=128m</jvm.args.perm.size>
<jvm.args.gc.log.path>-Xlog:gc*:logs/gc_%p_%t.log:time,level,tags:filecount=5,filesize=10M</jvm.args.gc.log.path>
<!-- TODO Remove these properties -->
<jvm.args.print.heap.at.gc>-Dummy=Dummy</jvm.args.print.heap.at.gc>
<jvm.args.print.gc.details>-Dummy=Dummy</jvm.args.print.gc.details>
<jvm.args.print.gc.date.stamps>-Dummy=Dummy</jvm.args.print.gc.date.stamps>
<jvm.args.gc.log.file.rotation>-Dummy=Dummy</jvm.args.gc.log.file.rotation>
<jvm.args.number.of.gc.log.files>-Dummy=Dummy</jvm.args.number.of.gc.log.files>
<jvm.args.gc.log.file.size>-Dummy=Dummy</jvm.args.gc.log.file.size>
</properties>
</profile>
</profiles>

<dependencies>
Expand Down Expand Up @@ -212,12 +235,12 @@
<argument>-Xmx256m</argument>
<argument>-XX:MaxDirectMemorySize=90m</argument>
<argument>-XX:+UseSerialGC</argument>
<argument>-XX:+PrintHeapAtGC</argument>
<argument>-XX:+PrintGCDetails</argument>
<argument>-XX:+PrintGCDateStamps</argument>
<argument>-XX:+UseGCLogFileRotation</argument>
<argument>-XX:NumberOfGCLogFiles=5</argument>
<argument>-XX:GCLogFileSize=10M</argument>
<argument>${jvm.args.print.heap.at.gc}</argument>
<argument>${jvm.args.print.gc.details}</argument>
<argument>${jvm.args.print.gc.date.stamps}</argument>
<argument>${jvm.args.gc.log.file.rotation}</argument>
<argument>${jvm.args.number.of.gc.log.files}</argument>
<argument>${jvm.args.gc.log.file.size}</argument>
<argument>-XX:GCTimeLimit=15</argument>
<argument>-XX:GCHeapFreeLimit=50</argument>
<argument>-XX:+HeapDumpOnOutOfMemoryError</argument>
Expand Down

This file was deleted.

6 changes: 0 additions & 6 deletions src/main/webapp/index.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -275,12 +275,6 @@
<fmt:param value="FactoryConfigurationError" />
</fmt:message>
</p></li>
<li><p>
<a href="gsfe" target="_blank">GenericSignatureFormatError</a>:
<fmt:message key="function.description.throwable">
<fmt:param value="GenericSignatureFormatError" />
</fmt:message>
</p></li>
<li><p>
<a href="ncdfe" target="_blank">NoClassDefFoundError</a>:
<fmt:message key="function.description.throwable">
Expand Down

0 comments on commit ee9db0e

Please sign in to comment.