These tests of JUnit5 seem to be executed with -Xmx1g.
Tests passed when I used -Xmx4g. I did not test other values.
> Task :platform-tests:test FAILED
Execution failed for task ':platform-tests:test'.
> Failure during test execution: Forked test JVM terminated unexpectedly with exit value 1
Standard error from JVM:
AppMap Java Agent log file: /home/jansorg/self-employment/customers/AppLand/sources/junit5/platform-tests/appmap-20240409115232.log
Terminating due to fatal error
java.lang.OutOfMemoryError: Java heap space
at com.appland.shade.org.eclipse.jgit.internal.storage.file.PackIndexV2.<init>(PackIndexV2.java:94)
at com.appland.shade.org.eclipse.jgit.internal.storage.file.PackIndex.read(PackIndex.java:101)
at com.appland.shade.org.eclipse.jgit.internal.storage.file.PackIndex.open(PackIndex.java:67)
at com.appland.shade.org.eclipse.jgit.internal.storage.file.Pack.idx(Pack.java:161)
at com.appland.shade.org.eclipse.jgit.internal.storage.file.Pack.get(Pack.java:273)
at com.appland.shade.org.eclipse.jgit.internal.storage.file.PackDirectory.open(PackDirectory.java:216)
at com.appland.shade.org.eclipse.jgit.internal.storage.file.ObjectDirectory.openPackedObject(ObjectDirectory.java:393)
at com.appland.shade.org.eclipse.jgit.internal.storage.file.ObjectDirectory.openPackedFromSelfOrAlternate(ObjectDirectory.java:356)
at com.appland.shade.org.eclipse.jgit.internal.storage.file.ObjectDirectory.openObjectWithoutRestoring(ObjectDirectory.java:346)
at com.appland.shade.org.eclipse.jgit.internal.storage.file.ObjectDirectory.openObject(ObjectDirectory.java:331)
at com.appland.shade.org.eclipse.jgit.internal.storage.file.WindowCursor.open(WindowCursor.java:132)
at com.appland.shade.org.eclipse.jgit.lib.ObjectReader.open(ObjectReader.java:212)
at com.appland.shade.org.eclipse.jgit.revwalk.RevWalk.parseAny(RevWalk.java:1075)
at com.appland.shade.org.eclipse.jgit.lib.Repository.parseSimple(Repository.java:833)
at com.appland.shade.org.eclipse.jgit.lib.Repository.resolve(Repository.java:527)
at com.appland.shade.org.eclipse.jgit.lib.Repository.resolve(Repository.java:472)
at com.appland.appmap.util.GitUtil.open(GitUtil.java:77)
at com.appland.appmap.record.AppMapSerializer.write(AppMapSerializer.java:72)
at com.appland.appmap.record.RecordingSession.stop(RecordingSession.java:127)
at com.appland.appmap.record.Recorder.stop(Recorder.java:236)
at com.appland.appmap.process.hooks.RecordingSupport.stopRecording(RecordingSupport.java:92)
at com.appland.appmap.process.hooks.RecordingSupport.stopRecording(RecordingSupport.java:70)
at com.appland.appmap.process.hooks.test.JUnit.junit5Test(JUnit.java:52)
at org.junit.platform.console.ConsoleDetailsTests$ReportTestCase.reportMultipleMessages(ConsoleDetailsTests.java:167)
at java.base/java.lang.invoke.DirectMethodHandle$Holder.invokeVirtual(DirectMethodHandle$Holder)
at java.base/java.lang.invoke.LambdaForm$MH/0x000077687835ac00.invoke(LambdaForm$MH)
at java.base/java.lang.invoke.Invokers$Holder.invokeExact_MT(Invokers$Holder)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invokeImpl(DirectMethodHandleAccessor.java:154)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at org.junit.platform.commons.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:765)
at org.junit.jupiter.engine.execution.MethodInvocation.proceed(MethodInvocation.java:60)
appmap.yml file generated by the JetBrains plugin:
Setup:
junit5-platforms-tests
using the JetBrains extension./gradlew :platform-tests:test
AppMap agent log file: appmap-20240409115232.log.txt
These tests of JUnit5 seem to be executed with
-Xmx1g
. Tests passed when I used-Xmx4g
. I did not test other values.appmap.yml file generated by the JetBrains plugin: