我正在尝试使用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/)
但是当我从shell做同样的事情时:
$ play compile
......一切正常。
我试图通过“-Xmx 1024m”来玩 - 没有帮助。
系统信息:
为什么我的Makefile没有按预期工作?