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

Posted November 30, 2012 11.8k 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.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

7 answers

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
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.
Submit an Answer