[
https://issues.apache.org/jira/browse/CASSANDRA-14636?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16576476#comment-16576476
]
Jason Brown commented on CASSANDRA-14636:
-----------------------------------------
Using the [previous, 3.11
settings|https://github.com/apache/cassandra/blob/cassandra-3.11/conf/jvm.options#L197]
as a guide, reverting the java8 settings was simple. However, java11 was not
as trivial. A naive reenabling of java8's GC settings yielded:
{noformat}
Unrecognized VM option 'UseParNewGC'
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
{noformat}
{{UseParNewGC}} was deprecated in java 9 and [removed in java
10|https://bugs.openjdk.java.net/browse/JDK-8151084]. Once that flag is
removed, cassandra can start and run properly. However, this is this log
statement upon process start:
{noformat}
OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in
version 9.0 and will likely be removed in a future release.
{noformat}
For those who haven't been playing along with every gyration of the JDK, the
[CMS collector is deprecated|https://bugs.openjdk.java.net/browse/JDK-8142518].
However, CMS [might not be
removed|https://bugs.openjdk.java.net/browse/JDK-8163329], but might not be
supported directly by the OpenJDK project.
Either way, it appears that simply removing {{UseParNewGC}} form the java 11
config gets us back to on-par with the java 8 config.
Patch available here:
||14636||
|[branch|https://github.com/jasobrown/cassandra/tree/14636]|
|[utests &
dtests|https://circleci.com/gh/jasobrown/workflows/cassandra/tree/14636]|
||
Failed dtests are known issues.
> Revert 4.0 GC alg back to CMS
> -----------------------------
>
> Key: CASSANDRA-14636
> URL: https://issues.apache.org/jira/browse/CASSANDRA-14636
> Project: Cassandra
> Issue Type: Bug
> Reporter: Jason Brown
> Assignee: Jason Brown
> Priority: Major
> Fix For: 4.x
>
>
> CASSANDRA-9608 accidentally swapped the default GC algorithm from CMS to G1.
> Until further community consensus is achieved about swapping the default alg,
> we should switch back to CMS.
> As reported by [~rustyrazorblade] on the [dev@
> ML|https://lists.apache.org/thread.html/0b30f9c84457033583e9a3e0828adc603e01f1ca03ce0816098883cc@%3Cdev.cassandra.apache.org%3E]
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]