Anyone tried installing the Play framework or Scala on Ubuntu 12.04 64bit?

November 30, 2012 8.1k views
I am going to try it. I was able to install Java 1.7, Scala, and Play! on my other VPS. I was able to set up a Play! project with Scala, it built just fine, and I was able to run the app. I could not get to the server for some reason. I rebooted my VPS, logged in via Putty, and boom the Play! path with no longer work. I will give it a shot.
1 comment
7 Answers
If you were running it on a 256MB virtual server it sounds like you may be running out of resources, given that you are install Java and a couple of things that may take up a lot of memory.

You can add swap:

Or try a larger server.
by Etel Sverdlov
Linux swaps allow a system to harness more memory than was originally physically available. Here's how to set up a linux swap file on Ubuntu 12.04
Hi raiyu.

I am running Ubuntu 12.04 LTS of the 512 MB variety (not that it would help much), but I know Play! was quite slow on my other VPS. I added the swap file so we will see what happens. I know the JVM is a resource hog. I am going to try it. Worst case scenario...I re-image and try something else...not a big deal :-) I am trying to figure out what would work best for the app I am trying to build.
How'd your testing go Jeff? Do you recommend Play on this service?
i am also elvaluating play but not really happy with 512MB
I am on the same boat.
I downloaded Play and when I run my app is ends with "Killed".
I am going to try swap you mentioned.

I'm trying to get Play running via Dokku but I constantly run out of memory. I'm using a 1 GB Droplet with 2GB swap. How do I get over this?

[error] (compile:compile) Cannot run program "javac": error=12, Cannot allocate memory
       [error] Total time: 239 s, completed Jun 27, 2014 3:13:48 AM
 !     Failed to build app with sbt
  • What's the memory usage of the host system look like? Is it just running out of memory inside the container? You might want to look into the docker options plugin if you need to adjust memory settings for the docker containers.

Have another answer? Share your knowledge.