cBB Blockgets Eating Too Much Resources


User avatar
Leinad4Mind
 
Posts: 213
Joined: Thu Oct 15, 2015 10:10 pm
 Tue Feb 05, 2019 3:56 pm • via Web
Hi there, I saw today that this extension is literally eating too much ram resources.

"Peak Memory Usage: 16.95 MiB" - This is per user. So if I've 50 users it will eat 847,5Mb of Ram. Thats too much
no_avatar
nou nou
 
Posts: 36
Joined: Thu Nov 16, 2017 4:31 am
 Tue Feb 05, 2019 8:37 pm • via Android
I have no solution to your problem, but I'm interested - how do you measure that?
User avatar
Leinad4Mind
 
Posts: 213
Joined: Thu Oct 15, 2015 10:10 pm
 Wed Feb 06, 2019 1:53 am • via Android
In config.php I've uncomment this line:
// @define('PHPBB_DISPLAY_LOAD_TIME', true);
User avatar
IvanPF
Administrator
 
Posts: 2010
Joined: Fri Jun 17, 2011 12:15 am
Location: España (Spain)
 Wed Feb 06, 2019 2:48 pm • via Android
It's strange.
I need the name of the blocks installed in the page that causes this. (Screen capture is valid)
User avatar
Leinad4Mind
 
Posts: 213
Joined: Thu Oct 15, 2015 10:10 pm
 Thu Feb 07, 2019 11:26 am • via Web
Honestly I've deleted all blocks that were disabled but on the acp, one at a time, and nothing changed.
Then I've disabled all active ones one by one, Disabled one, checked, nothing changed, I enabled it again, and did that for all blocks, to check if the culprit was any of it, but nothing... very very strange!
I can take a print if you want, but like I said, I didnt find the block that was the culprit of this :/
And I get the same values even as Guest.
User avatar
Leinad4Mind
 
Posts: 213
Joined: Thu Oct 15, 2015 10:10 pm
 Thu Feb 07, 2019 3:39 pm • via Web
Oh and I've some other pages as Calendar or Topic Index ( Where I only have the calendar or only the topic index) and they both uses 13~15Mb

EDIT: I've disabled all blocks and it goed from 16~17 to 13~14Mb Still a lot for a page without information
User avatar
IvanPF
Administrator
 
Posts: 2010
Joined: Fri Jun 17, 2011 12:15 am
Location: España (Spain)
 Thu Feb 07, 2019 8:18 pm • via Web
phpBB 3.2 without extensions or users, by default have a peak about 10Mb so, 13~14 is normal.
It is not nominal memory, it is the maximum memory peak per script.

The other day I did not read your message well. If the peak that marks you is about 16Mb, it is a correct value.
Multiply the number of users by the memory that marks you there is not correct, it is not a real value.
User avatar
Leinad4Mind
 
Posts: 213
Joined: Thu Oct 15, 2015 10:10 pm
 Thu Feb 07, 2019 10:49 pm • via Web
But in any other page as Index, viewforum, viewtopic, its always below 3Mb, why the portal is way bigger? Doesnt make sense.

And I enabled the phpbb time at config because my database is using 1Gb of Ram, and I am trying to figure out why, since with xenforo for example it would use 50mb for the same type of forum with the same users, posts etc. Can't beleive thats phpbb consume that much.
User avatar
IvanPF
Administrator
 
Posts: 2010
Joined: Fri Jun 17, 2011 12:15 am
Location: España (Spain)
 Fri Feb 08, 2019 12:23 am • via Web
But in any other page as Index, viewforum, viewtopic, its always below 3Mb, why the portal is way bigger? Doesnt make sense.

Only 3Mb. it seems too little

And I enabled the phpbb time at config because my database is using 1Gb of Ram

this value is php peak memory, no mysql memory.

I put you two captures. The first one is from the development forum (in this hosting) (only two extensions are installed, cBB Editor and Lightbox).
The second is from a forum on a private server (it does not have extensions)
Both are practically empty and are version 3.2.5

cap1.png


cap2.png
User avatar
Leinad4Mind
 
Posts: 213
Joined: Thu Oct 15, 2015 10:10 pm
 Fri Feb 08, 2019 12:00 pm • via Web
I see. Thanks for checking out and enlighten me.

Only 3Mb. it seems too little


It's what I get

I saw that phpBB made some changes, it was memory_usage back then, and it eventually changed to peak_memory_usage on the debug message.

I've read some topics about this at area51: https://area51.phpbb.com/phpBB/viewtopi ... 20#p276611 and http://area51.phpbb.com/phpBB/viewtopic ... 57#p251247
It was quite explainatory, and interesting to see the differences between 3.0, 3.1 and 3.2 too.

Who is online

Users browsing this forum: No registered users and 0 guests