Hi
I'm sorry for this newbie question, beceause I'm new to the Linux, and I did a search on the forum, but maybe my keyword was not exact so that I wasn't found any tips I wish.
Today I received the following error message when I visit my wordpress website
Code:
Warning: mysqli_real_connect(): (HY000/2002): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in /..../wp-includes/wp-db.php on line 1444
Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /..../wp-includes/wp-db.php on line 1474
Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in /..../wp-includes/wp-db.php on line 1474
I restarted the server, and now the website is working fine, however, I don't understand what's mean about the errors, so I opened a ticket and received the following reply:
Quote:
Your Linode was OOMing, meaning something inside your node is consuming all of the available virtual memory. You can see this for yourself by logging into Lish and viewing the output of the "logview" command within the console [0].
These messages you see written to your console indicate that your Linode had exhausted its allotted RAM resources and invoked the OOM-Killer. The OOM-Killer is designed to identify the highest scoring processes and kill them in order to free up memory required by the system.
When you rebooted your Linode, it came back online - however, you will want to take measures to optimize your services to reduce your overall RAM and swap usage. To begin with, I'd suggest implementing the low-memory settings advised in our Troubleshooting guide to minimize your risks of OOMing again [1].
But I don't know why when I enter "logview" command, it shows "logview: command not found", so how can I find out the process which is consuming all of the available virtual memory?
Thanks