I'm using the Gradle profiler to look into some pe...
# community-support
e
I'm using the Gradle profiler to look into some performance issues, and when I run it using the defaults (i.e. the Tooling API), it uses a massive amount of RAM, much more than when I run it using
--cli
. Is that expected?
c
maybe? probably? what's massive? also I haven't used the gradle profiler... but "massive" seems like a hard question for people to answer
e
We'll I couldn't tell you exactly how much. It eats through all of my 64gb of RAM before getting killed 😅
c
and what's it before that?
lol
are you profiling gradle or your "jvm" app
e
~20-30GB
c
ok, either way that's gross... lol
I would except increased usage, but I'm not certain if I would expect more than double, but maybe depending on what profiler does
e
I'm profiling an Android app
Well, building the Android app
c
I mean they do tend to track multiple points of individual objects
yeah, I've never profiled gradle itself, so I don't know
but if your gradle instance itself is using many G that by itself sounds wrong
e
In this case that's correct, it's a rather large project.
c
have you tried getting java flight recorder set up to watch the gradle process? it might be lighter
yeah, even a large project, I wouldn't expect it ... just my opinion
e
I believe there's 24 workers getting spun up, and I set the Xmx to 8GB
c
the Xmx of gradle or the compiler/executor process
I'm betting you set that on the wrong thing 😉
where did you set it
for gradle itself this is what I have
Copy code
org.gradle.caching=true
org.gradle.parallel=true
org.gradle.configuration-cache=true
org.gradle.configuration-cache.parallel=true
dependency.analysis.print.build.health=true
org.gradle.dependency.verification.console=verbose
org.gradle.jvmargs=-XX:+UseZGC \
  -XX:+ZGenerational \
  -XX:+UseStringDeduplication \
  -Xmx2g \
  -XX:MaxMetaspaceSize=768m \
  -Dfile.encoding=UTF-8 \
  -Duser.country=US \
  -Duser.language=en
in my
gradle.properties