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 が期待どおりに動作しないのはなぜですか?