From c24df15ef7c3cd0d65c1e61768b54294f18cf857 Mon Sep 17 00:00:00 2001
From: "Marc R. Hoffmann"
Date: Fri, 5 May 2017 21:06:34 +0200
Subject: Explanations for possible StackOverflowErrors (#528)
---
org.jacoco.doc/docroot/doc/faq.html | 15 +++++++++++++++
1 file changed, 15 insertions(+)
(limited to 'org.jacoco.doc/docroot')
diff --git a/org.jacoco.doc/docroot/doc/faq.html b/org.jacoco.doc/docroot/doc/faq.html
index 0efbce51..5c5275ab 100644
--- a/org.jacoco.doc/docroot/doc/faq.html
+++ b/org.jacoco.doc/docroot/doc/faq.html
@@ -149,6 +149,21 @@
classpath and accessible from by the instrumented classes.
+Why do I get a StackOverflowError
during code coverage analysis?
+
+ There are two known reasons for this:
+
+
+ - Misconfiguration: If you configure two JaCoCo agents of different releases
+ they will instrument each other and cause a endless recursion. Check the
+ effective java command line and avoid such configurations.
+ - Heavy stack usage: JaCoCo instrumentation adds a small runtime overhead
+ by adding a local variable to each method. If your application is already
+ close to the maximum stack size this can eventually lead to an
+
StackOverflowError
. Increase the maximum java stack size with
+ the -Xss
JVM option.
+
+