Cloudfoundry是否支持需要更大内存的应用程序? [英] Does Cloudfoundry support apps that require larger memory?

查看:129
本文介绍了Cloudfoundry是否支持需要更大内存的应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在使用Grails开发一个网站,并使用Cloudfoundry进行演示。 Grails和Cloudfoundry真棒!使用STS中grails插件和工具提供的支持很容易使用。我的应用程序使用MySQL,MongoDB,SpringSecurity等。我只用它与一个用户登录,我周期性地得到 java.lang.OutOfMemoryError:PermGen空间

我已经使用grails插件增加了1G的内存。我试图设置JAVA_OPTS来增加内存,这是行不通的。

我将检查内存在哪里使用,但似乎只有一个用户和一小组演示数据不应该推动内存限制。

Cloudfoundry是否支持需要更大内存的应用程序?

在阅读这篇文章后,我将MaxPermSize设置为512M,更长的内存不足错误。我在Windows上使用grails cmdline,并且我无法获取多个JAVA_OPTS集,只使用列表中的第一个。 grails cf-env-add JAVA_OPTS-XX:MaxPermSize = 512m -Xms512M -Xmx512M这个设置增加了我的演示站点的稳定性。

解决方案

原始海报在原始问题中有一个答案:

lockquote

阅读这篇文章后,我将MaxPermSize设置为512M,我不再拥有内存不足错误。我在Windows上使用grails cmdline,并且我无法获取多个JAVA_OPTS集,只使用列表中的第一个。 grails cf-env-add JAVA_OPTS-XX:MaxPermSize = 512m -Xms512M -Xmx512M这个设置增加了我的演示站点的稳定性


I have been developing a website using grails and demo'ing it using Cloudfoundry. Grails and Cloudfoundry are awesome! The are easy to use with support from grails plugins and tools in STS.

My app uses MySQL, MongoDB, SpringSecurity, and more. I have only used it with one user logged in and I periodically get java.lang.OutOfMemoryError: PermGen space

I have increased the memory to 1G using the grails plugin. I tried to set JAVA_OPTS to increase the memory and this did not work.

I am going to examine where the memory is being used, but it seems that one user and a tiny set of demo data should not be pushing the memory limits.

Does Cloudfoundry support apps that require larger memory?

After reading this post I set the MaxPermSize to 512M and I no longer have out of memory errors. I'm using grails cmdline on windows and I cannot get more than one JAVA_OPTS set, only the first in a list is used. grails cf-env-add JAVA_OPTS "-XX:MaxPermSize=512m -Xms512M -Xmx512M" This one setting has added stability to my demo site.

解决方案

The original poster has an answer in the original question:

After reading this post I set the MaxPermSize to 512M and I no longer have out of memory errors. I'm using grails cmdline on windows and I cannot get more than one JAVA_OPTS set, only the first in a list is used. grails cf-env-add JAVA_OPTS "-XX:MaxPermSize=512m -Xms512M -Xmx512M" This one setting has added stability to my demo site

这篇关于Cloudfoundry是否支持需要更大内存的应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆