Hi there,
I need some assistance, as all my research and tried fixes don't work.
Since February this year I occasionally had problems with downtimes of the forum.
I investigated a little and found out, that the session table was holding over 1GB of data.
I emptied it and promptly the forum was responsive again.
I double-checked the cronjobs, everything was looking okay so I moved on.
After a few weeks I had the same problem, emptied the session table and everything was fine again.
After that I manually emptied the session table every few days, to prevent the forum from getting unresponsive but this issue occurred more and more often. So often in fact, that I currently have a separate cronjob running every hour, that empties the session table.
Which of course also results in everyone to be logged out which shouldn't be the permanent solution.
Even if I increase the cronjob execution to every two hours, the forum gets unresponsive.
The forum has 12343 users with a total of 629459 posts.
The database size is roughly 1.28 GiB (without the sessions table) and has about 2.93 GiB uploaded files.
Currently I'm running the latest version 3.3.12 (MySQL 5.7/PHP 8.3), I updated every extension and installed the cronjob monitoring plugin, which states the following cronjobs red:
• dmzx.mchat.text_reparser.reparser
• cron.task.text_reparser.user_signature
• cron.task.text_reparser.post_text
• cron.task.text_reparser.poll_title
• cron.task.text_reparser.poll_option
• cron.task.text_reparser.pm_text
• cron.task.text_reparser.phpbb_pages
• cron.task.core.update_hashes
• cron.task.core.queue (but this one gets executed about every half hour or so)
• cron.task.core.prune_shadow_topics
• cron.task.core.prune_all_forums
I contacted by hosting provider and they had a deeper look into the requests that are blocking everything and they gave my this list:
0 mysqli_query <internal>:-1
1 phpbb\db\driver\mysqli::sql_query /forum/phpbb/db/driver/mysqli.php:180
2 phpbb\db\driver\factory::sql_query /forum/phpbb/db/driver/factory.php:351
3 phpbb\session::session_create /forum/phpbb/session.php:490
4 phpbb\session::session_begin /forum/phpbb/session.php:228
5 <main> /forum/viewforum.php:1
During regular hours, the forum has only about 10 to 50 active (registered) users at a time, but the session table fills up to 50k session entries really quick (in about half an hour).
As I never had the problems before (forum running since years without any such problems) I wonder what else the source of the problem might be?
The server hasn't changed and isn't experiencing more load than before.
What else could I do to prevent the session table from getting flooded with sessions?
Best
Bastian
I need some assistance, as all my research and tried fixes don't work.
Since February this year I occasionally had problems with downtimes of the forum.
I investigated a little and found out, that the session table was holding over 1GB of data.
I emptied it and promptly the forum was responsive again.
I double-checked the cronjobs, everything was looking okay so I moved on.
After a few weeks I had the same problem, emptied the session table and everything was fine again.
After that I manually emptied the session table every few days, to prevent the forum from getting unresponsive but this issue occurred more and more often. So often in fact, that I currently have a separate cronjob running every hour, that empties the session table.
Which of course also results in everyone to be logged out which shouldn't be the permanent solution.
Even if I increase the cronjob execution to every two hours, the forum gets unresponsive.
The forum has 12343 users with a total of 629459 posts.
The database size is roughly 1.28 GiB (without the sessions table) and has about 2.93 GiB uploaded files.
Currently I'm running the latest version 3.3.12 (MySQL 5.7/PHP 8.3), I updated every extension and installed the cronjob monitoring plugin, which states the following cronjobs red:
• dmzx.mchat.text_reparser.reparser
• cron.task.text_reparser.user_signature
• cron.task.text_reparser.post_text
• cron.task.text_reparser.poll_title
• cron.task.text_reparser.poll_option
• cron.task.text_reparser.pm_text
• cron.task.text_reparser.phpbb_pages
• cron.task.core.update_hashes
• cron.task.core.queue (but this one gets executed about every half hour or so)
• cron.task.core.prune_shadow_topics
• cron.task.core.prune_all_forums
I contacted by hosting provider and they had a deeper look into the requests that are blocking everything and they gave my this list:
0 mysqli_query <internal>:-1
1 phpbb\db\driver\mysqli::sql_query /forum/phpbb/db/driver/mysqli.php:180
2 phpbb\db\driver\factory::sql_query /forum/phpbb/db/driver/factory.php:351
3 phpbb\session::session_create /forum/phpbb/session.php:490
4 phpbb\session::session_begin /forum/phpbb/session.php:228
5 <main> /forum/viewforum.php:1
During regular hours, the forum has only about 10 to 50 active (registered) users at a time, but the session table fills up to 50k session entries really quick (in about half an hour).
As I never had the problems before (forum running since years without any such problems) I wonder what else the source of the problem might be?
The server hasn't changed and isn't experiencing more load than before.
What else could I do to prevent the session table from getting flooded with sessions?
Best
Bastian
Statistics: Posted by BastianS — Wed Jul 24, 2024 4:12 pm