Knowledge Base > Cover CLI > Memory management

Memory management

Depending on the user’s project, test creation may require a significant amount of memory. Diffblue recommends running Cover on a system with 16GB of RAM, as the maximum amount of memory Cover uses is limited to a quarter of the available RAM by default.

Alternately, if you are getting out of memory errors, you can increase the amount of memory Cover has access to by using the JVM_ARGS environment variable. All the default Java options documented at: https://docs.oracle.com/javase/8/docs/technotes/tools/windows/java.html can be added to this variable. For example, if you run on a machine with 16GB of RAM then the default maximum Java heap size would be 4GB. Should this be any different, the examples below show how to increase the maximum Java heap size to 4GB.

Windows

CMD example:

set JVM_ARGS=-Xmx4g
dcover.bat create

PowerShell example:

setx JVM_ARGS "-Xmx4g"
dcover.bat create

Linux/macOS

Example:

export JVM_ARGS=-Xmx4g
dcover create