在Linux服务器上使用Activator UI的内存不足问题

时间:2014-09-15 20:04:15

标签: java playframework-2.0 out-of-memory playframework-2.3 typesafe-activator

我正在尝试在运行CentOS 5.7的Linux服务器上运行激活器ui。我安装了Java和激活器,但每当我运行“activator ui”时,我都会遇到以下错误:

[ERROR] [09/15/2014 15:42:22.431] [default-akka.actor.default-dispatcher-2] [ActorSystem(default)] Uncaught error from thread [default-akka.actor.default-dispatcher-2] shutting down JVM since 'akka.jvm-exit-on-fatal-error' is enabled
java.lang.OutOfMemoryError: unable to create new native thread
    at java.lang.Thread.start0(Native Method)
    at java.lang.Thread.start(Thread.java:714)
    at scala.concurrent.forkjoin.ForkJoinPool.tryAddWorker(ForkJoinPool.java:1672)
    at scala.concurrent.forkjoin.ForkJoinPool.deregisterWorker(ForkJoinPool.java:1795)
    at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:117)

    at scala.concurrent.forkjoin.ForkJoinPool.tryAddWorker(ForkJoinPool.java:1672)
    at scala.concurrent.forkjoin.ForkJoinPool.deregisterWorker(ForkJoinPool.java:1795)
    at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:117)
[ERROR] [09/15/2014 15:42:22.443] [default-akka.actor.default-dispatcher-3] [ActorSystem(default)] Uncaught error from thread [default-akka.actor.default-dispatcher-3] shutting down JVM since 'akka.jvm-exit-on-fatal-error' is enabled
java.lang.OutOfMemoryError: unable to create new native thread
    at java.lang.Thread.start0(Native Method)
    at java.lang.Thread.start(Thread.java:714)
    at scala.concurrent.forkjoin.ForkJoinPool.tryAddWorker(ForkJoinPool.java:1672)
    at scala.concurrent.forkjoin.ForkJoinPool.signalWork(ForkJoinPool.java:1966)
    at scala.concurrent.forkjoin.ForkJoinPool.externalPush(ForkJoinPool.java:1829)
    at scala.concurrent.forkjoin.ForkJoinPool.execute(ForkJoinPool.java:2955)

这只是服务器没有足够内存的问题,因为当我运行“cat / proc / meminfo”时,它应该足够了。

1 个答案:

答案 0 :(得分:0)

服务器是否有交换?如果没有,那么添加它可能会省你。 Activator产生了几个JVM,它们都很大,因为JVM只是很大。你需要一些空间。在各个JVM上调低-Xmx可能会有所帮助,但只有在应用程序无法运行之前它才会变得如此之低。