- Posts: 18
- Thank you received: 0
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.
Question Massive CPU usage + tons of queries being issued from getLatest after update from 1.6.1 to 1.6.2
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.
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.
Blue Eagle vs. Crypsis reference guide
Read my blog and
Please Log in or Create an account to join the conversation.
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.
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 informationhtaccess: Exists | PHP environment: Max execution time: 600 seconds | Max execution memory: 512M | Max file upload: 50M
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![th]Kunena config settings:[/th]
board_title Materia Magica Game Forum board_offline 0 board_ofset 0 offline_message <h2>The Materia Magica Message Board is currently offline.</h2>
<div>Please be patient; we should be back in a few minutes!</div>enablerss 1 enablepdf 0 threads_per_page 25 messages_per_page 10 messages_per_page_search 20 showhistory 1 historylimit 6 shownew 1 jmambot 1 disemoticons 0 template Euro-Lila showannouncement 1 avataroncat 0 catimagepath category_images/ showchildcaticon 1 annmodid 72 rtewidth 450 rteheight 340 enableforumjump 1 reportmsg 1 username 0 askemail 0 showemail 0 showuserstats 1 showkarma 0 useredit 1 useredittime 120 useredittimegrace 120 editmarkup 1 allowsubscriptions 1 subscriptionschecked 0 allowfavorites 1 maxsubject 80 maxsig 300 regonly 0 changename 0 pubwrite 0 floodprotection 0 mailmod 0 mailadmin 0 captcha 0 mailfull 0 allowavatar 1 allowavatarupload 0 allowavatargallery 1 avatarquality 100 avatarsize 2048 allowimageupload 0 allowimageregupload 1 imageheight 800 imagewidth 600 imagesize 150 allowfileupload 0 allowfileregupload 1 filetypes txt,rtf,pdf,doc,docx,xls,xlsx,ppt,pptx filesize 5000 showranking 1 rankimages 0 avatar_src fb_profile pm_component userlist_rows 0 userlist_online 0 userlist_avatar 0 userlist_name 0 userlist_username 0 userlist_posts 1 userlist_karma 1 userlist_email 0 userlist_usertype 0 userlist_joindate 0 userlist_lastvisitdate 0 userlist_userhits 0 latestcategory 0 showstats 0 showwhoisonline 0 showgenstats 1 showpopuserstats 0 popusercount 10 showpopsubjectstats 0 popsubjectcount 5 usernamechange 0 rules_infb 1 rules_cid 16213 help_infb 1 help_cid 16212 showspoilertag 1 showvideotag 1 showebaytag 0 trimlongurls 1 trimlongurlsfront 40 trimlongurlsback 20 autoembedyoutube 1 autoembedebay 0 ebaylanguagecode en-us fbsessiontimeout 1800 highlightcode 0 rss_type topic rss_timelimit month rss_limit 100 rss_included_categories rss_excluded_categories rss_specification rss2.0 rss_allow_html 1 rss_author_format name rss_author_in_title 1 rss_word_count 0 rss_old_titles 1 rss_cache 1800 fbdefaultpage categories default_sort asc alphauserpointsnumchars 0 sef 1 sefcats 0 sefutf8 0 showimgforguest 1 showfileforguest 1 pollnboptions 8 pollallowvoteone 1 pollenabled 1 poppollscount 5 showpoppollstats 0 polltimebtvotes 00:15:00 pollnbvotesbyuser 100 pollresultsuserslist 0 maxpersotext 50 ordering_system replyid post_dateformat datetime_today post_dateformat_hover ago hide_ip 1 js_actstr_integration 0 imagetypes jpg,jpeg,gif,png checkmimetypes 1 imagemimetypes image/jpeg,image/jpg,image/gif,image/png imagequality 100 thumbheight 32 thumbwidth 32 hideuserprofileinfo put_empty integration_access joomla integration_login jomsocial integration_avatar jomsocial integration_profile jomsocial integration_private jomsocial integration_activity jomsocial boxghostmessage 0 userdeletetmessage 0 latestcategory_in 1 topicicons 1 onlineusers 0 debug 0 catsautosubscribed 0 showbannedreason 0 version_check 0 showthankyou 1 showpopthankyoustats 0 popthankscount 5 mod_see_deleted 0 bbcode_img_secure text listcat_show_moderators 1 lightbox 1 activity_limit 150 show_list_time 720 show_session_type 0 show_session_starttime 0 userlist_allowed 1
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.