Failed to reserve space

I’m trying to get the tasks for gradle using .\gradlew tasks but it says that it cannot reserve enough space for the task. I have plenty of computer space, over 392 GB when gradle only takes up
three. Heres what it said exactly:

  • What went wrong:
    Unable to start the daemon process.
    This problem might be caused by incorrect configuration of the daemon.
    For example, an unrecognized jvm option is used.
    Please refer to the user guide chapter on the daemon at
    Please read the following process output to find out more:

Error occurred during initialization of VM
Could not reserve enough space for 3145728KB object heap

sorry if this is a stupid issue, im kinda dumb lol

Heh, well we all have to start somewhere :slight_smile:

It is not referring to disk space but memory space. And it says it tried, unsuccessfully, to allocate 3GB memory for the heap. Normally you don’t need that much heap space for Gradle, so if this is by accident, see if you can remove it. There should be an Xmx switch either in a file, or the GRADLE_OPTS environment variable. Gradle 5.x defaults to 500MB and this is usually sufficient.

If you actually need that much heap for the build, check if you have enough free memory available on your machine. If you are on Linux, there may also be a limit how much a single process is allowed to consume.