Scrivio Interview library
LeadershipPrincipal6 min read · updated 12 November 2026

A vendor proposes moving your trading platform to a commercial JVM with its own pauseless collector, instead of using OpenJDK with generational ZGC. Frame this as a multi-year decision.

I would treat this as a multi-year platform decision, not a benchmark result. Both options get benchmarked on our own trading workload at realistic load, including tail latency, throughput and CPU, remembering that OpenJDK's low-pause collectors have improved quickly, so a gap measured years ago may be much smaller now. Then we weigh licence cost over the years, support terms and how fast the vendor ships security updates, the low code exit cost of a certified Java SE runtime against its operational cost, and the complexity of running two runtimes; we adopt the commercial JVM only for platforms where latency has clear business value, and review the decision at each renewal.

Background to this question

Vendor proposals usually arrive with impressive charts. For a trading platform, where a few milliseconds can have real financial value, the pitch can be persuasive. A senior engineer's job is to turn it into a decision the organisation can live with for years: one that is grounded in its own measurements, accounts for all costs, and stays reversible. In this answer, we will set out what is being compared, design a fair benchmark, account for costs and risks over several years, look at exit cost and fleet complexity, and frame the final decision.

1What Is Being Compared

The commercial option is a JVM built from the Java SE specification, certified compatible, with its own collector designed to have no meaningful pauses, often alongside other features such as a different JIT compiler or faster warm-up. The alternative is OpenJDK with generational ZGC, whose pauses are typically well under a millisecond and do not grow with heap size.

Years ago the gap was large: OpenJDK's best options paused for tens or hundreds of milliseconds, and commercial pauseless collectors were in a different class. Since then ZGC became production-ready in JDK 15, generational ZGC arrived in JDK 21 and became the only ZGC mode in JDK 24. So the question is no longer pauses versus no pauses. It is how much difference remains on our workload, at what cost.

2Benchmarking on Our Own Workload

The benchmark must be ours, not the vendor's. We replay recorded production traffic, or a realistic synthetic load, against the order gateway and pricing services, at normal and peak rates, including the market open burst.

We measure what matters to the business: latency at p99, p99.9 and max, because a single 20 ms stall during a volatile minute is what costs money; throughput at the latency target; CPU per unit of work, because it drives hardware cost; memory; and behaviour during warm-up after a restart, where a JIT difference can matter more than GC. Each configuration runs on identical hardware, several times, and both get a fair tuning effort; the vendor tunes theirs, and we tune ZGC's heap and headroom properly.

Example result sheet for one service (illustrative)
MeasureOpenJDK 25 + gen. ZGCCommercial JVM
p99 latency at peak1.9 ms1.6 ms
p99.9 latency at peak4.8 ms2.9 ms
Max during market open18 ms9 ms
CPU per 1,000 orders1.00 (baseline)0.93
Time to full speed after restart90 s40 s
Numbers like these are what the decision needs; the vendor's generic charts are not.

3Counting the Costs Over Several Years

A licence is a recurring cost, often priced per core or per host, so it grows with the platform. We model it over five years with expected growth, not just the first year's quote, and compare it with what the measured gains are worth. If p99.9 improvements avoid, say, a known amount of slippage or missed fills per year, that number can be compared directly.

Support terms matter as much as price. How quickly does the vendor ship security updates after each OpenJDK quarterly release? A runtime that lags by weeks on a critical security fix is a real risk for a regulated trading firm. We also look at which Java versions they support and for how long, how quickly they support a new LTS, and what happens to our builds if the contract ends.

4Exit Cost and Fleet Complexity

A certified Java SE runtime runs the same bytecode, so our code stays portable. Moving back to OpenJDK later is mostly an operational exercise: changing images, retesting performance, retuning GC. That low exit cost is the main reason this decision can be reversed, and it should be confirmed by keeping OpenJDK builds of the same services in CI so the path stays open.

Running two runtimes is the cost people underestimate. Engineers must learn two sets of GC logs and flags, monitoring must understand both, incidents need someone who knows the commercial runtime, and every JDK upgrade is now two upgrades. If only the trading platform uses the commercial JVM, that complexity is contained; if it spreads to services where latency has no business value, it becomes a tax on everyone.

Step throughWhere the commercial JVM would sit
  1. Trading coreorder gateway, pricing: commercial JVM if the benchmark justifies it
  2. Trading supportrisk, market data fan-out: OpenJDK + generational ZGC
  3. Rest of the fleetOpenJDK + G1 default
  4. Shared platformimages, CI, monitoring that understand both runtimes

4 layers, from the top down. Step through them one at a time.

5Framing the Decision

The decision then follows the evidence. If, on our workload, generational ZGC meets the latency targets with acceptable CPU, the commercial JVM's advantage is not worth a recurring licence and a second runtime. If the commercial JVM delivers a clear improvement on the services where latency has measurable business value, such as the order gateway in the table above, we adopt it there, and only there, with OpenJDK builds kept working in CI.

Finally, we make the decision time-bound. The contract renewal becomes a review point: re-run the benchmark on the latest OpenJDK LTS and the vendor's current release. Because OpenJDK's collectors improve every release, the gap may close, and we should be ready to act on that.

6Follow-up questions

How would you avoid being swayed by the vendor's benchmark?

By setting the benchmark design before seeing any results: our traffic, our hardware, our percentiles, and fair tuning for both. Vendor benchmarks often use workloads that favour their strengths or compare against untuned or older OpenJDK versions. I would invite the vendor to tune their runtime on our test bed, and have our own engineers tune ZGC, so neither side can claim the comparison was unfair.

What if the business case is borderline?

Then the cheaper, simpler option wins, because complexity and licence cost are certain while borderline gains are not. I would stay on OpenJDK with generational ZGC, keep the benchmark harness, and re-run it at the next LTS or if latency requirements tighten.

Is there a risk in depending on one vendor?

Yes: pricing changes, acquisitions and product decisions are outside our control. The Java SE certification limits that risk because the code stays portable, but only if we keep proving it by building and testing on OpenJDK regularly.

7Conclusion

In this answer, we framed the vendor proposal as a multi-year decision. We benchmark both runtimes on our own workload at realistic load, measuring tail latency, throughput, CPU and warm-up, knowing that OpenJDK's low-pause collectors have narrowed a gap that was once large. We model licence cost over years, support terms and security update speed, rely on Java SE certification for a low code exit cost, and account for the complexity of two runtimes. The commercial JVM is adopted only where latency has clear business value, and the decision is reviewed at each renewal.

What to say in the interviewAbout 80 seconds aloud

Open with

I would frame it as a five-year platform decision rather than a benchmark. First, we benchmark both on our own workload: recorded trading traffic at normal and peak rates, including the market open, measuring p99, p99.9 and max latency, throughput, CPU per order and warm-up after restart, with both sides tuned fairly.

Then, if they want more

I would expect the gap to be smaller than the vendor's material suggests, because OpenJDK's generational ZGC has sub-millisecond pauses and has improved quickly since JDK 21. Second, cost and risk: the licence over five years with expected growth, the support terms, and especially how fast the vendor ships security updates after each OpenJDK release.

Third, exit cost: a certified Java SE runtime runs the same bytecode, so leaving is mostly operations and performance testing, and I would keep OpenJDK builds of those services in CI so that stays true. Fourth, complexity: two runtimes means two sets of logs, flags, upgrades and incident skills.

So the likely outcome is targeted: if the commercial JVM clearly wins on the services where latency has measurable business value, adopt it there only, keep everything else on OpenJDK, and review the decision at every renewal with a fresh benchmark on the latest LTS.

About this answer

Last updated
12 November 2026
Versions it names
Java 15, Java 21, Java 24
Checked
Its structure and format are checked automatically. Use it as a carefully prepared study note: where a detail matters, confirm it against the documentation below. What the checks cover
Where the question comes from
Written by Scrivio for practice. It is not taken from an interview.
Report an issue with this answer

Copy the line below and send it to the author with what you found. It carries the address of this page.

Issue with "A vendor proposes moving your trading platform to a commercial JVM with its own...": https://scrivio-interview-library.netlify.app/java/garbage-collection/acc002a143/