Play 框架运行应用程序问题 [英] Play Framework Run Application Issue

查看:20
本文介绍了Play 框架运行应用程序问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每当我尝试运行使用 Play 创建的新 Web 应用程序时,都会收到以下错误.

I am getting the following error whenever i am trying to run a new Web Application created using Play.

Error occurred during initialization of VM
Could not reserve enough space for object heap

Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

推荐答案

在 Play framework 2.0.3 中,frameworkuild.bat 脚本你需要替换下面命令的命令行参数

In Play framework 2.0.3, <play framework install dir>frameworkuild.bat script you need to replace the command line argument for the command below

java -Xms512M -Xmx1024M -Xss1M -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=256M %DEBUG_PARAM% -Dfile.encoding=UTF8 -Dplay.version="%PLAY_VERSION%" -Dsbt.ivy.home="%~dp0..
epository" -Dplay.home="%~dp0." -Dsbt.boot.properties="file:///%p%sbt/sbt.boot.properties" -jar "%~dp0sbtsbt-launch.jar" %*

进入

java -XX:+CMSClassUnloadingEnabled %DEBUG_PARAM% -Dfile.encoding=UTF8 -Dplay.version="%PLAY_VERSION%" -Dsbt.ivy.home="%~dp0..
epository" -Dplay.home="%~dp0." -Dsbt.boot.properties="file:///%p%sbt/sbt.boot.properties" -jar "%~dp0sbtsbt-launch.jar" %*

这篇关于Play 框架运行应用程序问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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