Closed r-lam closed 3 years ago
Did you try to set quarkus.native.native-image-xmx
in your application.properties?
Same result.
The 137 indicates that you ran out of memory. You need to increase the memory not reducing it.
So basically no way to limit memory at the cost of time mmm... Ok, thanks!
Will see if we can increase memory.
Hi, I'm trying to use the ubi-quarkus-native-s2i image with memory limit to 4G defining the property:
quarkus.native.additional-build-args=-J-Xmx4G
And this is the command that the image build:
However when running on Openshift, the consumptions goes up to +5G even when -J-Xmx is set to 3G so I'm assuming that property is being ignored and obviously my build failed because the pod was killed.
Error:
(Edited) I've done some test locally (without containers/the image) and it works, the property does limit the graal service.
My use case is not critical on build times, therefore, we choose to apply limits to memory consumption.