By Baber Javed on
In performance logs of devel it shows me the Average Memory used by a page is 35 MB. Is that high or same as most normal sites
Also does 35MB per page means that if there are 100 users simultanoeusly opening pages it will use 3500MB?
Comments
_
... just interested in the comments on this ....
I've been looking just a
I've been looking just a minute and found that http://2bits.com/articles/measuring-memory-consumption-by-drupal-bootstr....
yes but this article doesnt
yes but this article doesnt make it clear whether 100 users simultaneously will consume 3500 MB or not? :S I'm confused about it :D
I'm not an expert in
I'm not an expert in Drupal.
But I think it do not take 3500mb.
My site approx. use 40mb since I use Views, Panels, Jquery and Ajax. My site usually has nearly 100 online users, but my server don't have 4000mb.
What's new and changing in PHP 8.4
Point well made! Thanks
Point well made! Thanks
I also have around 35mb per
I also have around 35mb per page also, and thats with an opcode cache and memcache.
I'd really like this discussion to go further.
Memory use
I am definitely interested too in knowing how to measure a sites memory use. Specially since a Belgian Drupal specific host simply decided to "turned off" our website because we are "using too many resources" from the server.
Frankly, in this sense he actually IS rather typically Drupal, since he adresses the problem, but does NOT clearly explain how to solve, as many times happens on this forum too ("see the readme file", "see other post", years going by between question and answer or simply no answer at all...).
He does not only not help to solve, he even gives no reference of WHAT this use of too many resources exactly consists of, HOW to detect it and HOW MUCH is acceptable. Well, he DID tell me that the server sometimes even reaches "3" or "3,2". This makes it all very much clearer....
The only thing I know/understand is that Devel says:
- Page execution time was 2565.69 ms.
- Memory used at: devel_init()=2.2 MB, devel_shutdown()=39.04 MB
Is this the what's needed to measure the use of resources and is this "normal", "good" or "high"?
Common sense tells me that the exact use of memory is 39,04 - 2,2 = 36,84 MB right? So if 36,84 MB were high, does that mean that 30 MB is acceptable or should it be no more than 12MB or 6MB for example?
Note that this is just a clean setup under 6.19 with, yes, a considerable number of modules enabled, a bit of content, but no menus, no taxonomy, no special theme and not any other contributed stuff, just plain drupal essence.
Performance log says:
Average memory per page: 34.5 MB
Average ms per page: 337.00
Same questions again.
Very much wondering... hope someone can explain in some detail.
I started with Drupal in 2007 and then my life got stuck...
subscribe
subscribe
We're in the same boat. Slow
We're in the same boat. Slow pages get:
Page execution time was 3197.86 ms.
Memory used at: devel_init()=1.78 MB, devel_shutdown()=32.39 MB.
We are using ImageAPI ImageMagick and ImageCache which may be taking some memory. We haven't tried disabling these yet...
Try to optimize ImageCache's
Try to optimize ImageCache's usage.
What's new and changing in PHP 8.4
subscribing
subscribing
It's true that even
It's true that even just-installed drupal sites gets a lot of memory.
First, we should optimize the site to reduce the memory usage with caching. I personally do this trick.
Let's say my blog has 2 views, to display random posts and another one to display recent comments.
I set query results caching in the first block for 1 hours, and 45 minutes in other view. When using this, site won't process 2 views at once. 1st view, then second view, and again the 1st view.
Also, ImageCache module uses a large memory. If you just want one image size, do the resizing yourself and keep GD2 relaxed.
In D7, there is a major change in database engines(using InnoDB instead of MyISAM).
Uninstall unnecessary modules and Rules module to get the job of these modules.
Using a good caching system is a must. I personally prefer Boost module.( Boost - uses, features and statistics)
What's new and changing in PHP 8.4
In Linux
This could vary by OS, modules and so on. In Linux here is how I would measure it:
/usr/bin/top
Press "M" (shift M)
This will sort by memory usage.
OR
ps aux |grep httpd
Look at the 5th column for virtual memory usage. You can check out the man page for "ps" to get even more details.
Bear in mind there are many httpd processes and they are sharing some memory. Each process will have threads to handle more connections.
The memory usage of the process will grow to the worse case and won't shrink. Example:
Restart httpd
goto a plain HTML page. The memory usage is very low.
Goto a page with a great deal of server side programming. Memory usage is much higher.
Goto a plain page again. Memory usage is sill high.
I would suggest researching Apache to find a better answer to your question.
The number reported under the
The number reported under the heading 'virtual' is the total pages
allocated to the process and the number reported below 'Pgsp'
indicates the total number of pages reserved or used on paging space
by segments that are used by the command.
here is a graph of mine
here is my usage on a bare site by that I mean no users and not complete to live. I have approx 14 modules installed outside of core and one theme outside of core.
Here is what my provider says: