2008-02-03, 04:50 PM
Hello,
we recently upgraded our version of MyBB from 1.2.7 (or so) to the new 1.2.12 (German localized version). Actually we did a MyBB install from scratch, so "just" the database kept.
After that we noticed, that ... several bugs have gone which is great. :-)
However, we also noticed that threads with many posts where the posts are longer (10+ KB), it takes 10 seconds and more to open the thread, ie the first page of the thread. Oftenly the server stops with a timeout error message.
This is with standard number of posts per page (=10 posts). In case I dare to increase the posts per page number to 30, the thread can't be opened anymore.
This slowness doesn't happen for "small" threads (ie threads with either just a few posts or with very short posts).
For example, a thread with 39 posts and each of them is about 15 KB. There are 4 pages. I enter the thread (1st page) and the small debug info on the bottom right part says:
For the second page it improves:
Again for page 3:
and best for page 4:
Is it normal that the server spends >99% of the time in the PHP scripts but only <1% in the database?
This extreme slowness is new and just happened after we upgraded MyBB.
Then we converted the database table from latin1_swedish (or so) to UTF-8, like the MyBB Readmes suggest. But with not effect to the slowness.
(All the tables are now in UTF-8_general or so. We've done the conversion manually in phpMyadmin, because when we used the MyBB tool in the Admin-CP, it did cut all our table text fields which contained special chars right at the 1st special char. But since the tables are converted now, this doesn't matter, isn't it?)
We also updated PHP 4.x to PHP 5.2 but with no effect, unfortunately.
What's going on with my long threads? How could I find out the hot spot?
Thanks a lot.
we recently upgraded our version of MyBB from 1.2.7 (or so) to the new 1.2.12 (German localized version). Actually we did a MyBB install from scratch, so "just" the database kept.
After that we noticed, that ... several bugs have gone which is great. :-)
However, we also noticed that threads with many posts where the posts are longer (10+ KB), it takes 10 seconds and more to open the thread, ie the first page of the thread. Oftenly the server stops with a timeout error message.
This is with standard number of posts per page (=10 posts). In case I dare to increase the posts per page number to 30, the thread can't be opened anymore.
This slowness doesn't happen for "small" threads (ie threads with either just a few posts or with very short posts).
For example, a thread with 39 posts and each of them is about 15 KB. There are 4 pages. I enter the thread (1st page) and the small debug info on the bottom right part says:
Quote:Generated in 15.5910769 seconds (99.94% PHP / 0.06% MySQL)
MySQL Queries: 16 / Global Parsing Time: 0.0907409
PHP version: 5.2.0 / Server Load: 3.51 / GZip Compression: Enabled
For the second page it improves:
Quote:9.2104909 seconds (99.86% PHP / 0.14% MySQL)
MySQL Queries: 17 / Global Parsing Time: 0.0850379
PHP version: 5.2.0 / Server Load: 8.11 / GZip Compression: Enabled
Again for page 3:
Quote:Generated in 6.3836312 seconds (99.60% PHP / 0.40% MySQL)
MySQL Queries: 16 / Global Parsing Time: 0.3891921
PHP version: 5.2.0 / Server Load: 7.5 / GZip Compression: Enabled
and best for page 4:
Quote:Generated in 2.9697940 seconds (99.34% PHP / 0.66% MySQL)
MySQL Queries: 16 / Global Parsing Time: 0.0939159
PHP version: 5.2.0 / Server Load: 6.39 / GZip Compression: Enabled
Is it normal that the server spends >99% of the time in the PHP scripts but only <1% in the database?
This extreme slowness is new and just happened after we upgraded MyBB.
Then we converted the database table from latin1_swedish (or so) to UTF-8, like the MyBB Readmes suggest. But with not effect to the slowness.
(All the tables are now in UTF-8_general or so. We've done the conversion manually in phpMyadmin, because when we used the MyBB tool in the Admin-CP, it did cut all our table text fields which contained special chars right at the 1st special char. But since the tables are converted now, this doesn't matter, isn't it?)
We also updated PHP 4.x to PHP 5.2 but with no effect, unfortunately.
What's going on with my long threads? How could I find out the hot spot?
Thanks a lot.