Skip to content

Commit

Permalink
documentation for #1153
Browse files Browse the repository at this point in the history
  • Loading branch information
arcuri82 committed Jan 5, 2025
1 parent d5bff08 commit 486f5d2
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ Otherwise, if you are working in industry on closed-source APIs, we have options
* [Technical notes for developers contributing to EvoMaster](docs/for_developers.md)
* Troubleshooting
* [Windows and networking](docs/troubleshooting/windows.md)
* [java.lang.OutOfMemoryError](docs/troubleshooting/outofmemory.md)
* More Info
* [Academic papers related to EvoMaster](docs/publications.md)
* [Slides of presentations/seminars](docs/presentations.md)
Expand Down
17 changes: 17 additions & 0 deletions docs/troubleshooting/outofmemory.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# java.lang.OutOfMemoryError

_EvoMaster_ core process runs on the JVM.
Depending on the tested application, and for how long you run it, it might end up that _EvoMaster_ runs out of memory, throwing for example a `java.lang.OutOfMemoryError` exception.

This can happen even if you have enough memory left!
By default, a Java application can use up to 1/4 of your total memory.
For example, on a 16GB RAM laptop, it would not use more than 4GB of RAM.
This is fine in most cases.
But, if you get a `java.lang.OutOfMemoryError`, you might need to increase such limit.
This can be achieved with the `-Xmx` JVM option.
For example:

`java -Xmx8g -jar core/target/evomaster.jar ...`

If you have installed _EvoMaster_ via one of its OS installers, you might need to check its configuration files where the executable file is located.
A possibility could be to modify the `evomaster.cfg` file, in particular its `java-options` entry (note: we have not tested out if this works on all OS).

0 comments on commit 486f5d2

Please sign in to comment.