Understanding memory limits

memory-usage

#1

Hey, we have a build that is reported as exceeding the memory limit, but it’s not clear what units the memory report is describing. Is RSS in kilobytes?

How should we parse this?

  PID   RSS %CPU COMMAND
 12194 4064360 124 /usr/lib/jvm/jdk1.7.0/bin/java -Dorg.gradle.appname=gradlew -classpath /home/ubuntu/gradle-java-distribution/gradle/wrapper/gradle-wrapper.jar org.gradle.wrapper.GradleWrapperMain build --info --stacktrace
 12599 353552 180 /usr/lib/jvm/jdk1.7.0/bin/java -Djava.security.manager=worker.org.gradle.process.internal.worker.child.BootstrapSecurityManager -javaagent:build/tmp/expandedArchives/org.jacoco.agent-0.7.6.201602180812.jar_acoano9zeg2vfe8h5049wtc6m/jacocoagent.jar=destfile=build/jacoco/test.exec,append=true,inclnolocationclasses=false,dumponexit=true,output=file,jmx=false -Dfile.encoding=UTF-8 -Duser.country=US -Duser.language=en -Duser.variant -ea -cp /home/ubuntu/.gradle/caches/2.14/workerMain/gradle-worker.jar worker.org.gradle.process.internal.worker.GradleWorkerMain 'Gradle Test Executor 2'
 12544 335080 30.3 /usr/lib/jvm/jdk1.7.0/bin/java -Djava.security.manager=worker.org.gradle.process.internal.worker.child.BootstrapSecurityManager -Dfile.encoding=UTF-8 -Duser.country=US -Duser.language=en -Duser.variant -cp /home/ubuntu/.gradle/caches/2.14/workerMain/gradle-worker.jar worker.org.gradle.process.internal.worker.GradleWorkerMain 'Gradle Compiler Daemon 1'

#2

Per the man page it does appear the unit is KB

http://linux.die.net/man/1/top


#3