"The bare minimum you'll get away with is around 72M total memory on the simplest of Spring Boot applications with a single controller and embedded Tomcat."
"With -XX:+UseSerialGC This will perform garbage collection inline with the thread allocating the heap memory instead of a dedicated GC thread(s)"
"With -Xss512k This will limit each threads stack memory to 512KB instead of the default 1MB" [t]2020-01-02 20:31:55
"With -XX:MaxRAM=72m This will restrict the JVM's calculations for the heap and non heap managed memory to be within the limits of this value." [t]2020-01-02 20:31:55
"In addition to the above JVM options you can also use the following property inside your application properties file:
server.tomcat.max-threads=5 This will limit the the number of HTTP request handler threads to 1 (default is 50)" [t]2020-01-02 20:31:55