![]() |
vb_taggregate_temp_... table grow!
i checked my mysql db, its still has over 70 temp tables like this:
vb_taggregate_temp_1400969880 this temp tables are not deleted automatically. sever manager says its because of cron job, but which one? |
You can just delete them, make sure your MySQL user has full permissions to the database.
|
thisproblem is allready long time. i dont want delete them everytime manuelly.
i need a solution. |
The solution is to make sure your MySQL user has been granted ALL permissions to the database. If they don't have all permissions, like delete, then you will see the problem you are seeing.
|
thanks ive told this to the server manager.
also found here similar idea: http://www.cutehits.com/2011/12/why-...gregate_temp_/ i ll report if its fixed. --- what does this query mean, its all the time running.: Code:
SELECT thread.threadid, thread.lastpost, thread.lastposter, thread.lastpostid, thread.replycount |
They dont fixed it... and i got 50 more of this tables:
vb_taggregate_temp_1401475080 what does this table create? we dont even use TAGs for posts. /edit maybe the solution. lets see after threadviews table repair if its ok. http://www.vbulletin.com/forum/forum...-being-created --------------- Added [DATE]1401738524[/DATE] at [TIME]1401738524[/TIME] --------------- ive set the cron for update THREAD HITS to every 10 min maybe this causing it. it could be caused due overload timeout sometimes... ive tested run cron manuelly and sometimes this error: Database error in vBulletin 3.8.4: Code:
Invalid SQL: |
this "sorting result" query.
why no one can explain why this query often slow and apear all the time? | Query | 1 | Sorting result | SELECT thread.threadid, thread.lastpost, thread.lastposter, thread.lastpostid, thread.replycount | -i found this line in /tags.php -ive set to update thread views every 20 min with cron. sometimes this cron get timeout error tested to run manuelly . also i used googled very long and dont find any result. i think everytime this task crashes it created a temp table... and this all also the query are connected. |
How busy is your forum and how many posts does it have? I'm not an expert on these things but I'm curious because I'm wondering if there is some problem or if it could just be that the database is too busy.
|
The server load isnt high atm its at 7 avareage load.
and it loocks like this Code:
| 40481 | db_example | localhost | db_example | Query | 8 | Sorting result | SELECT thread.threadid, |
Quote:
|
we have many links like this as buttons:
forumdisplay.php?f=621&prefixid=example but prefixes arent tags or? we dont even use tags, i just want to know if this is normal this query what it does and why it comes so often?.. ps. this is ticket answer from server manager coz overload: Code:
Hello, high load on your mysql server. |
I'm not sure, but if you're sure that the query is the one from tags.php, then I don't see how that would happen unless someone was actually requesting tags.php. You should be able to see that in the web server logs.
Or maybe there is a similar query somewhere and it's not from tags.php? If you don't use tags.php, maybe try removing that file from your server and see what happens (save a copy of course so you can put it back). |
i allready tested renaming the tags.php. yes maybe this query is also in some other file.
whats the command to check web server query log in detail? except this one: mysqladmin -u root -p proc stat maybe its about thread views counter? /Edit its also not search.php. tested and renamed this file, query still apear answer from support: Quote:
|
Im not entirely sure what you are asking.
Your mysql user needs full permissions to create and delete TEMPORARY tables. I have no idea why you are talking about tags, since they dont seem to have anything to do with the original issue. The query (in post#6) is the cron based thread view counts update, which should be running once per hour. |
Quote:
How many CPU's does this server have ? |
i just try to figure out how to fix this issue i have atm this query running 20 times with
600 query length server has 8 cores running 2 websites.(wordpress and vbulletin) . i just installed mysql workbench and checked this long querys. they are ALL from the same (sub )FORUmid 1101 only this forum has 750 000 threads. Code:
what can i do to prevent this query to process for testing? ive allready deactivated all setting if forum management . like thread views, search indexing, set forum incative, etc.. and i still see this query with forumid 1101 /edit now i noticed that most slower querys 1-20 length atm are not "Sorting result" . they are "sending data" Code:
-- Connection Id: 275535 _____________________________________ i checked debug in forumdisplay with id 1101. i think this is the query: Code:
SELECT thread.threadid, /edit also tested without forumdisplay.php shothread.php this query still apear. this url for example loads very long: forumdisplay.php?f=1101&order=desc&page=101 maybe server managers assumption was right that vbthreads or some else table need innondb because it cant handle that mutch posts. --------------- Added [DATE]1403468724[/DATE] at [TIME]1403468724[/TIME] --------------- so paul you also dont know what this query does exectly and how to fix? or at least test somehow to exclude this forum to process this query. |
Have you tried disabling the archive? Someone was having a problem like this a few weeks ago and it turned out to be spiders seaching the archive.
|
yes ive allready not activated archive. yes its also possible bots are crawling this pages causing more load. but ive tested allready Disallow: /*f=1101* in robots.txt for 5 minits no effect.
i just tested this httacess deny: <files forumdisplay.php> order allow,deny deny from all </files> this query stopped... how to deny forumdisplay.php?f=1101 for temporary solution |
I don't know how to do htaccess, but maybe you could go to Forum Permissions and edit the pemissions for Registered Users and make the forum unreadable.
|
ok its seems like vbulletin cant handle forumdisplay pages in very big forums with so many threads fast.
and search bots also overloading in forumdisplay with forumid 1101 we try innondb today |
a lot of bots dont recognise robots.txt but follow some of the advice here http://antezeta.com/news/avoid-search-engine-indexing. For .htaccess use this
Code:
RewriteEngine On Your .htaccess file must reside in the forum root for this (you might have to set your control panel to view hidden files if you dont see it) |
1. i dont want block all useragent especially not google....
i need to block them from only 1101 forumdisplay what ive done with this robot.txt line (hope this is correct): Disallow: /*forumdisplay.php?f=1101&order=desc&page=* but this is the emergency solution because its not a real fix of the bad performance of very big forumdisplay pages. and how i see no one can realy help here . and i allready use your ban spider addon. thanks for it, but we have sometimes problem with it. if server crashes the cloudflare.com 502 error page is shown, after user refresh page. user get blocked/redirected from this addon. you know why? |
It will be to do with cloudflare caching i would imagine as my mod doesn't store any user/visitor details. As for your search engines try this, put this in your header template (or even forumdisplay but i think it must always use the header template)
HTML Code:
<if condition="in_array($forumid, array(X,Y,Z)) AND "$show['search_engine']"> |
just tested htaccess code on the wordpress site on same server. connections/sec dropped from 200 to 10
with blocking this bastards: Baiduspider|yandex|anywordyoulike|like so my robot.txt code not allways work you say? seems to. but i will test your code tomorrow and check querys. thanks, |
I put these in anywordyoulike|like to show you can include anything in the string, they're not actual bots ;) Robots.txt is only obeyed by good legitimate (but maybe unwanted) bots, for the likes of Baidu...etc you can actually get in contact with them and ask them to stop indexing your site.
|
so baidu ignore robots.txt?
|
It seems that way as do many others like AhrefsBot, sosospider, Aboundex and even Bing to name but a few!
--------------- Added [DATE]1403918146[/DATE] at [TIME]1403918146[/TIME] --------------- For a more complete .htaccess block look here http://wpsecure.net/bad-bot-list/ |
i test it . SetEnvIfNoCase or rewrite Rules better?
both codes from the link dont work i think coz i see in cloudflare baidu still crawling.... first rewrite gives an error. can i use this bots listed there for your write here? or any better list. in your plugin ive a very big list but i think it will not work with that list because there are not complete spider names RewriteCond %{HTTP_USER_AGENT} (googlebot|bingbot|Baiduspider|yandex|bing) [NC] RewriteRule .* - [R=403,L] |
All times are GMT. The time now is 04:59 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|