我正在尝试使用 GNU Make (3.81) 编译我的 Play Framework 项目。
这是我的简单 Makefile:
all:
play compile
运行“make”后,出现以下错误:
[error] java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: unable to create new native thread
[error] Use 'last' for the full log.
make: *** [all] Error 1
详细错误信息:
$ play last:
[info] Loading project definition from /home/sergey/wrk/my/site/project
[info] Set current project to site (in build file:/home/sergey/wrk/my/site/)
[info] Loading project definition from /home/sergey/wrk/my/site/project
[debug] Running task... Cancelable: false, check cycles: false
[debug]
[debug] Initial source changes:
[debug] removed:Set()
[debug] added: Set()
[debug] modified: Set()
[debug] Removed products: Set()
[debug] Modified external sources: Set()
[debug] Modified binary dependencies: Set()
[debug] Initial directly invalidated sources: Set()
[debug]
[debug] Sources indirectly invalidated by:
[debug] product: Set()
[debug] binary dep: Set()
[debug] external source: Set()
[debug] Initially invalidated: Set()
[debug] Copy resource mappings:
[debug]
[info] Set current project to site (in build file:/home/sergey/wrk/my/site/)
但是当我从外壳做同样的事情时:
$ play compile
...一切正常。
我试图通过“-Xmx 1024m”来播放 - 没有帮助。
系统信息:
- 安装了所有更新的 Ubuntu 12.04 LTS
- 甲骨文 JDK 1.6.0_45
为什么我的 Makefile 没有按预期工作?