开发者

My Play app is very slow

I'm a begginer with PlayFramework and I have a few questions about how to put the server to work properly.

I have been reading a few tutorials on how to deploy a Play! app and I decided to use the server that comes with it and lighttpd as reverse proxy. (I want to deploy 2 or 3 apps in the same machine with different domain)

My app is just like a youtube with only two pages, list videos and upload video. Nothing else is done with the app. I use mysql server for the database.

The machine is a VPS with 1024 RAM开发者_如何学JAVA with Debian, it does not have swap partition.

The URL to the app is proselo.info and it is quite slow.


I've made a test with ab and you can see the results below:

ab -n 150 http://proselo.info/listar

Total transferred: 185250 bytes

HTML transferred: 124800 bytes

Requests per second: 2.01 [#/sec] (mean)

Time per request: 498.539 [ms] (mean)

Time per request: 498.539 [ms] (mean, across all concurrent requests)

Transfer rate: 2.42 [Kbytes/sec] received


Any help will be apreciated

Thanks


It's been long time since I posted this question but the problem was that I really did not put it in production mode.

Sorry for the inconvenience, now i0ts much better!


It doesn't look slow when loading from my browser. What else do you have running on your VPS? It may be that you are hitting some limit in your VPS when doing the test (cpu, ram) and that's the reason of the delays.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜