- You are here:
- Main › Forum › Application Support › cBB Blockgets
cBB Blockgets Eating Too Much Resources
10 posts
• Page 1 of 1
-
Leinad4Mind - Posts: 152
- Joined: Thu Oct 15, 2015 10:10 pm
cBB Blockgets Eating Too Much Resources

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
"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

-
nou nou - Posts: 32
- Joined: Thu Nov 16, 2017 4:31 am
Re: cBB Blockgets Eating Too Much Resources

I have no solution to your problem, but I'm interested - how do you measure that?
-
Leinad4Mind - Posts: 152
- Joined: Thu Oct 15, 2015 10:10 pm
Re: cBB Blockgets Eating Too Much Resources

In config.php I've uncomment this line:
// @define('PHPBB_DISPLAY_LOAD_TIME', true);
// @define('PHPBB_DISPLAY_LOAD_TIME', true);
-
IvanPF - Site Admin
- Posts: 1799
- Joined: Fri Jun 17, 2011 12:15 am
- Location: España (Spain)
Re: cBB Blockgets Eating Too Much Resources

It's strange.
I need the name of the blocks installed in the page that causes this. (Screen capture is valid)
I need the name of the blocks installed in the page that causes this. (Screen capture is valid)
-
Leinad4Mind - Posts: 152
- Joined: Thu Oct 15, 2015 10:10 pm
Re: cBB Blockgets Eating Too Much Resources

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.
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.
-
Leinad4Mind - Posts: 152
- Joined: Thu Oct 15, 2015 10:10 pm
Re: cBB Blockgets Eating Too Much Resources

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
EDIT: I've disabled all blocks and it goed from 16~17 to 13~14Mb Still a lot for a page without information
-
IvanPF - Site Admin
- Posts: 1799
- Joined: Fri Jun 17, 2011 12:15 am
- Location: España (Spain)
Re: cBB Blockgets Eating Too Much Resources

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.
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.
-
Leinad4Mind - Posts: 152
- Joined: Thu Oct 15, 2015 10:10 pm
Re: cBB Blockgets Eating Too Much Resources

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.
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.

-
IvanPF - Site Admin
- Posts: 1799
- Joined: Fri Jun 17, 2011 12:15 am
- Location: España (Spain)
Re: cBB Blockgets Eating Too Much Resources

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 (111.02 KB) Viewed 1468 times
- cap2.png (119.98 KB) Viewed 1468 times
-
Leinad4Mind - Posts: 152
- Joined: Thu Oct 15, 2015 10:10 pm
Re: cBB Blockgets Eating Too Much Resources

I see. Thanks for checking out and enlighten me.
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.
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.
10 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest
- Content
- Applications
- Community & Support
- Rss
- External Links
- phpBB Official
- phpBB Official (Spanish)
- Raul Arroyo Monzo
- PasionReef
- Sobre CaniDev
- Terms of use
- Privacy Policy
- About Us
- Contact
- © 2011-2021 CaniDev
Mobile Version • Full Version