Correct JDK environment configuration is a key factor affecting Java application performance. An improperly configured JDK environment can cause performance issues, long startup times and application freezes.
Full content
JDK / JVM optimisation tools
- VisualVM — Java application performance tracking, memory resource monitoring and performance issue diagnostics.
- JMC (Java Mission Control) — tool integrated with JDK, real-time performance analysis, memory and system resource monitoring.
- JProfiler — specialist software for identifying performance bottlenecks and analysing resource utilisation.
- Java Optimizer — automated tool that identifies and resolves performance issues, generating optimisation reports.
Best practices
- Correct stack size settings (
-Xss) and memory pool settings (-Xmsand-Xmx) - Memory configuration tailored to application requirements (1024 / 2048 MB)
- Choosing the appropriate JDK version (32 / 64-bit) according to requirements
- Optimising Garbage Collector (GC) settings
- On Linux/Unix systems, changing the entropy source to
/dev/./urandom - Regular monitoring and updating of configuration