MYSQL latency issue lags issue I have vps 1gb ram and currently running chat room in it which is based on php and mysql. ++++++++++++++ If You want to buy cheap web hosting then visit http://Listfreetop.pw and select the cheapest hosting. it can be suitable for all your needs. Top 200 best traffic exchange sites http://Listfreetop.pw/surf list of top gpt sites list of top ptc sites list of top ptp sites list of top crypto currency Wallets sites Listfreetop.pw Listfreetop.pw Listfreetop.pw +++++++++++++++ What is happening is sometimes chat lags and users can't see their message sent by them and its stucking for them. How to know which is causing this issue? When I see my vps box always 400mb is free or 300mb is free but yet its lagging. Could any one please give me some hint what causing this. Market Research What is the load at? IO could be also be slowing it. And any connection limits set in the web server or php. And could be mysql connections. If not sure of those, do google searches to find them. Beyond that, best to get a sysadmin to look at and optimize if possible. -Steven | u2-web@Cooini, LLC - Business Shared Hosting | Isolate sites with Webspaces | Site Builder | PHP-FPM | MariaDB WHMCS Modules: Staff Knowledgebase | Custom Modules and Hooks "It is the mark of an educated mind to be able to entertain a thought without accepting it" -Aristotle Is there a swap file? With less than 50% mem free, linux will tend to want to start swapping to disk. Check for the server limit settings and connection there might be the culprits What is the load at? IO could be also be slowing it. And any connection limits set in the web server or php. And could be mysql connections. If not sure of those, do google searches to find them. Beyond that, best to get a sysadmin to look at and optimize if possible. I am using this setting query_cache_limit = 16M query_cache_size = 0 in my mysql.cnf don't know if this is the problem. How much cache_size should be there? Market Research +-------------------+---------+ | Variable_name | Value | +-------------------+---------+ | Connections | 2606651 | | Threads_cached | 4 | | Threads_connected | 2 | | Threads_created | 6 | | Threads_running | 1 Are these correct or my mysql setting is messing Market Research I am using this setting query_cache_limit = 16M query_cache_size = 0 in my mysql.cnf don't know if this is the problem. How much cache_size should be there? have you tried using the tuning primer.sh file? https://launchpad.net/mysql-tuning-primer that should give you a benchmark to start optimising your values at least. Fast UK SSD Linux Web Hosting 24/7 UK Support | LiveChat | 99.9% Uptime https://www.umbrella-host.co.uk/ | 30 Minutes Average Response Time! host 9.5 rainier camper magento 2 hosting uk domaine h boillot internetonesystem.com host url domain people freecoins4all.com x hostel bucharest review domain levels www.manualhits.com