Aman-Mittal opened a new pull request, #167:
URL: https://github.com/apache/fineract-consumer-facing/pull/167

   Fixes #166.
   
   The native workflow on `main` is cancelled in native-image's `[7/8] Laying 
out methods` stage. The cause is the runner running out of memory:
   - `gradle.properties` gives Gradle `-Xmx12g`, which it grows into and keeps 
while the native-image builder runs beside it.
   - The builder peaks at about 8.3 GiB.
   - On the 16 GiB runner the two together exhaust memory. The runner is lost, 
and GitHub reports that as "The operation was canceled".
   
   This PR changes the native job only:
   - Its Gradle steps run with `-Dorg.gradle.jvmargs=-Xmx4g`.
   - The builder is capped at 9 GiB through `NATIVE_IMAGE_OPTIONS=-J-Xmx9g`.
   
   Only the workflow changes. `gradle.properties`, the build and the image it 
produces are untouched, and other workflows keep their settings.
   
   This PR's own `build-native` run is the verification.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to