String Deduplication: Everything You Need to Know

String deduplication saves memory by replacing repeated strings with references to just one copy. In Java, this can be done using the intern() method. In Java 8, specific settings are needed to activate this feature, while newer versions handle it automatically. Reviewing string deduplication logs helps assess how well memory is being used.

JVM arguments master sheet

The content provides an extensive list of JVM arguments, detailing their functions and usage. Key arguments include settings for memory allocation, garbage collection, debugging, and class path configurations. Each entry specifies the argument, its purpose, and operational nuances, catering to developers seeking to optimize JVM performance and behavior in applications.

Performance impact of java.lang.System.getProperty()

The 'java.lang.System.getProperty()' API is used to retrieve system properties in Java applications. However, its synchronized nature can lead to performance issues, especially if called in critical code paths, causing threads to become BLOCKED. Solutions include upgrading to JDK 11 or caching properties to enhance performance.

Up ↑