Set heap size for gradle worker processes


For parallel builds we set the number of workers to 4.
The worker processes are created with max heap size = 2g
I observed that they hardly ever use 1g each.
Is it possible to set heap sizes on those workers?

I found an old post regarding this but that approach doesn’t seem suitable.


hey, were you able to find a solution on how to increase the heap size of gradle worker?