There are some cases where Java falls back to using the
Serial GC instead of G1GC:
Less then 2GB of RAM or only one CPU.
This can be the case in some docker environments.
We always want to use G1GC, because it ensures that GC pauses are always short.
Also drop NewRatio=1 which was a tuning parameter used for the
previously used GC.
The default from Java is better here.
ResizeTLAB is also on by default now, so no need to specify that option.
Apache Log4j2 JNDI features do not protect against attacker controlled
LDAP and other JNDI related endpoints.
- Configure log4j2.formatMsgNoLookups=true by default
- Update log4j to 2.15.0
Details: https://logging.apache.org/log4j/2.x/security.html
This commit adds a new Operating System and Hardware Information library (OSHI) that does not require the cumbersome packaging that Sigar currently needs. This library has a very active community and a pretty good platform options. A new config option ("disable_native_system_stats_collector") is added, that defaults to false.
Based on #6056 by @desiderantes. Thank you!
Co-authored-by: Mario Daniel Ruiz Saavedra <desiderantes93@gmail.com>
* Check if -XX:+UseParNewGC option is available
This option was deprecated in java 8 and removed from in java 9.
https://openjdk.java.net/jeps/214Closes#5444
* Dont rely on bash support for +=