【发布时间】:2012-10-04 12:36:12
【问题描述】:
我有 4G 内存(64 位)。目前,我在 Eclipse IDE(JUNO) 中使用默认内存设置。当我在JBoss 7.1 上部署应用程序时,我收到Out Of Memory 错误。我想知道memory ratio 的heap memory 和permgen memory?比方说,如果我为堆内存设置 1G 内存,那么 permgen 内存将是 512M,仅举个例子。如果是这样,permgen 将是堆内存的 50%。能否为他们提供内存分配的方法?
目前是eclipse.ini
-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20120522-1813
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
512M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
512m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Dhelp.lucene.tokenizer=standard
-Xms128m
-Xmx1024m
原因:
Caused by: java.lang.OutOfMemoryError: Java heap space
【问题讨论】:
标签: java heap-memory permgen