nautical - 1 year ago 63
Java Question

# High memory usage by gradle daemon

I using gradle 2.5 to compile a java project which consists of 5 modules. In order to speed things up I also use the gradle-daemon. However, During compilation there are up to 18 instances of the gradle-daemon running. After compilation finishes there are still 15 instances of the daemon left. The daemons process consumes about 600 MB of RAM. Is it normal to have that many daemons running in the background or is the gradle-daemon misconfigured?

UPDATE:
My operating system is Debian Jessie. Java version is Oracle Java 8.

\$ export GRADLE_OPTS="-Xmx64m -Dorg.gradle.jvmargs='-Xmx256m -XX:MaxPermSize=64m'"