Kunena 7.1.1 & Kunena 6.4.17 – Security Updates Released

The Kunena team has announce the arrival of Kunena 7.1.1 [K 7.1.1] in stable which is now available for download as a native Joomla extension for J! 5.4.x/6.0.x./6.1.x./6.2.x This version addresses most of the issues that were discovered in K 6.2 / K 6.3 / K 6.4 / K7.0 and issues discovered during the last development stages of K 7.1
Just a reminder: K6.4.17 receives only securities fixes until end of 2026, so it's advised for users to upgrade to K7.1.

Topics that are moved into this category are generally considered to be closed. Users may want to add additional information but these topics should not be resurrected in order to discuss new problems or unrelated matters.

Question Massive CPU usage + tons of queries being issued from getLatest after update from 1.6.1 to 1.6.2

More
15 years 10 months ago #80421 by zevious
Hi all,

After installing the update from 1.6.1 to 1.6.2, my site basically ground to a crawl because it has the "latest topics" module loaded on every page in the footer.

Checking the database it seemed there were hundreds/thousands of the getLatest queries, specifically, this one:

$query = "Select COUNT(DISTINCT t.thread) FROM #__kunena_messages AS t
INNER JOIN #__kunena_messages AS m ON m.id=t.thread
WHERE m.moved='0' AND m.hold IN ({$this->hold}) AND m.catid IN ({$this->session->allowed})
AND t.hold IN ({$this->hold}) AND t.moved=0 AND t.catid IN ({$this->session->allowed}) {$latestcats} {$wheretime}";

commenting that function call out and letting the db threads finish returned the server to a normal usage.

Few notes: I have about 500k messages in my forum and about 35k users. However the server was at fairly low activity since it was at 2am when this happened. And it worked fine with that amount before I upgraded to 1.6.2, and upgraded the modules.

Any idea what's changed so much between 1.6.1 and 1.6.2 that would cause the huge CPU increase, or if that is, in fact, some sort of bug? Maybe the code around it is getting called over and over somehow? Not sure.

Please Log in or Create an account to join the conversation.

More
15 years 10 months ago #80471 by sozzled
It would be of considerable assistance to us, in order to provide you with the support that you have requested, if you could post your K 1.6 configuration report. Do you think you could make that possible, please?

Why have you put the "latest topics" module in the footer position of every page in your site? This seems counter-productive to normal forum usage and I don't know why you would want to do that. Anyway, let's see your configuration report for possible clues to the performance issues you are now having.

Please Log in or Create an account to join the conversation.

More
15 years 10 months ago #80472 by zevious
It's for SEO purposes. It would be nice if the latestposts module could be cached, by the way.

I changed it to use "Latest Posts" instead of "Latest Topics" so it's using a different function, and it works better; it's just the LatestTopics queries that are apparently beasts :-o But ideally I would like to use the Latest Topics instead since that isn't as redundant.

This message contains confidential information

Database collation check: The collation of your table fields are correct

Legacy mode: Disabled | Joomla! SEF: Enabled | Joomla! SEF rewrite: Enabled | FTP layer: Disabled |

This message contains confidential information
htaccess: Exists | PHP environment: Max execution time: 600 seconds | Max execution memory: 512M | Max file upload: 50M

This message contains confidential information

Joomla default template details : mm_sub | author: | version: | creationdate: 27 August 2009

Kunena default template details : Euro-Lila | author: Mizunga | version: 1.6.0 | creationdate: 2010-08-010

Kunena version detailled: Installed version: 1.6.2 | Build: 3894 | Version name: Team | Kunena detailled configuration:

Warning: Spoiler!

Third-party components: AlphaUserPoints: Disabled or not installed | CommunityBuilder: Disabled or not installed | Jomsocial: Installed (Version : 2.0.4) | UddeIm: Disabled or not installed

Third-party SEF components: sh404sef: Disabled or not installed | ARTIO JoomSEF: Disabled or not installed | AceSEF: Disabled or not installed

Plugins: System - Mootools12: Disabled | System - Mootools Upgrade: Enabled | JFirePHP: Disabled or not installed | Kunena Discuss: Disabled or not installed | Kunena Search: Disabled or not installed | My Kunena Forum Menu: Disabled or not installed | My Kunena Forum Posts: Enabled (Version : 1.6.0-RC1)

Modules: Kunena Latest: Enabled (Version : 1.6.2) | Kunena Stats: Enabled (Version : 1.6.0-RC2) | Kunena Login: Disabled or not installed

Please Log in or Create an account to join the conversation.

Time to create page: 0.129 seconds