相关疑难解决方法(0)

为播放框架全局限制Java堆空间

我有一个非常古老的linux系统并安装了java和play框架.当我运行java时,我得到:

java -version
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.
Run Code Online (Sandbox Code Playgroud)

所以我限制了application.conf中的java堆空间:

jvm.memory=-Xmx256M -Xms256M
Run Code Online (Sandbox Code Playgroud)

有了这个设置,我可以运行游戏测试,玩游戏等....

但我不能跑:

play dependencies 
~        _            _ 
~  _ __ | | __ _ _  _| |
~ | '_ \| |/ _' | || |_|
~ |  __/|_|\____|\__ (_)
~ |_|            |__/   
~
~ play! 1.2.1, http://www.playframework.org
~
Error occurred during initialization of VM
Could not reserve enough space for object heap …
Run Code Online (Sandbox Code Playgroud)

java playframework

32
推荐指数
4
解决办法
3万
查看次数

标签 统计

java ×1

playframework ×1