The -XX:PermSize and -XX:MaxPermSize options are still being set in karaf.bat, but they are deprecated in Java 8+ and ignored in Java 11+.
The equivalent parameters were handled for Linux in
These JVM parameters are deprecated starting in Java 8 but are "still accepted and acted upon" through Java 10:
Starting in Java 11, these options are "accepted but ignored":
And they are still accepted through the latest: Java 13.
These options would ideally (for me) be replaced with the equivalent Metaspace parameters -XX:MetaspaceSize and -XX:MaxMetaspaceSize. More info: