temp search table full - any concern ?

Started by aegersz, September 23, 2017, 03:53:57 AM

Previous topic - Next topic

aegersz

hi, I saw this message in the log and wondered if I can make any settings changes to avoid this probably innocuous error.

[ERROR] /usr/sbin/mysqld: The table 'smf209_tmp_log_search_topics' is full

I hope that I'm not wasting your time.
The configuration of my Linux VPS (SMF 2.0 with 160+ mods & some assorted manual tweaks) can be found here and notes on my mods can be found here (warning: those links will take you to a drug related forum). My (House) music DJ dedication page is here

br360

Can you try to empty out the unimportant logs in your admin panel and see if that helps?

It's in Admin>Maintenance> Forum Maintenance> Routine

Kindred

Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

aegersz

Quote from: br360 on September 23, 2017, 04:06:53 AM
Can you try to empty out the unimportant logs in your admin panel and see if that helps?

It's in Admin>Maintenance> Forum Maintenance> Routine

I have never done that before ... Done !
The configuration of my Linux VPS (SMF 2.0 with 160+ mods & some assorted manual tweaks) can be found here and notes on my mods can be found here (warning: those links will take you to a drug related forum). My (House) music DJ dedication page is here

aegersz

Quote from: aegersz on September 23, 2017, 08:46:25 AM
Quote from: br360 on September 23, 2017, 04:06:53 AM
Can you try to empty out the unimportant logs in your admin panel and see if that helps?

It's in Admin>Maintenance> Forum Maintenance> Routine

I have never done that before ... Done !

I am sort of my host as i built the server and only pay for my virtual machine ... why do you recommend that, please ?
The configuration of my Linux VPS (SMF 2.0 with 160+ mods & some assorted manual tweaks) can be found here and notes on my mods can be found here (warning: those links will take you to a drug related forum). My (House) music DJ dedication page is here

Arantor

I'd be surprised if that fixed the problem.

I'd be interested to know if the table in question is MyISAM or InnoDB, and if MyISAM, how big the table's .myd file is. More likely, optimising the table in phpMyAdmin will fix it.

aegersz

Hi Arantor, funny that you should ask this as i have just moved to InnoDB and i optimise my tables daily.

I don't know if it fixed the problem but i have just restarted mysqld and will wait and see.

But i am unclear as to what the error actually means ? ie, what triggered it, do you know ?
The configuration of my Linux VPS (SMF 2.0 with 160+ mods & some assorted manual tweaks) can be found here and notes on my mods can be found here (warning: those links will take you to a drug related forum). My (House) music DJ dedication page is here

albertlast

Why no one recommand to him to truncate(delete all entries) the table?

aegersz

i have just been looking for that table and it does not exist now !

i guess the "tmp" part would explain that ...

Due to memory constraints, i have also "detuned" mysql and InnoDB to use the smallest possible viable memory usage ... could that be an aggravating factor ?

I only have 1 GB on my system and 2 GB SWAP (SSD) [Linux swapiness of 72] but that's all we can really afford as we run a free site.
The configuration of my Linux VPS (SMF 2.0 with 160+ mods & some assorted manual tweaks) can be found here and notes on my mods can be found here (warning: those links will take you to a drug related forum). My (House) music DJ dedication page is here

shawnb61

Quote from: albertlast on September 23, 2017, 08:57:47 AM
Why no one recommand to him to truncate(delete all entries) the table?

For fear of breaking search.   I would think a preferred method would be to delete and rebuild the index in the admin control panel.

But if that works, the benefit, I think,  would be temporary.

I prefer Arantor's suggestions.

More helpful info on Innodb settings in the user comments here:
https://dev.mysql.com/doc/refman/5.7/en/full-table.html
Address the process rather than the outcome.  Then, the outcome becomes more likely.   - Fripp

shawnb61

What search method is used, custom index, full text, or none?
Address the process rather than the outcome.  Then, the outcome becomes more likely.   - Fripp

aegersz

Quote from: shawnb61 on September 23, 2017, 09:07:52 AM

More helpful info on Innodb settings in the user comments here:
https://dev.mysql.com/doc/refman/5.7/en/full-table.html



excellent information and after reading it, I decided that the innodb_log_file_size should be doubled as it was smaller than the database (DB is about 60 MB only).

I will report back if that doesn't do the trick. thanks again.
The configuration of my Linux VPS (SMF 2.0 with 160+ mods & some assorted manual tweaks) can be found here and notes on my mods can be found here (warning: those links will take you to a drug related forum). My (House) music DJ dedication page is here

aegersz

Quote from: shawnb61 on September 23, 2017, 09:23:31 AM
What search method is used, custom index, full text, or none?

sorry to sound silly but what specifically are you referring to ? the sort options i allow for my forum or how SQL internal sorts are managed ? (or neither ??)
The configuration of my Linux VPS (SMF 2.0 with 160+ mods & some assorted manual tweaks) can be found here and notes on my mods can be found here (warning: those links will take you to a drug related forum). My (House) music DJ dedication page is here

Arantor

Quotei have just moved to InnoDB and i optimise my tables daily.

Don't.

Quotecould that be an aggravating factor ?

Yes.

QuoteWhat search method is used, custom index, full text, or none?

SMF fills that particular table in all cases.

aegersz

OK, cool. I will turn this off now.

in cron i had it daily and then i realised that I also had the SMF Scheduled task doing it TWICE a day

... but how often to optimise ?
The configuration of my Linux VPS (SMF 2.0 with 160+ mods & some assorted manual tweaks) can be found here and notes on my mods can be found here (warning: those links will take you to a drug related forum). My (House) music DJ dedication page is here

Arantor


aegersz

really ?

wow ... thanks for helping me out - i have NEVER worked with databases in my life and this SMF venture was the first time i had to every manage one.

Then those damned table crashes (yearly but still aggravating) and solid SMF Support advice led me to implement InnoDB and here i am.

still struggling but with your help, hopefully less so.  8)
The configuration of my Linux VPS (SMF 2.0 with 160+ mods & some assorted manual tweaks) can be found here and notes on my mods can be found here (warning: those links will take you to a drug related forum). My (House) music DJ dedication page is here

Arantor

OK, so here's the reason.

When MySQL puts data into a table, it leaves some space for new records, and for those existing records to be changed.

If you optimise an InnoDB table, it compresses the table and removes all that extra space left for edits, so any time you have to edit a row or add items to the table, it might have to move data around to insert it.

aegersz

yes, that makes sense.

i never really came across much information about implementing InnoDB (or didn't look hard enough) so i'm glad to have checked my logs, had this problem, got LOTS of your input (which surprised me) and hopefully now i will have a more robust and easier to maintain database.

I want to achieve 100% DB availability for the next year !

marking SOLVED until it recurrs, if ever.
The configuration of my Linux VPS (SMF 2.0 with 160+ mods & some assorted manual tweaks) can be found here and notes on my mods can be found here (warning: those links will take you to a drug related forum). My (House) music DJ dedication page is here

Advertisement: