Hosting play app on dreamhost

406 views
Skip to first unread message

Mahmoud Sakr

unread,
Aug 31, 2010, 8:40:10 AM8/31/10
to play-fr...@googlegroups.com
I would like to host a play app on dreamhost.

I've tried running the server the usual way, but dreamhost killed it because apparently the resource (java) was taking up too many resources.

I am thinking of exporting as WAR and deployment to a Tomcat server, but I have zero experience so this is merely a wild idea.

Any proper suggestions I should consider?

Oleg Stepura

unread,
May 12, 2012, 9:12:00 AM5/12/12
to play-fr...@googlegroups.com
Hi!

Were you able to finally install an app on Dreamhost?

Please give a note even if gave up trying, this experience would be useful.

Thanks!
Message has been deleted

Tom Carchrae

unread,
May 12, 2012, 9:49:17 AM5/12/12
to play-fr...@googlegroups.com
I think that is impossible.  DH standard hosting does not support Java.  Though it looks like maybe if you had a VPS with them - but even then, looks like pain: http://wiki.dreamhost.com/Java

Tom


--
You received this message because you are subscribed to the Google Groups "play-framework" group.
To view this discussion on the web visit https://groups.google.com/d/msg/play-framework/-/CMvTJ6AfllEJ.

To post to this group, send email to play-fr...@googlegroups.com.
To unsubscribe from this group, send email to play-framewor...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/play-framework?hl=en.

Oleg Stepura

unread,
May 12, 2012, 10:20:55 AM5/12/12
to play-fr...@googlegroups.com
there is java on DH.

$ java -version
java version "1.6.0_07"
Java(TM) SE Runtime Environment (build 1.6.0_07-b06)
Java HotSpot(TM) 64-Bit Server VM (build 10.0-b23, mixed mode)

The question is if 4 example when run as Fast-Cgi (if that is possible) it will not be killed for running to long.

Tom Carchrae

unread,
May 12, 2012, 10:54:58 AM5/12/12
to play-fr...@googlegroups.com
Well, if you do get it working let me know.  Have you considered just emailing DH support?  You want to know if you can execute a Java process to serve web requests.

Are you using a PS or shared hosting.  If it is shared hosting, then you'll have to figure out, somehow, what port is associated with your domain.  

I could see some kind of hack maybe working, like a PHP script starts up a Play instance and then routes traffic in/out...  but I don't really understand why you'd want to do this (aside from the joy of hacking) - there is plenty of hosting for free compared to DH's prices.  So why are you trying to do this?

Tom

--
You received this message because you are subscribed to the Google Groups "play-framework" group.

Oleg Stepura

unread,
May 12, 2012, 11:21:26 AM5/12/12
to play-fr...@googlegroups.com
I'm on shared hosting. And actually I'm just wondering - I found this thread when searching for someone using play on DH. Not that I'm about to run such app atm.

PHP itself on DH is started as Fast-CGI process so why not start some java app directly? I'm not sure if it's in there but if apache mod_proxy is installed - than there is another option on how to get it working.

Oleg Stepura

unread,
Jun 8, 2012, 4:39:47 AM6/8/12
to play-fr...@googlegroups.com
Hi!

I was able to start play demo app but almost immediately it was killed by dreamhost's killer of applications that use too much memory.
What I can confirm is that it is possible to compile (after modifying memory limits and not from the first time, but after some kills) and to start listening on a custom port. But since it's java and requires a lot of memory - it's not a solution for dreamhost shared hosting at all =(

Maybe after some extra magic it's possible to get it working, but I'm not sure.

Dreamhost limits memory usage at about 200Mb per user and kills apps that use more. If you have thoughts on optimizing memory usage to get it about 100mb per app - I can try again using that.
Reply all
Reply to author
Forward
0 new messages