Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

play framework 2 performance issues on virtual machine

Tags:

I have recently implemented a very tiny Cassandra web application on both PHP and play frameworks to compare these technologies. I'm running these tests on a virtual machine that has ubuntu-server in it. In both PHP and play framework applications, there is only one URL that makes an insertion to a Cassandra keyspace.

In PHP, I ran the following apache benchmark test;

ab -n 100000 -c 100 http://example.com/insert The test results show that the server can serve 120#/sec (requests per sec)

I have made almost the same application in the play framework using Netflix's Astyanax Cassandra library. However, the server seems to be crushing even at the start of ab.

I'm making the play framework test in production, by play start command on terminal.

So, I know that the play framework is production-ready. So, what am I doing wrong here?

like image 593
aacanakin Avatar asked Jun 14 '13 20:06

aacanakin


1 Answers

The problem was in the requests per second and I didn't set the thread pools. At that time, it seems that play framework consumes so much memory even the thread pools were default. – aacanakin

like image 185
kenorb Avatar answered Dec 29 '22 22:12

kenorb