Not able to set JVM heap size on AWS Elastic Beanstalk Java SE Platform
问题 I have a Spring Boot app deployend on Elastic Beanstalk using a single EC2 t2.micro instance (1GB RAM). I need to increase my app's JVM Heap size but I'm not being able to do so. The things I have tried are: Setting a JAVA_OPTS variable in the enviroment configuration in the EB console with the value -Xms512m -Xmx896m . Deploying the app with a Procfile in the project root folder what contains the following line: web: java -jar <relative-path-to-jar> -Xms512m -Xmx896m What else could I try?