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: 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.


CMD example:

set JVM_ARGS=-Xmx4g
dcover.bat create

PowerShell example:

setx JVM_ARGS "-Xmx4g"
dcover.bat create



export JVM_ARGS=-Xmx4g
dcover create