Mysql Usage: High CPU %, How Do I Find Out Who's Using What
Aug 3, 2008
just noticed mysql cpu usage has shot up from its usual 5-10% cpu to 30%+. domains are as normal and no extraordinary php processes.
any way i can tell what users are most heavily running mysql? (as in number queries / slow queries etc?) i know mysqladmin processlist but that only gives me a snapshot, whereas i want to see over 24 hours, who used mysql the most...
How to find what Perl script is causing high CPU usage?
I logged into my CentOS box tonight and notice after viewing the output of the "top" command that there are the following lines of output that have me concerned. What command can I use to find the source of the Perl script that is causing the CPU spike?
It seems it's been running for some time too. PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 30120 apache 25 0 6908 4544 1216 R 99.8 0.2 13416:07 perl 30654 apache 25 0 8028 4508 1212 R 99.4 0.2 13417:22 perl 21273 apache 25 0 7584 4528 1200 R 98.1 0.2 2225:12 perl 20516 apache 25 0 6760 4540 1232 R 96.8 0.2 2221:30 perl
I have a site that is eating up my server resources and need to know what the best solution for this is. I'm thinking of getting another server just for mysql but do not know what specs the server should be to handle the current traffic/database load and have the site run smoothly without slowing down to a snail's pace.
An alternative is to get another server just for the videos being served and leave the database and html on the current server. This is where I'm stuck and don't know what route to take with this.
I've attached screenshots of top and bandwidth usage per day. Hopefully with this information you could tell me if I need another server or if there are any things I can do to the current server to help things move faster.
I need some help my CPU (Intel Core 2 Duo 1.7 Ghz) always gets high usage from mysql sometimes its using 95% cpu etc... How can I modify my.cnf to use less CPU and more ram since I have 3gb ram installed?
I got 5 wordpress and 5 statics website on this server and 100 visitors by 24H00 each day.
Question 1 : Why the memory is so low and the swap so high ? Question 2 : Why i don't find high usage process in top command ? Question 3 How can i resolve this problem ?
I'm picking up a client who is a video production company and hosts a lot of their work for their clients on the web. They have two sites right now for two different branches of what they do, but they are beginning to scale up a bit and want to switch from a local ISP hosting package to something more commercial. I like the idea of a VPS, but their current budget is rather low. Because of that, I am a bit attracted to hosting packages from site5 and dreamhost (both of which I've heard good and bad things about).
Ideally, I would be looking for a VPS along the lines of:
50-75GB disk space 256-512MB RAM 750GB-1TB Bandwidth Linux OS with Shell Access cPanel or Plesk Control panel
It'd be nice to keep their budget around $50/mo, but I know that might be asking a lot. They have two websites currently for their production needs. What would be the advantages of a VPS over multiple hosting accounts at Site5 ($7.50/mo) or Dreamhost ($6/mo)?
I have server with P4 ( 2.4ghz) 2gb ram with cpanel and centos.
When I get more than 300 users online on my forum. Server load remains under 2 but Ram usage get's high upto 90% every 10 to 3 minutes. I have to restart apache in order to keep it down.
Am using Hypervm,my all vms are not using more than 512 MB memory but when i click on server as localhost the there is show maximum memory usage I have total 8 GB it always show 5-6 GB usage and never drop down, How can I fix this matters?
i have a quad core Intel XEON 5130 @ 1.60GHz . with 6giga now of memory . i have about 300 account in it . CENTOS Enterprise 4.6 installed .
the probleme is that the memory server it used in totaly . after i was just 2Gb of ram , but sometimes the server lod arrive at 50% . for that i have added more memory (4Gb) , when i added it the memroy usage is always about 4giga sometimes about 3980Mb . the load is normal , but sometimes the server loas arrive at 50% or 60% (this is just in specific times) . after i have decided to add 2 Gb more , now is 6gb in the server . but also all the 6giag of ram is used , the load is normal but memory is all used , look to the top command
now iam haveing more that 0.50-1.20 cpu useage,also cpu useage is also increased i hosted only 6 site out what only one site use MSQL all other site are plain download site,how to reduce the cpu load can u figure me out this issue also give me some tips to reduce the cpu usage
I noticed high cpu usage on my server since a couple of days ago. I neither updated software nor changed the configurations on the server. The server load was about 0.5 ~ 1.0 but now the average CPU load does not go below 5.0
when I stop apache (1.3) the load goes down and as soon as I start it up the load start increasing.
I checked for DoS but it seems nothing exists of this type.
I tried to follow the access_log file but from the first view nothing is strange there.
I don't have any control panel on the server. just Apache, FTP and SSH installed.
Since yesterday named started to use more cpu than usual. Techs "refuse" to work with that issue and saying that its's normal. Though all the time had no problems, haven't added hundreds of domains yesterday and there were no changes from my end.
There was one change from techs side however.
"the MX record for the domain was going to localhost, rather than the domain name. I have changed the MX record to domain..."
Anything I should check? Logs doesn't provide anything valuable, just notices.
I am running a youtube clone on a VPS with 512mb ram at Lunarpages.
Whenever I log into Plesk, I find that my system usage is extremely high. 90%++ even up to 100%. However my CPU usage is often less than 5%.
This problem often occurs when there is slightly more visitors on my site. I am talking about only 30++ visitors and this problem will occur and my site slows to a crawl and I have to restart the VPS.
i have a problem with my server it is a Xeon with 2Gb ram, i have a igh swap usage and when it reach the size of 4gb that i have set it go in kernel panic, this is the actual value
I purchased a VPS at wiredtree to upload a site that is in the works so that it would be "ready" once it was launched (had it sitting on a shared server before). So I have this domain on there, as well as a small wordpress blog. In total I'm get a very miniscule trickle of visitors to these websites (as they are not officially launched), around 100 visits per day, many of which are only 1 pageview visits.
My problem is, my server is already idling over its memory limit of 256mb. This is causing major slowdowns, and processes like cpanel are constantly be killed and I can't login.
Does anyone have any idea what is causing my high memory usage? I just can't image that the visitors I am getting are doing much, as for the majority of the day I have absolutely no one viewing my domains, yet my memory usage is still over the limit.
Wiredtree support says its up to me to optimize my msql/php scripts etc for low mem usage, but I don't see how this will help when there is no one using them in the first place.
For some reason cpanellogd always had huge memory usage in the realm of 40-90% when running logs for one particular site, which inturn sends the server load to 25-40.
What can cause this? I have delete logs after stats run enabled and all the usuall.
I was wondering is someone can shed some light on a curious situation for me. I am running a linux server (Gentoo) and the CPU usage spikes to 90-100% but the load of the server when viewed by top is only 0.4 - 1.5 (max). The memory is OK with .5 gig free and there is no paging going on. So my question is: Is this server over used or not?
Below is the output of top 3 times over aprox 2 min... please enlighten me... :-)
a few times, my host contacted me and said that my account is suspended due to high usage of server resources.
I have 3 sites using SMF (a forum script.) I have around 8500 visitors and 3 million page views per month in total.
can this be a reason of high usage?
if it's what's the meaning of terabyte traffic limit ? which you can never use
I asked to my host if they could let me know what's causing high server resources usage. here is the answer:
We do not know which domain or script caused this high usage, it is your responsibility to investigate. I would suggest that you go through your raw access logs to see the most requested pages and then investigate those further. After you find the pages responsible, please optimize them so you are not using so many server resources.
so if a host wants simply to restrict traffic limit, they have a pre-reason under hand.high server usage! yes but how will I know that? how will I trust that it's true?
when I ask why my sites are down, they can easily tell me that it's because of high server usage!
I have just moved my sites from shared host to a vps. After several initial problems (cpanel issue, config not set up correctly, memory spikes and sites down every morning due to backup and stats) I thought everything was going to be ok. hmm.
My server load starts off fine first thing (less than 1) then creeps up nearly 1 per hour, ie been 3.5 hours now and it is at 2.57. Sites are ok at the moment but yesterday load got up to nearly 7 and sites were extremely slow.
CPU usage is HIGH for one site and goes up very quickly throughout the day. Yesterday it reached well over 90%. First thing today it was already amber and showing 14%. It is now 70.54% and shows below it :
Top Process %CPU 80.2 spamd child Top Process %CPU 79.8 spamd child Top Process %CPU 79.4 spamd child
I have a ticket open and they (Liquid Web) they are not sure what the deal is, but are apparently monitoring it to see if they can isolate the cause of the problem. But that was a couple of days ago and now the ticket is due for closure.
I telephoned them (expensive as I'm in the UK!) and raised my concerns, but was just told that everything looked ok on the vps, cpu usage was in fact not high and to ignore the warnings.
So, I am posting here to see if anybody can help me get to the root of this.
I understand that spamd child is to do with email / spam assassin?
My problem is that this is the first vps I have had and don't have a clue now where to go or what to do.
Anybody understand about spamd child that can explain it to a poor dumb blonde and how to fix it?
I have seen posts that some hosts suspend a user after they so many seconds of high server resource usage... I was wondering how this is done so that I can do this on my dedicated server.
Today I upgraded my dual opteron dedicated server from a 10mbps port to 100mbps. While the number of apache access have dropped by about a quarter my CPU usage has increased also by about a quarter, my CPU is touching on 95-100% now.
What’s most likely to be the cause?
What’s also interesting is my network port is only showing 20mbps usage, nowhere near the 100mbps its been upgraded to.