A mule 4 application is being migrated from Java 8 to Java 17. It had additional JVM parameters enabled to log garbage collection (GC) activity. For example: -XX:+PrintGCApplicationStoppedTime The application fails to be deployed with something similar to:
MULE_HOME is set to /Applications/AnypointStudio7.app/Contents/Eclipse/plugins/org.mule.tooling.server.4.6.ee_7.17.0.202408061751/muleMULE_BASE is set to /Applications/AnypointStudio7.app/Contents/Eclipse/plugins/org.mule.tooling.server.4.6.ee_7.17.0.202408061751/muleRunning Mule Enterprise Edition...--> Wrapper Started as ConsoleJava Service Wrapper Standard Edition 64-bit 3.5.51 Copyright (C) 1999-2022 Tanuki Software, Ltd. All Rights Reserved. http://wrapper.tanukisoftware.com Licensed to MuleSoft Inc. for Mule Runtime Enterprise Edition
Launching a JVM...OpenJDK 64-Bit Server VM warning: Option UseBiasedLocking was deprecated in version 15.0 and will likely be removed in a future release.Unrecognized VM option 'PrintGCApplicationStoppedTime'Error: Could not create the Java Virtual Machine.Error: A fatal exception has occurred. Program will exit.JVM exited while loading the application.Automatic JVM Restarts disabled. Shutting down.<-- Wrapper Stopped
There are also flags like:
PrintGC
PrintGCDetails
-Xloggc
According to JDK-8145092 certain GC flags were removed and are no longer supported.
As per JDK-8145180 some flags were later re-added back as deprecated.
To move forward, consider using the new flags. Refer to the following for more information:
Old: -XX:+PrintGCNew: -Xlog:gcOld: -XX:+PrintGCDetailsNew: -Xlog:gc*Old: -Xloggc:<filename>New: -Xlog:gc:<filename>
002520960

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.