# The Limitations of Running a Workload Generator In the Same JVM as the System-Under-Test

DevFeed: [The Limitations of Running a Workload Generator In the Same JVM as the System-Under-Test](<https://devfeed.tech/articles/the-limitations-of-running-a-workload-generator-in-the-same-jvm-as-the-system-under-test-59723.md>)

Original publisher: [Read original article](<https://inside.java/2026/09/25/limitations-of-running-a-workload-generator-in-the-same-jvm/>)

Author: Jonas Norlinder

Published: 2026-09-25T00:00:00Z

Content type: news

Language: en

Sources: [Inside Java](<https://devfeed.tech/sources/inside-java.md>)

Topics: [Benchmark](<https://devfeed.tech/topics/benchmark.md>), [Performance Testing](<https://devfeed.tech/topics/performance-testing.md>), [observability](<https://devfeed.tech/topics/observability.md>)

Tags: [closed-loop-load-generator](<https://devfeed.tech/tags/closed-loop-load-generator.md>), [coordinated-omission](<https://devfeed.tech/tags/coordinated-omission.md>), [garbage-collectors](<https://devfeed.tech/tags/garbage-collectors.md>), [gc-tail-latency-benchmarking](<https://devfeed.tech/tags/gc-tail-latency-benchmarking.md>), [jvm](<https://devfeed.tech/tags/jvm.md>), [jvm-benchmarking-methodology](<https://devfeed.tech/tags/jvm-benchmarking-methodology.md>), [latency](<https://devfeed.tech/tags/latency.md>), [performance](<https://devfeed.tech/tags/performance.md>), [serviceability](<https://devfeed.tech/tags/serviceability.md>), [specjbb2015](<https://devfeed.tech/tags/specjbb2015.md>)

## AI overview

In these non-compliant SPECjbb2015 p99 experiments, running the workload generator with the backend in Composite-Net produced roughly 2-3x higher latency than Distributed for collectors with substantial pauses; ZGC, with pauses under 1 ms, showed no discrepancy. The excerpt attributes the gap to the shared JVM being unable to schedule requests during GC pauses. SPECjbb2015 corrects coordinated omission by measuring from scheduled submission time, but that cannot restore requests that were never scheduled while the generator was suspended. Distributed and MultiJVM place the generator in its own JVM; the authors recommend those modes for latency analysis. The study used specific benchmark and JVM settings, so its results are not official scores or compliant submissions.

## Source excerpt

When you evaluate a system with a garbage collector and want to understand its tail latency, you often see SPECjbb2015 or DaCapo used. While both offer corrective measures for coordinated omission, only SPECjbb2015 can run the workload generator and backend server in the same JVM, as well as separate them into different JVMs. This post is a deep dive that uses SPECjbb2015's flexibility to explore and highlight the risks of running the workload generator in the same JVM as the backend.