I have a spring boot application that can run out of memory when processing very large uploaded files. I'm encountering this when running ./gradlew bootRun and using embedded tomcat.
Is there a gradle option or some other configuration I can set in a TomcatEmbeddedServletContainerFactory to set the maximum memory allowed for the spring boot application? I'd like to have something in a configuration file or the build.gradle file itself, so it would work for all developers.
I've tried setting org.gradle.jvmargs=-Xmx12000m in gradle.properties, but seems to have no effect.
-Xmxis not an option?