23

我最近在 PHP 和 play 框架上实现了一个非常小的 Cassandra Web 应用程序来比较这些技术。我在具有 ubuntu-server 的虚拟机上运行这些测试。在 PHP 和 play 框架应用程序中,只有一个 URL 可以插入 Cassandra 键空间。

在 PHP 中,我运行了以下 apache 基准测试;

ab -n 100000 -c 100 http://example.com/insert 测试结果表明服务器可以服务120#/sec(requests per sec)

我使用 Netflix 的 Astyanax Cassandra 库在播放框架中制作了几乎相同的应用程序。但是,即使在ab.

我正在通过play start终端上的命令在生产中进行播放框架测试。

所以,我知道播放框架已经准备好生产了。那么,我在这里做错了什么?

4

1 回答 1

1

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

于 2017-10-15T14:05:20.737 回答