1
5
2
7
submitted 1 week ago by cm0002@europe.pub to c/java@programming.dev
3
5

Everyone talks about JDK 25 Project Leyden AOT caches locally—almost nobody measures what happens when Kubernetes pods actually have to download a 200+ MiB archive at scale.

Across four Spring Boot tiers tested on GKE with mnemo-warmup (from a 37-JAR microservice to a 458-JAR monolith):

  • Single-pod readiness dropped 31%–58%: Minimal services fell from 4.5s → 2.0s (-56%) and our 458-JAR monolith dropped from 30.8s → 21.2s (-31%).
  • Large archive fetches stayed fast: Pulling and SHA-256 verifying a 223.5 MiB archive from same-region Artifact Registry took 0.7s (saving 9.6s).
  • HPA 1→9 scale-out bursts: Median per-pod readiness improved by 22%–49% under load.
  • Zero code changes: Caches train asynchronously in-cluster via a CronJob and fail open cleanly to a standard JVM start if a registry stalls.

What is your real-world setup for Java startup on K8s? Vanilla JVM, build-time AppCDS, or experimenting with JDK 25 Leyden?

4
16

Two traps in java.net.http.HttpClient that bite when you route it through a proxy, because neither one looks like a proxy problem at first.

Basic proxy auth is disabled for HTTPS tunnels by default, so your username and password can be perfectly right and the tunnel still fails on auth.

The nastier one: point it at a SOCKS proxy and it gets ignored, so requests leave from the machine's own address. No exception, no warning. Everything looks fine until you check the exit IP, and by then the job may have run for a week from your server.

So whatever client you use, I'd log the exit IP once at startup and fail the run if it matches the host's address. It's a few lines and it catches this whole family of mistakes.

Disclosure: we run a proxy service, this came out of comparing proxy support across languages.

5
1

Speed, on the full configs: 3.6–5.7x faster on one thread, up to 38x on 16, and 37–400 MB of memory instead of 3–4 GB. A single file takes about 10 ms, which is the number I actually cared about, because that’s what makes it usable in a pre-commit hook.

6
3
submitted 4 weeks ago by wojtek@lemmy.world to c/java@programming.dev
7
17
8
11
What′s new in Java 27 (pvs-studio.com)
9
2
10
5

Another week, another update for @CloudNativeFdn
#cloudnative #observability tracing for developers workshop! Featuring @opentelemetry, @jaegertracer, @Prometheus, @java, @Podman_io and @RancherDesktop! Start exploring #o11y on k3s today!
@SUSE https://bit.ly/otel-java-dev-workshop

11
7
12
6
13
6
14
2
15
2
Apache NetBeans 31 Released (netbeans.apache.org)
16
9
17
4
18
1
Hacking the Method Name (maxxedev.github.io)
19
3
Hacking in the 'nameOf' (committing-crimes.com)
20
4
21
2
Modular Uberjars (github.com)
22
1
23
4
24
1
25
2
view more: next ›

Java

2074 readers
2 users here now

For discussing Java, the JVM, languages that run on the JVM, and other related technologies.

founded 3 years ago
MODERATORS