I'm trying to run my Spring Boot application in a machine with very limited resources (512M memory), so I need to configure JVM memory settings (Xmx, MaxPermSize etc) to limit consumption and avoid OOM crashes.
I run the app from the command line using Gradle:
gradle bootRun
but I haven't found a way to pass JVM args like -Xmx256m, -XX:MaxPermSize=128M etc. from the command line when starting the app. Any idea anyone?