Reputation: 3426
I am trying to deploy Play scala project to my server which has 512mb RAM. When I am typing command ./activator run
and trying to start the server, after 20min everything stop with message Resolving com.google.inject.extensions#guice-assistedinject;4.0
How do I fix it? Is it possible that I need more RAM? On my local machine (16gb RAM) everything works fine, project compile, and server works properly.
Upvotes: 0
Views: 114
Reputation: 1876
The problem can be related with low available memory. You have few ways to workaround this:
sbt run
. Activator need more memory that sbt, but difference isn't big.sbt dist
task and sbt-native-packager
. Dist task is easier to use but native packeger have more configuration option and allow you to build system packages. Personally I recommend to use sbt dist
task on your machine, copy compiled app to remote server and run it.
Upvotes: 1
Reputation: 432
I faced similar issue past few weeks!
Using ./activator run
command is only meant to deploy your play framework application in development mode. If you do that however, every time your application receives a new request, it will check with sbt to see if there are any changes and recompile the application again. As you might guess, this can have severe impact on your application in terms of performance.
Try to look here and let me know if it works
Upvotes: 2