I am developing a website using grails and demonstrating it using Cloudfoundry. Grails and Cloudfoundry are awesome! They are easy to use with support for plugins and Grails tools in STS.
My application uses MySQL, MongoDB, SpringSecurity, etc. I used it with only one user, and I get periodicallyjava.lang.OutOfMemoryError: PermGen space
I increased the memory to 1G using the grails plugin. I tried setting JAVA_OPTS to increase the amount of memory, and that didn't work.
I'm going to learn where memory is used, but it seems that one user and a tiny set of demo data should not push the limits of memory.
Does Cloudfoundry support apps that require more memory?
After reading this post, I set MaxPermSize to 512M and I no longer had errors in memory. I use grails cmdline for windows and I cannot get more than one set of JAVA_OPTS, only the first one in the list is used. grails cf-env-add JAVA_OPTS "-XX:MaxPermSize=512m -Xms512M -Xmx512M"This setting added stability to my demo site.
source
share