I know java applications running in JRE, and Java allocates the memory for the app from the host machine.
Its also for spring boot app what is with embedded tomcat and run as jar.
Me asking for: How to set Host machine physical memory limit for java spring boot app.
Is there any way I can set the physical memory limit for every spring boot application jar Like containerization technology?
Example: myapp.jar is supposed to consume not more than 400MB ram.