cBB Blockgets Eating Too Much Resources


Avatar de Usuario
Leinad4Mind
 
Mensajes: 213
Registrado: Jue Oct 15, 2015 10:10 pm
 Mar Feb 05, 2019 3:56 pm • a través de 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
 
Mensajes: 35
Registrado: Jue Nov 16, 2017 4:31 am
 Mar Feb 05, 2019 8:37 pm • a través de Android
I have no solution to your problem, but I'm interested - how do you measure that?
Avatar de Usuario
Leinad4Mind
 
Mensajes: 213
Registrado: Jue Oct 15, 2015 10:10 pm
 Mié Feb 06, 2019 1:53 am • a través de Android
In config.php I've uncomment this line:
// @define('PHPBB_DISPLAY_LOAD_TIME', true);
Avatar de Usuario
IvanPF
Administrador
 
Mensajes: 2010
Registrado: Vie Jun 17, 2011 12:15 am
Ubicación: España (Spain)
 Mié Feb 06, 2019 2:48 pm • a través de Android
It's strange.
I need the name of the blocks installed in the page that causes this. (Screen capture is valid)
Avatar de Usuario
Leinad4Mind
 
Mensajes: 213
Registrado: Jue Oct 15, 2015 10:10 pm
 Jue Feb 07, 2019 11:26 am • a través de 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.
Avatar de Usuario
Leinad4Mind
 
Mensajes: 213
Registrado: Jue Oct 15, 2015 10:10 pm
 Jue Feb 07, 2019 3:39 pm • a través de 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
Avatar de Usuario
IvanPF
Administrador
 
Mensajes: 2010
Registrado: Vie Jun 17, 2011 12:15 am
Ubicación: España (Spain)
 Jue Feb 07, 2019 8:18 pm • a través de 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.
Avatar de Usuario
Leinad4Mind
 
Mensajes: 213
Registrado: Jue Oct 15, 2015 10:10 pm
 Jue Feb 07, 2019 10:49 pm • a través de 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.
Avatar de Usuario
IvanPF
Administrador
 
Mensajes: 2010
Registrado: Vie Jun 17, 2011 12:15 am
Ubicación: España (Spain)
 Vie Feb 08, 2019 12:23 am • a través de 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
Avatar de Usuario
Leinad4Mind
 
Mensajes: 213
Registrado: Jue Oct 15, 2015 10:10 pm
 Vie Feb 08, 2019 12:00 pm • a través de 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.

¿Quién está conectado?

Usuarios navegando por este Foro: No hay usuarios registrados visitando el Foro y 0 invitados