-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[fix][cli] Remove deprecated "-client" JVM arg #23370
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Some OpenJDK distributions fail: Unrecognized option: -client Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit.
Claude AI response to question "what is the difference in starting java with "java -client" or "java -server" in Java 17 ?":
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In Oracle Java Runtime Environment (JRE) 8 and earlier, different implementations of the JVM, (the client VM, server VM, and minimal VM) were supported for configurations commonly used as clients, as servers, and for embedded systems. Because most systems can now take advantage of the server VM, only that VM implementation is provided in later versions.
https://docs.oracle.com/en/java/javase/21/vm/java-virtual-machine-technology-overview.html
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #23370 +/- ##
============================================
+ Coverage 73.57% 74.52% +0.94%
- Complexity 32624 33967 +1343
============================================
Files 1877 1934 +57
Lines 139502 145132 +5630
Branches 15299 15870 +571
============================================
+ Hits 102638 108154 +5516
+ Misses 28908 28686 -222
- Partials 7956 8292 +336
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
Motivation
-client
and-server
JVM args have been deprecated in Java for a very long time. Pulsar CLI tools currently add-client
argument. This causes some OpenJDK distributions to fail:Modifications
-client
argument.Documentation
doc
doc-required
doc-not-needed
doc-complete