简体   繁体   English

JBoss:内存不足的PermGen空间

[英]JBoss : outOfMemory PermGen space

I am using jboss 6.0, eclipse indigo 我正在使用jboss 6.0,eclipse indigo

I changed JBOSS_Home/bin/run.conf.bat 我改变了JBOSS_Home / bin / run.conf.bat

but in console while server is starting it says 但是在服务器启动时在控制台中说

VM Arguments: bla bla -XX:MaxPermSize=256m bla bla VM参数:bla bla -XX:MaxPermSize = 256m bla bla

but in run.conf.bat it is -XX:MaxPermSize=512 m 但是在run.conf.bat中它是-XX:MaxPermSize = 512 m

where can i change vm arguments, in jdk installation directory? 我在哪里可以更改jdk安装目录中的vm参数?

thanks 谢谢


SOLVED 解决了

in eclipse double click on server, options editor comes, change vm arguments. 在eclipse中双击服务器,出现选项编辑器,更改vm参数。

this arguments overrides run.conf.bat 此参数覆盖run.conf.bat

The problem is, that the eclipse virtual machine doesn't take memory limits from the ini file. 问题是,Eclipse虚拟机不会从ini文件中获取内存限制。 It is very strange, but it is so. 奇怪,但是确实如此。 look for the solution here 这里寻找解决方案

Edit. 编辑。 After some experiments I've found, that it takes memory limits from the ini file. 经过一些实验,我发现它从ini文件中获取了内存限制。 But does it only once, at the creation of a new workspace. 但是在创建新工作区时仅执行一次。 Parameters from -vmarg in eclipse.ini create the default VM parameters line. eclipse.ini中-vmarg的参数创建默认的VM参数行。

but in run.conf.bat it is -XX:MaxPermSize=512 m 但是在run.conf.bat中它是-XX:MaxPermSize=512 m

It seems you have space between 512 and m . 看来您的空间在512m之间。 Can you try to remove the space? 您可以尝试删除空间吗? My run.conf.bat also has uppercase 512M (instead of 512m ). 我的run.conf.bat也有大写的512M (而不是512m )。 Since I'm using OSX/Linux I don't know if that matter for Windows. 由于我使用的是OSX / Linux,所以我不知道Windows是否如此。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM