bcgit / bc-java

Bouncy Castle Java Distribution (Mirror)
https://www.bouncycastle.org/java.html
MIT License
2.33k stars 1.14k forks source link

java.lang.OutOfMemoryError: Java heap space #1887

Closed mouse07410 closed 3 weeks ago

mouse07410 commented 4 weeks ago

Running tests on the current "main", I get two errors, both related to Argun2:

Screenshot 2024-10-28 at 12 24 52

We need a way to pass "-Xmx4096m" (or such) argument to Java via Ant script. For some reason, having export JAVA_OPTS=-Xms4096m does not suffice.

dghgit commented 4 weeks ago

The problem will be the forking that ant's doing to run the tests. I've added a setting for maxmemory which should deal with this - it's set to 4096m for jdk1.8+. Let me know if works.

mouse07410 commented 3 weeks ago

I've added a setting for maxmemory which should deal with this - it's set to 4096m for jdk1.8+. Let me know if works.

Thank you - it works wonderfully. Closing the issue.