You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found some application which explicitly limits the memory to 25M while running tests. With JavaMOP, we apparently exceed this limit and get an out-of-memory exception:
Here is the error I get on the command line:
Exception in thread "Thread-4" java.lang.OutOfMemoryError: GC overhead limit exceeded
at java.lang.ThreadLocal$ThreadLocalMap.set(ThreadLocal.java:443)Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "Thread-4"
When I increase the memory limit to 2048M, the exception does not happen.
I don't think this is a bug per se, just something interesting about the limitations of JavaMOP, that JavaMOP will not work below certain memory threshold and we may want to document this somewhere.
Steps to reproduce:
Build testAgent.jar with all our properties: javamop -agent -n testAgent -usedb
cp testAgent.jar from step 1 to commons-io directory
Run mvn test after making the <argLine> element of the surefire plugin element inside the <build><plugins> element of commons-io/pom.xml to look like this:
I found some application which explicitly limits the memory to 25M while running tests. With JavaMOP, we apparently exceed this limit and get an out-of-memory exception:
Here is the error I get on the command line:
When I increase the memory limit to 2048M, the exception does not happen.
I don't think this is a bug per se, just something interesting about the limitations of JavaMOP, that JavaMOP will not work below certain memory threshold and we may want to document this somewhere.
Steps to reproduce:
testAgent.jar
with all our properties:javamop -agent -n testAgent -usedb
git clone https://github.com/apache/commons-io.git
git checkout 7007a1789dba19160ab94536ab3bb8a2e6e637bd
testAgent.jar
from step 1 to commons-io directorymvn test
after making the<argLine>
element of the surefire plugin element inside the<build><plugins>
element of commons-io/pom.xml to look like this:The text was updated successfully, but these errors were encountered: