指定的初始和最大堆大小不兼容 [英] Incompatible initial and maximum heap sizes specified

查看:243
本文介绍了指定的初始和最大堆大小不兼容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我运行具有NLP库的java类时出现此错误....

I got this Error when I run a java class which has an NLP library ....

Error occurred during initialization of VM
Incompatible initial and maximum heap sizes specified

任何想法如何解决此错误:)

any idea how i can solve this error :)

推荐答案

您应该注意,如果将初始堆大小设置为大于最大堆大小,应用程序将产生此类错误

You should note that in case of setting initial heap size bigger than maximum one, application will produce such error

-Xms 表示初始堆大小

-Xmx 表示特定JVM的允许的最大堆大小

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