Plesk 12 Debian 7 MySQL : CPU usage is too high - mysql

I have a problem with MySQL and MySQL CPU usage at Plesk.
I have a news site with Joomla, and about 100-150 online user.
CPU: AMD Opteron(tm) Processor 6366 HE 3 core
Memory: 4GB
HDD: 250 GB
Plesk 12 licence
Debian 7
My site is very slow, it opens about 10-12 sec. my pages, I see MySQL CPU usage is about 85.2%, when there are 148 user online at same time...
Can anyone help me about MySQL settings? I wouldn't like to believe that server is weak for about 1000 online users....
Here is my MySQL config: my.cnf
What can I setup with that for good working?

Related

mysql configuration on 2 core 2.90GZ, 26GB of Memory windows DB server

I am very relatively new on handling db server and all my life I am have manage a database good for development, now it is my first time handling an enterprise level database with 0 knowledge on configuration.
On Postgresql there are tools online that could assist me but on mysql I cannot find a tool that will help me distinguish a good configuration on our DB server.
Here are the specs:
OS: Windows server 2012 (64 bit)
Ram: 24 GB
Processor: 2 core 2.90GHZ
this server will be used primarily for a ticketing system that generates at least > 1000 issue tickets per day, add to that it will query to retrieve info and also 2000 users will be using it assuming 1000 user will be active on a day shift, 1000 user will be active on the night shift.
Many thanks guys.

Much slower MySQL performance on virtualized server

I'm in the process of both virtualizing and updating an old Linux server running a reporting system developed in house (Apache, MySQL, PHP).
The old physical server is running 64-bit Ubuntu 10.04.3 LTS, MySQL 5.1.41 and PHP 5.3. The server has an Intel Xeon CPU X3460 # 2.80GHz (4 cores), 4GB RAM.
We have ESXI 5.5 running on an HP DL380G6 with 2 x Intel Xeon X5650 6 Core 2.66ghz and 32GB RAM.
I created a new VM with 4 cores and 4GB RAM, and did a clean install of 64-bit Ubuntu 16.04.4 LTS, MySQL 5.7.21 and PHP 7.0, migrated our app, and everything is running much slower. I believe it's MySQL because when doing the same direct query on the old physical server vs the new virtualized one, queries can take 8 seconds (VM) instead of 1 (Physical). The tables all have appropriate indexes, running "EXPLAIN" on each server provides the same results, yet one is substantially slower. When a page is running numerous complex queries, it can take a minute+ to load instead of a few seconds.
Any idea why this can be? Same dataset, same query, same engine (MyISAM). The VM has much more recent versions of everything, same number of cores and same RAM. I even tried doubling the VM CPU to 2 sockets, 4 cores and 8GB RAM, and it doesn't seem to have a substantial impact.
I've compared the MySQL configuration and nothing is jumping out at me at being very different.
What might I be missing here? Is it the virtual host hardware?
Did you upgrade the vmware tools? if not do so.
Then, on this ESXi host, do you have other VMs on it? If yes, I would advise you to create a resource pool and then configure the resource limits.
In the resource pool the amount of resource you assign will be in a way reserved for your VM, so you won't have to share with other VMs.

High CPU usage on couchbase server with moderate load

I am using Couchbase Server on stage environment. Things were working fine until yesterday. But since today I am observing high CPU usage when the load is increased moderately. (PFA)
Couchbase cluster configuration:-
3 node cluster running (4.5.1-2844 Community Edition (build-2844))
each having m4.2xlarge(8 cores, 32 GB RAM) AWS machines.
Data RAM quota: 25000 MB
Index RAM quota: 2048MB
It has 9 buckets. And used bucket is having 9 GB RAM (i.e. 3 GB per cluster)
Note: - Since we are using community edition, each node is running Data, Full Text, Index, and query service.
Let me know if I've done some misconfiguration or if any optimization required.

Servers compare, to run BIG MySql DB

I have an question about this 2 dedicated servers,...
WATH is BETTER to run an website with an large MySql Data Base (4 - 6 GB)
------My actual server-------
Intel Xeon E5-1650v2 - 6c/12t - 3,5 / 3,8 GHz
Ram: 128 GB
Memory: DDR3 ECC 2133 MHz
Disks: 3x600GB SAS HARD + Cache 80Go SSD
------I want to change to this server----------
Intel Xeon 2x E5-2630v3 - 16c/32t - 2,4 / 3,2 GHz
Ram: 128 GB
Memory: DDR4 ECC 1866 MHz
Disks: 2x480GB SSD SOFT
Of corse, the second server, have beeter procesor, better memory... but the disks?
About my website:
Is an very light web, dont use images, videos,... I dont have big files, and is developed with laravel and run in cPanel (centOS)
The problem is the DB, becouse all content (for example, images) are requested from external websites, and all this routes are stored in the DB. So, for now, my DB have 4GB, but in the next monts, can have 6GB.
I need an very fast server for the DB.
MANY THANKS.
Your database should rock on either of those specs. Your entire database can fit in RAM and that will definitely make your web app/DB very responsive. Your database is really not large. 6 GB these days for a DB is small-to-medium size.
I'd go the SSD right. If you can, go with RAID-1 for data protection.

MYSQL suddenly uses CPU even when no one user is connected to Mysql

Site is an ecommerce site: 5 Million records in table
Two servers: one for webserver and other contains mysql
Search is happenning through Sphinx server. So search queries do not come to MySQL
Mysql configuration: Dual Quad Core Zeoo 2.0, 146 GB, 16 GB RAM.
Webserver configuration: Dual Quad Core Zeoo 2.0, 146 GB, 16 GB RAM.
For past four days I find MySQL is using CPU continuously for at least 6-7 hours in a day. It becomes normal after that. Even if I restart, it doesnt stop. It again uses CPU in 2 to 3 mins. I even tried stopping Apache and made sure no one is connecting to Mysql.
I just noticed the same issue on my server and tried to do something about it. I upgraded mysql and all it did was reduce the amount of CPU used - from 100% to 55%
I think my issue is Leap Second related - I notice your question is 15 days after the lead second.
I found:
EC2 Amazon Linux AMI MySQL CPU # 62% When Idle?
Which lead me to:
Why Does the Leap Second Cause Problems?
Lastly I did the classic windows fix and rebooted the linux box - this worked (did not check if kernel had been upgraded in mean time)