ArC CrazyBeans
Attempt to measure ArC memory footprint with a significant number of beans.
To measure average RSS usage, these steps are followed repeatedly:
- Start the Quarkus application
- Measure its RSS by reading
/proc/$PID/smaps_rollup
- Sleep 100 millis
- Go back to step 2, until 10 subsequent measurements are identical
- Kill the Quarkus application
- Report the last measured value
By default, these steps are repeated 100 times. After that, the mean and standard deviation are reported.
To change the number of repetitions, set the system property measurements
.
For example: -Dmeasurements=5
to only repeat the steps above 5 times.
JVM
mvn clean package
java -cp target/test-classes/ io.quarkus.arc.crazybeans.test.JvmRssMeasurement
Native
mvn clean package -Dnative
java -cp target/test-classes/ io.quarkus.arc.crazybeans.test.NativeRssMeasurement