Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
craigf136 Posted April 25, 2015 Posted April 25, 2015 Hey Folk'sI'm having issues with MYSQL gone away errors with IPS4 - these errors are abundant when running the background processes manually (log I attached for IPS support was 19MB for one day, after running background processes manually). IPS say it's a setup issuesI don't disbelieve them, however, I'm not having any downtime just slow loading on forum, gallery, downloads, I suspect it's to do with max connections and or timeout on queries? I also receive the followingAs well as "Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'"I was not having this issue on 3.4.7We are with Hostgator at the moment we have CENTOS 5.11 x86_64, 2 cores, 2GB ram, mysql 5.6.23, PHP 5.4.29, memcached installed, cached pages for guests is disabled in ACP.I'm not saying optimising isn't required as it is, I have included results from mysqltuner and my.cnf settings as they are, but I would need suggestions as to what would be best settings to optimise mysql / server for better performance and increase the overall speed. For example on IPS, the page loads are pretty quick. I'm considering moving to www.knownhosting.com for the following package.https://www.knownhost.com/managed-ssd-vps-packages.htmlSSD-4Fully Managed & Optimized5.25GBGuaranteed RAM80GBRAID10 SSD StorageEqual Share24 CPU Cores10000GBPremium BandwidthCompare SSD VPS Plans$90$264$1026MonthlyQuarterlyYearlyCentral (TX) datacenter onlyAll Specs Order NowUnlimited domainsFull root access24/7/365 supportFully managedcPanel, DirectAdmin, or PleskFree backups1-click installers availableThe open ticket I have basically says the followingThe problem in your case seems to be that the sql server loses connection resulting in an "mysql has gone away" message. This is only shown when software cannot see the database server. Clicking on "try again" results in this continuing as normal. It does seem to be happening quite often though. Do you have any other points where you seem to loose connection on your site?To which we don't, we just seem to have slow loading of the forum, gallery, downloads application, the last response receives was.While I can't check every single entry, as there are 87,000 lines in that file, I have checked a lot of them, and every one is a "MySQL server has gone away" error. This is a server issue, I'm afraid, and something with which we unfortunately can't assist, as it's outside the scope of our support. The SQL server "going away" is always caused by its configuration or load. It may need to be tuned (mysqltuner.pl is suggested) or otherwise optimized.-------- Performance Metrics -------------------------------------------------[--] Up for: 1d 6h 40m 50s (2M q [19.575 qps], 44K conn, TX: 59B, RX: 9B)[--] Reads / Writes: 67% / 33%[--] Total buffers: 208.0M global + 4.2M per thread (100 max threads)[OK] Maximum possible memory usage: 633.0M (30% of installed RAM)[OK] Slow queries: 0% (26/2M)[OK] Highest usage of available connections: 23% (23/100)[OK] Key buffer size / total MyISAM indexes: 16.0M/1.6G[OK] Key buffer hit rate: 99.8% (136M cached / 327K reads)[OK] Query cache efficiency: 73.5% (1M cached / 1M selects)[!!] Query cache prunes per day: 40967[OK] Sorts requiring temporary tables: 0% (142 temp sorts / 40K sorts)[!!] Joins performed without indexes: 19214[!!] Temporary tables created on disk: 52% (36K on disk / 68K total)[OK] Thread cache hit rate: 99% (40 created / 44K connections)[!!] Table cache hit rate: 0% (75 open / 38K opened)[OK] Open file limit used: 1% (140/14K)[OK] Table locks acquired immediately: 99% (805K immediate / 806K locks)[OK] InnoDB buffer pool / data size: 128.0M/56.7M[OK] InnoDB log waits: 0-------- Recommendations -----------------------------------------------------General recommendations:   Run OPTIMIZE TABLE to defragment tables for better performance   Adjust your join queries to always utilize indexes   When making adjustments, make tmp_table_size/max_heap_table_size equal   Reduce your SELECT DISTINCT queries without LIMIT clauses   Increase table_open_cache gradually to avoid file descriptor limits   Read this before increasing table_open_cache over 64: http://bit.ly/1mi7c4CVariables to adjust:   query_cache_size (> 16M)   join_buffer_size (> 1.0M, or always use indexes with joins)   tmp_table_size (> 32M)   max_heap_table_size (> 32M)   table_open_cache (> 2000)tmp_table_size = 32Mmax_heap_table_size = 32Mquery_cache_limit=1Mquery_cache_size=16M ## 32MB for every 1GB of RAMquery_cache_type=1max_connections=100collation_server=utf8_unicode_cicharacter_set_server=utf8# delayed_insert_timeout=40interactive_timeout=10wait_timeout=30connect_timeout=20thread_cache_size=64key_buffer=16M ## 32MB for every 1GB of RAMjoin_buffer=1Mmax_connect_errors=20max_allowed_packet=268435456#table_cache=1024#record_buffer=1Msort_buffer_size=1M ## 1MB for every 1GB of RAMread_buffer_size=1M ## 1MB for every 1GB of RAMread_rnd_buffer_size=1M ## 1MB for every 1GB of RAMthread_concurrency=2 ## Number of CPUs x 2myisam_sort_buffer_size=16Mopen_files_limit=14000innodb_buffer_pool_size=134217728default-storage-engine=MyISAMinnodb_file_per_table=1We have issues with "too many connections" but again not downtimeFri, 24 Apr 2015 03:48:03 +0000 (Severity: 0)85.113.55.152 - domainToo many connections | File                                                                      | Function                                                                     | Line No.         | |----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------| | /system/Db/Db.php                                                         | [IPS\Db\_Exception].__construct                                              | 121              | '----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------' | /system/Data/Store/Database.php                                           | [IPS\_Db].i                                                                  | 80               | '----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------' | /system/Data/Store/Database.php                                           | [IPS\Data\Store\_Database].loadIntoMemory                                    | 96               | '----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------' | /system/Data/Store/Database.php                                           | [IPS\Data\Store\_Database].get                                               | 143              | '----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------' | /system/Data/AbstractData.php                                             | [IPS\Data\Store\_Database].exists                                            | 111              | '----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------' | /system/Data/Store.php                                                    | [IPS\Data\_AbstractData].__isset                                             | 159              | '----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------' | /system/Data/Store.php                                                    | [IPS\Data\_Store].__isset                                                    | 154              | '----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------' | /system/Settings/Settings.php                                             | [IPS\Data\_Store].__isset                                                    | 121              | '----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------' | /system/Settings/Settings.php                                             | [IPS\_Settings].loadFromDb                                                   | 88               | '----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------' | /system/Theme/Theme.php                                                   | [IPS\_Settings].__get                                                        | 375              | '----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------' | /system/Theme/Theme.php                                                   | [IPS\_Theme].designersModeEnabled                                            | 184              | '----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------' | /system/Dispatcher/Standard.php                                           | [IPS\_Theme].i                                                               | 50               | '----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------' | /init.php(426) : eval()'d code                                            | [IPS\Dispatcher\_Standard].baseCss                                           | 17               | '----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------' | /system/Dispatcher/Front.php                                              | [IPS\Dispatcher\featuredcontent_hook_includeJSandCSS].baseCss                | 474              | '----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------' | /system/Dispatcher/Front.php                                              | [IPS\Dispatcher\_Front].baseCss                                              | 51               | '----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------' | /system/Dispatcher/Dispatcher.php                                         | [IPS\Dispatcher\_Front].init                                                 | 86               | '----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------' | /index.php                                                                | [IPS\_Dispatcher].i                                                          | 13               | '----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------'------------------------------------------------------------------------Fri, 24 Apr 2015 03:48:03 +0000 (Severity: 0)85.113.55.152 - domain/index.php?/files/Too many connections | File                                                                      | Function                                                                     | Line No.         | |----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------| | /system/Db/Db.php                                                         | [IPS\Db\_Exception].__construct                                              | 121              | '----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------' | /system/Data/Store/Database.php                                           | [IPS\_Db].i                                                                  | 80               | '----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------' | /system/Data/Store/Database.php                                           | [IPS\Data\Store\_Database].loadIntoMemory                                    | 96               | '----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------' | /system/Data/Store/Database.php                                           | [IPS\Data\Store\_Database].get                                               | 143              | '----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------' | /system/Data/AbstractData.php                                             | [IPS\Data\Store\_Database].exists                                            | 111              | '----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------' | /system/Data/Store.php                                                    | [IPS\Data\_AbstractData].__isset                                             | 159              | '----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------' | /system/Data/Store.php                                                    | [IPS\Data\_Store].__isset                                                    | 154              | '----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------' | /system/Settings/Settings.php                                             | [IPS\Data\_Store].__isset                                                    | 121              | '----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------' | /system/Settings/Settings.php                                             | [IPS\_Settings].loadFromDb                                                   | 88               | '----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------' | /system/Theme/Theme.php                                                   | [IPS\_Settings].__get                                                        | 375              | '----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------' | /system/Theme/Theme.php                                                   | [IPS\_Theme].designersModeEnabled                                            | 184              | '----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------' | /system/Dispatcher/Standard.php                                           | [IPS\_Theme].i                                                               | 50               | '----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------' | /init.php(426) : eval()'d code                                            | [IPS\Dispatcher\_Standard].baseCss                                           | 17               | '----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------' | /system/Dispatcher/Front.php                                              | [IPS\Dispatcher\featuredcontent_hook_includeJSandCSS].baseCss                | 474              | '----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------' | /system/Dispatcher/Front.php                                              | [IPS\Dispatcher\_Front].baseCss                                              | 51               | '----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------' | /system/Dispatcher/Dispatcher.php                                         | [IPS\Dispatcher\_Front].init                                                 | 86               | '----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------' | /index.php                                                                | [IPS\_Dispatcher].i                                                          | 13               | '----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------'------------------------------------------------------------------------Fri, 24 Apr 2015 03:48:04 +0000 (Severity: 0)85.113.55.152 - domain/index.php?/staff/Too many connections | File                                                                      | Function                                                                     | Line No.         | |----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------| | /system/Db/Db.php                                                         | [IPS\Db\_Exception].__construct                                              | 121              | '----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------' | /system/Data/Store/Database.php                                           | [IPS\_Db].i                                                                  | 80               | '----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------' | /system/Data/Store/Database.php                                           | [IPS\Data\Store\_Database].loadIntoMemory                                    | 96               | '----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------' | /system/Data/Store/Database.php                                           | [IPS\Data\Store\_Database].get                                               | 143              | '----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------' | /system/Data/AbstractData.php                                             | [IPS\Data\Store\_Database].exists                                            | 111              | '----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------' | /system/Data/Store.php                                                    | [IPS\Data\_AbstractData].__isset                                             | 159              | '----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------' | /system/Data/Store.php                                                    | [IPS\Data\_Store].__isset                                                    | 154              | '----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------' | /system/Settings/Settings.php                                             | [IPS\Data\_Store].__isset                                                    | 121              | '----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------' | /system/Settings/Settings.php                                             | [IPS\_Settings].loadFromDb                                                   | 88               | '----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------' | /system/Theme/Theme.php                                                   | [IPS\_Settings].__get                                                        | 375              | '----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------' | /system/Theme/Theme.php                                                   | [IPS\_Theme].designersModeEnabled                                            | 184              | '----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------' | /system/Dispatcher/Standard.php                                           | [IPS\_Theme].i                                                               | 50               | '----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------' | /init.php(426) : eval()'d code                                            | [IPS\Dispatcher\_Standard].baseCss                                           | 17               | '----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------' | /system/Dispatcher/Front.php                                              | [IPS\Dispatcher\featuredcontent_hook_includeJSandCSS].baseCss                | 474              | '----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------' | /system/Dispatcher/Front.php                                              | [IPS\Dispatcher\_Front].baseCss                                              | 51               | '----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------' | /system/Dispatcher/Dispatcher.php                                         | [IPS\Dispatcher\_Front].init                                                 | 86               | '----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------' | /index.php                                                                | [IPS\_Dispatcher].i                                                          | 13               | '----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------'------------------------------------------------------------------------Fri, 24 Apr 2015 03:48:04 +0000 (Severity: 0)85.113.55.152 - domainToo many connections | File                                                                      | Function                                                                     | Line No.         | |----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------| | /system/Db/Db.php                                                         | [IPS\Db\_Exception].__construct                                              | 121              | '----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------' | /system/Data/Store/Database.php                                           | [IPS\_Db].i                                                                  | 80               | '----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------' | /system/Data/Store/Database.php                                           | [IPS\Data\Store\_Database].loadIntoMemory                                    | 96               | '----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------' | /system/Data/Store/Database.php                                           | [IPS\Data\Store\_Database].get                                               | 143              | '----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------' | /system/Data/AbstractData.php                                             | [IPS\Data\Store\_Database].exists                                            | 111              | '----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------' | /system/Data/Store.php                                                    | [IPS\Data\_AbstractData].__isset                                             | 159              | '----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------' | /system/Data/Store.php                                                    | [IPS\Data\_Store].__isset                                                    | 154              | '----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------' | /system/Settings/Settings.php                                             | [IPS\Data\_Store].__isset                                                    | 121              | '----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------' | /system/Settings/Settings.php                                             | [IPS\_Settings].loadFromDb                                                   | 88               | '----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------' | /system/Theme/Theme.php                                                   | [IPS\_Settings].__get                                                        | 375              | '----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------' | /system/Theme/Theme.php                                                   | [IPS\_Theme].designersModeEnabled                                            | 184              | '----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------' | /system/Dispatcher/Standard.php                                           | [IPS\_Theme].i                                                               | 50               | '----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------' | /init.php(426) : eval()'d code                                            | [IPS\Dispatcher\_Standard].baseCss                                           | 17               | '----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------' | /system/Dispatcher/Front.php                                              | [IPS\Dispatcher\featuredcontent_hook_includeJSandCSS].baseCss                | 474              | '----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------' | /system/Dispatcher/Front.php                                              | [IPS\Dispatcher\_Front].baseCss                                              | 51               | '----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------' | /system/Dispatcher/Dispatcher.php                                         | [IPS\Dispatcher\_Front].init                                                 | 86               | '----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------' | /index.php                                                                | [IPS\_Dispatcher].i                                                          | 13               | '----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------'------------------------------------------------------------------------Fri, 24 Apr 2015 03:48:03 +0000 (Severity: 0)85.113.55.152 - domain/index.php?/contact/Too many connections | File                                                                      | Function                                                                     | Line No.         | |----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------| | /system/Db/Db.php                                                         | [IPS\Db\_Exception].__construct                                              | 121              | '----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------' | /system/Data/Store/Database.php                                           | [IPS\_Db].i                                                                  | 80               | '----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------' | /system/Data/Store/Database.php                                           | [IPS\Data\Store\_Database].loadIntoMemory                                    | 96               | '----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------' | /system/Data/Store/Database.php                                           | [IPS\Data\Store\_Database].get                                               | 143              | '----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------' | /system/Data/AbstractData.php                                             | [IPS\Data\Store\_Database].exists                                            | 111              | '----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------' | /system/Data/Store.php                                                    | [IPS\Data\_AbstractData].__isset                                             | 159              | '----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------' | /system/Data/Store.php                                                    | [IPS\Data\_Store].__isset                                                    | 154              | '----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------' | /system/Settings/Settings.php                                             | [IPS\Data\_Store].__isset                                                    | 121              | '----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------' | /system/Settings/Settings.php                                             | [IPS\_Settings].loadFromDb                                                   | 88               | '----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------' | /system/Theme/Theme.php                                                   | [IPS\_Settings].__get                                                        | 375              | '----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------' | /system/Theme/Theme.php                                                   | [IPS\_Theme].designersModeEnabled                                            | 184              | '----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------' | /system/Dispatcher/Standard.php                                           | [IPS\_Theme].i                                                               | 50               | '----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------' | /init.php(426) : eval()'d code                                            | [IPS\Dispatcher\_Standard].baseCss                                           | 17               | '----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------' | /system/Dispatcher/Front.php                                              | [IPS\Dispatcher\featuredcontent_hook_includeJSandCSS].baseCss                | 474              | '----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------' | /system/Dispatcher/Front.php                                              | [IPS\Dispatcher\_Front].baseCss                                              | 51               | '----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------' | /system/Dispatcher/Dispatcher.php                                         | [IPS\Dispatcher\_Front].init                                                 | 86               | '----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------' | /index.php                                                                | [IPS\_Dispatcher].i                                                          | 13               | '----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------'Â
Canal World Posted June 18, 2015 Posted June 18, 2015 I cant say I have gone into the details of your post, but we spent two weeks banging our head against a brick wall of online technical help and 'your database is big' 'talk to your software provider' with our sire before moving to a host that specialised in forums and eCommerce can I can safely say I wont be looking back.Rang them today at 4:46 to cancel the service now we have moved, and got an automated message suggesting I wing back between 8 and 5  ugghhh!!! Done. Daniel
Recommended Posts
Archived
This topic is now archived and is closed to further replies.