JAVA DEVELOPMENT KIT 25 FOR ENHANCING PERFORMANCE IN MULTITHREADED APPLICATION DEVELOPMENT IN HIGH-LOAD SYSTEMS
Abstract: the paper presents a comprehensive analysis of the innovations introduced in Java Development Kit version 25 aimed at addressing performance issues in software development. A comparison of the JDK 25 changelog with previous JDK versions is conducted, highlighting the differences. An experiment was carried out to compare key characteristics of a multithreaded application running on JDK 11, 17, and 25. The study concludes with the necessity of migrating to the latest JDK version and evaluates the complexity of transitioning from earlier versions.
Keywords: Java, JDK 25 LTS, Development Kit, JVM, software development, multithreading, memory management, virtual threads, scalability, performance.
https://doi.org/10.24412/2712-8849-2025-1192-904-912
Introduction. Contemporary high-load systems require developers to possess an in-depth understanding of the Java Virtual Machine (JVM) architecture and memory management mechanisms to achieve optimal performance. As demands for application scalability and responsiveness continue to grow, the significance of advanced data parallelism and efficient thread management technologies is ever-increasing. [1, c. 448]The release of Java Development Kit 25 in September 2025 [9], positioned as a new long-term support (LTS) version, features substantial enhancements in multithreading and memory handling. This version introduces transformative modifications to the JVM architecture, resolving historic challenges associated with the performance of concurrent applications.Research Objectives. The objective of this study is to deliver a comprehensive analysis of JDK 25s enhancements and evaluate their impact on the performance of multithreaded applications in high-load environments..The primary research tasks are:1. Detailed analysis of architectural changes in JDK 25.2. Examination of new profiling and monitoring capabilities, including the use of JDK Flight Recorder.3. Experimental comparison of application performance and resource consumption across JDK 11, 17, and 25.4. Assessment of migration complexity for legacy applications and preparation of migration recommendations.Analysis of JDK 25 Architectural Improvements.Compact Object Headers (JEP 519):One of the most significant innovations in JDK 25 is the introduction of compact object headers. In previous JDK releases, each object header occupied 96 bits (12 bytes) on 64-bit architectures. JEP 519 reduces this to 64 bits (8 bytes), enabling up to 33% memory savings for each object. [2]The new compact header includes:22-bit compressed class pointer31-bit hash code identifier4 bits reserved for Project Valhalla4 bits for object age (GC)3 bits for system tagsThis optimization is achieved via a technical breakthrough: the 22-bit class pointer supports approximately 4 million unique classes—well above the requirements of any practical application.Generational Shenandoah Garbage Collector (JEP 521). JDK 25 integrates a stable, generational mode for the Shenandoah garbage collector. This collector segregates the heap into young and old generations, facilitating more efficient management of objects with differing lifespans [4]. The generational approach delivers:GC pause reductions to 1–10 milliseconds. Throughput improvements of 15–25% over standard Shenandoah mode. Enhanced processing of short-lived objects. Structured Concurrency (JEP 505). JEP 505 introduces the fifth iteration of the structured concurrency API, enabling cohesive management of related tasks as a single unit of work. A key modification in JDK 25 is the transition from public constructors to static factory methods for creating StructuredTaskScope objects [5].Figure 1. Example of StructuredTaskScope.open() usage.Virtual Threads Improvements (JEP 491). JDK 25 delivers a critical enhancement for virtual threads by eliminating the "pinning" problem occurring within synchronized code blocks. Previously, a virtual thread executing synchronized code would remain affixed to its carrier thread, limiting scalability [6].Thanks to JEP 491, this limitation is resolved:Virtual threads can now release carrier threads even when executing synchronized code"Monitor parking" allows virtual threads to detach while waiting for locksRefactoring synchronized code to ReentrantLock is no longer necessary.This improvement is particularly crucial for enterprise software using frameworks heavily reliant on synchronized sections.Advanced Profiling.JDK Flight Recorder in JDK 25 offers advanced profiling with minimal code execution impact. Two critical innovations are:JEP 518 Cooperative Sampling. JEP 518 revamps HotSpot JVMs method sampling mechanics, eliminating safepoint bias. The new cooperative approach [7]:Reduces profiling overhead by 40%Increases measurement precision by 25%Performs stack walking exclusively at safepoints, correcting for biasJEP 520 Method Timing & Tracing. JEP 520 extends JFR with bytecode-level method timing and tracing, [8] enabling:Monitoring of arbitrary methods with no source code changesTwo new JFR events: jdk.MethodTiming (invocation counts/average time) and jdk.MethodTrace (stack traces for target methods)Filtering by class, method name, or annotationExperimental Evaluation. To assess the actual benefits of JDK 25 for concurrent applications, an experimental study was performed using Spring Boot—the most prevalent enterprise Java framework.Tested Spring Boot versions: 2.7.18 (JDK 11), 3.2.11 (JDK 17), 3.5.5 (JDK 25). The test application implements a typical REST API, featuring:HTTP request processingBusiness logic with mid-range computationSimulated blocking I/O operations (10–50 ms delay)Testing Methodology:Gatling, an open-source load testing framework, was used to assess performance and resource consumption under high load. Metrics measured included: throughput (requests/sec), latency percentiles (P50, P95, P99), CPU utilization, heap memory usage, and GC pause times. JDK Flight Recorder provided in-depth JVM profiling, while VisualVM monitored real-time resource usage.Testing was executed in two phases: 1. Baseline performance testing at constant 100 requests/sec for multimodal throughput and latency analysis2. Stepwise ramp-up stress testing (50 to 1000 requests/sec) to detect the systems saturation and degradation points.Phase 1.The first phase evaluated application performance under a constant load of 100 requests/sec—reflecting typical workloads for medium-scale microservices.Table 1. Baseline performance test results (100 req/s). Under steady load, JDK 25 demonstrates a significant advantage in latency metrics: the P99 latency was reduced by 59.6% compared to JDK 11, which is critical for user experience—99% of requests are served in under 18.5 ms, as opposed to 45.8 ms on JDK 11.The 26.9% reduction in memory usage confirms the efficacy of compact object headers (JEP 519): for a Spring Boot application with numerous small objects (DTOs, entities, wrappers), this translated to a savings of 140 MB of heap memory per instance. The decrease in average GC pause times to 4.5 ms (from 15.2 ms on JDK 11) is a direct demonstration of the generational Shenandoah GC’s benefits, with pauses shortened by 70.4%, resulting in a direct reduction in tail latencies.Phase 2.The second phase targeted discovery of the system’s maximum capacity and pinpointing the threshold at which performance degradation begins. The load was incrementally increased from 50 to 1000 requests per second.Table 2. Stress Test Results (stepped load). For JDK 11, the saturation point was reached at approximately 400-450 req/s: when attempting to process 500 req/s, the system only delivered 428.3 req/s (14.3% degradation), and the P99 latency increased to 342.5 ms. At 1000 req/s, throughput fell to just 520.5 req/s (48% degradation), and P99 latency soared to a critical 1250 ms, making the system nearly non-operational. At the same extreme load (1000 req/s), JDK 17 achieved 712.3 req/s throughput (+26.6% vs JDK 11) with a P99 latency of 892.3 ms (–28.7% vs JDK 11).For JDK 25, the saturation threshold is much higher—around 900–950 req/s. At a load of 500 req/s, the system handled 496.8 req/s (just 0.6% degradation), and P99 latency remained an acceptable 125.4 ms. Even at the extreme load of 1000 req/s, JDK 25 delivered 892.4 req/s (+71.4% vs JDK 11, +45.8% vs JDK 17) with a P99 latency of 385.2 ms—3.2 times lower than JDK 11.A key observation is that for JDK 25, the so-called knee point is more than twice as high as for JDK 11, representing a twofold increase in practical system capacity without changes to application code.Additionally, a comparative analysis of resource consumption in JDK 25 was performed for two threading models: Platform Threads and Virtual Threads.Table 3. JDK 25 Resource consumption (500 concurrent requests). In JDK 25, due to the resolution of the pinning issue (JEP 491), virtual threads achieved a 21.3% improvement in P99 latency compared to platform threads, as well as a 10.6% reduction in CPU utilization. This demonstrates that virtual threads utilize CPU resources more efficiently, primarily because they incur minimal context switch overhead relative to traditional platform threads.[6]Migration Complexity.Migrating to JDK 25 requires careful consideration of compatibility with major Java frameworks and libraries, with particular attention paid to deprecated and refactored APIs. A typical migration process involves:Verifying dependency compatibilityAuditing use of deprecated APIsUpdating configurations and build scriptsComprehensive testing and validation Notably, applications already running on recent JDK versions face less complexity in the migration process.Conclusion.This study demonstrates that Java Development Kit 25 delivers substantial advances for performance of multithreaded applications in high-load environments. Experimental results confirm claimed improvements: a 45.8% increase in throughput, a 59.6% reduction in P99 latency, and a 26.9% decrease in memory consumption compared to JDK 11 without any code changes.Migration to the most current JDK LTS may undoubtedly require substantial engineering effort from development teams. Nevertheless, the results of this study unequivocally demonstrate that upgrading to JDK 25 is a strategically important decision for organizations seeking to optimize application performance and reduce the operational costs of high-load Java-based systems.
Полная версия статьи PDF
Номер журнала «Вестник науки» № 11 (92) том 3
Ссылка для цитирования:
JAVA DEVELOPMENT KIT 25 FOR ENHANCING PERFORMANCE IN MULTITHREADED APPLICATION DEVELOPMENT IN HIGH-LOAD SYSTEMS // Журнал «Вестник науки» от 16 ноября 2025 г. № 11 (92) том 3. С. 904 - 912. 2025 г. ISSN 2712-8849 // Электронный ресурс: https://www.вестник-науки.рф/article/26572 (дата обращения: 29.11.2026 г.)
Альтернативная ссылка латинскими символами: vestnik-nauki.com/article/26572
Нашли грубую ошибку (плагиат, фальсифицированные данные или иные нарушения научно-издательской этики) ?
- напишите письмо в редакцию журнала: zhurnal@vestnik-nauki.com
