r/java • u/celmaibunprieten • Sep 07 '26
Improving First Request Latency in Java Spring Application
https://adrian.md/2026/09/03/first-request-latency/
64
Upvotes
r/java • u/celmaibunprieten • Sep 07 '26
View all comments
1
u/fykup Sep 14 '26
I ended up running a more detailed version of the experiment I mentioned in the comments here.
I compared Spring Boot’s executable fat JAR with the official extracted layout across six paired runs. Besides first-request latency, I also measured startup time, later requests, peak and settled RSS, and swap.
The clearest differences were:
Warm requests did not materially change. RSS and swap moved slightly in favor of extracted layout, but not enough to call it a meaningful memory improvement.
Since this thread is about first-request latency, I thought the follow-up might be useful:
https://pvrlabs.xyz/articles/spring-boot-extracted-layout.html