org.gradle.parallel=true
org.gradle.workers.max=2
After debugging CompilerDaemonManager, CompilerClientsManager, and CompilerDaemonStarter I can see why this happens*. But I am confused as to how the workers.max property works correctly when only compiling Java, i.e. all JavaCompile tasks are using the same forkOptions and an existing, idle worker is always used for the next unit of work.
Can someone give me a hint where StartParameter#getMaxWorkerCount is checked before building new WorkerProcesses? Obviously it works in usual situations but I am confused how my number of workers is exceeding the max setting.
Thanks in advance,
Kyle Moore
* CompilerDaemonManager#getDaemon will indiscriminately create a new client if no idle client is available:
CompilerDaemonClient client = clientsManager.reserveIdleClient(forkOptions);
if (client == null) {
client = clientsManager.reserveNewClient(workingDir, forkOptions); //appears to always create a new client
}
Can someone give me a hint where StartParameter#getMaxWorkerCount is checked before building new WorkerProcesses?
--
You received this message because you are subscribed to the Google Groups "gradle-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gradle-dev+...@googlegroups.com.
To post to this group, send email to gradl...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gradle-dev/d3400d71-eccc-47c1-8814-e25e101fb09c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.