开发者

My Drupal site uses approx 30mb per page (node & user profiles) load. Acceptable or not?

I am using drupal and my website uses approx 30mb per page load for nodes and user profiles. My website has round about 150 contributed modules in addition to a few core optional modules. But most of them are small and insta开发者_StackOverflow中文版lled to improve user experience.

My php memory limit is 128mb.

Is 30mb per page acceptable?? And how many page loads can be handled by it easily in 128mb??

Any idea?


Honestly, at 30MB your app is just sipping on memory. The PHP memory limits are set pretty low.

As far as how many "page loads can be handled by 128MB" of memory, well, that's not really valid. When a request comes in, Apache (or whatever server you're using) hands the request to mod_php or FCGI and your PHP code is interpreted, compiled, run, and then quit. The "application" doesn't act like a daemon waiting for requests to come in, so the memory it consumes is used for the duration of the request and then it gets released for use by other requests/processes.

That 128MB limit is per request. That means that so long as you have enough memory (and Apache child processes, etc) you can handle additional requests. If you want to see how your application performs under load, check out apachebench.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜