简体   繁体   English

启动本地JBoss服务器时出现VM错误

[英]VM Error when starting local JBoss server

I am getting the following error when trying to run JBoss server on my computer: 尝试在计算机上运行JBoss服务器时出现以下错误:

Error occurred during initialization of VM Incompatible minimum and maximum heap sizes specified Picked up _JAVA_OPTIONS: -Xmx512M VM初始化期间发生错误指定了不兼容的最小和最大堆大小。拾取了_JAVA_OPTIONS:-Xmx512M

I am using Windows 7. When I looked it up I saw that the problem is with the Java parameters setting. 我正在使用Windows7。在查找时,我发现问题出在Java参数设置上。 I have tried to set it to -Xms512m -Xmx1024m but it did not work (Not sure if I did it correctly). 我试图将其设置为-Xms512m -Xmx1024m,但是它不起作用(不确定我是否正确执行了操作)。

OK I managed to work it out so I am writing the answer here for those who struggle with the same problem. 好的,我设法解决了这个问题,所以我在这里为那些遇到相同问题的人写答案。 The JBoss server take the parameters from the System Variables and after setting them there it worked just fine. JBoss服务器从系统变量中获取参数,然后在其中设置参数就可以了。

Thanks for your help guys. 感谢您的帮助。

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

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