diff --git a/src/main/java/io/cryostat/Producers.java b/src/main/java/io/cryostat/Producers.java index 4fdc29f61..7233886d3 100644 --- a/src/main/java/io/cryostat/Producers.java +++ b/src/main/java/io/cryostat/Producers.java @@ -94,7 +94,9 @@ public static ScheduledExecutorService produceScheduledExecutorService() { @RequestScoped @DefaultBean public static InterruptibleReportGenerator produceInterruptibleReportGenerator() { - return new InterruptibleReportGenerator(ForkJoinPool.commonPool()); + boolean singleThread = Runtime.getRuntime().availableProcessors() < 2; + return new InterruptibleReportGenerator( + singleThread ? Executors.newSingleThreadExecutor() : ForkJoinPool.commonPool()); } @Produces