2014-09-04 74 views
3

我一直在嘗試運行我的Play!項目在Cloud9 IDE上。然而,它一直殺activator它可以startCloud9 IDE編譯時會激活激活器

[email protected]:~/workspace (master) $ ./activator 
[info] Loading project definition from /home/ubuntu/workspace/project 
[info] Set current project to my-project (in build file:/home/ubuntu/workspace/) 
[my-project] $ start -Dhttp.port=8080 
[info] Compiling 9 Scala sources and 1 Java source to /home/ubuntu/workspace/target/scala-2.10/classes... 
[info] Main Scala API documentation to /home/ubuntu/workspace/target/scala-2.10/api... 
[info] CoffeeScript compiling on 5 source(s) 
[info] LESS compiling on 1 source(s) 
[info] Wrote /home/ubuntu/workspace/target/scala-2.10/my-project_2.10-1.0-SNAPSHOT.pom 
Killed 

我試圖運行僅compile希望我可以在執行分割成更小的部分,所以C9-IDE不會殺它。然而,它也被殺害了

[email protected]:~/workspace (master) $ ./activator compile 
[info] Loading project definition from /home/ubuntu/workspace/project 
[info] Set current project to my-project (in build file:/home/ubuntu/workspace/) 
[info] Compiling 9 Scala sources and 1 Java source to /home/ubuntu/workspace/target/scala-2.10/classes... 
Killed 

但是,運行run成功運行的服務器,但隨後殺害,當第一次請求前來服務器(即:開始編譯)

[email protected]:~/workspace (master) $ ./activator 
[info] Loading project definition from /home/ubuntu/workspace/project 
[info] Set current project to my-project (in build file:/home/ubuntu/workspace/) 
[my-project] $ run -Dhttp.port=8080 

--- (Running the application from SBT, auto-reloading is enabled) --- 

[info] play - Listening for HTTP on /0:0:0:0:0:0:0:0:8080 

(Server started, use Ctrl+D to stop and go back to the console...) 

[info] Compiling 9 Scala sources and 1 Java source to /home/ubuntu/workspace/target/scala-2.10/classes... 
[info] LESS compiling on 1 source(s) 
[info] CoffeeScript compiling on 5 source(s) 
Killed 

是否有可能配置Cloud9 IDE以容許激活器?或者至少配置activator/sbt來限制CPU消耗,以便Cloud9IDE不會殺死它?

回答

4

很有可能你的盒子內存不足。你可以使用「dmesg」來檢查你的程序是否因此而死亡。免費帳戶目前獲得512 MB,而高級用戶獲得1024 MB。