If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > URGENT - SQL is eating my CPU

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-15-11, 20:41
M4r5h4ll M4r5h4ll is offline
Registered User
 
Join Date: Apr 2011
Posts: 2
URGENT - SQL is eating my CPU

Hello,

i have a dedicated server which is:
AMD Athlon(tm) II X4 605e Processor
16GB Rams
1.5TB
---

Now i have SQL which is sometimes using up to 390% of my CPU & causing a HUGEEEEEEEEEEE server load.

that's my my.cnf:

[mysqld]
max_connections = 1000
table_cache = 4096
thread_cache_size = 64
key_buffer = 64M
query_cache_size = 128M
join_buffer_size = 256K
myisam_sort_buffer_size = 64M
thread_concurrency = 5

[isamchk]
key_buffer = 256M
sort_buffer_size = 256M
read_buffer = 2M
write_buffer = 2M

Need help to fix it ASAP please server will bomb soon :/
Reply With Quote
  #2 (permalink)  
Old 04-16-11, 02:59
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,525
i don't know if i'll be able to help, i just wanted to say that nobody is going to be able to help you if you don't show the SQL that's causing the problem

__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #3 (permalink)  
Old 04-16-11, 05:55
M4r5h4ll M4r5h4ll is offline
Registered User
 
Join Date: Apr 2011
Posts: 2
Quote:
Originally Posted by r937 View Post
i don't know if i'll be able to help, i just wanted to say that nobody is going to be able to help you if you don't show the SQL that's causing the problem

i have no idea i checked the biggest sql status by phpmyadmin all looks fine!!!
so not even sure which one or i would stop it for now.
Reply With Quote
  #4 (permalink)  
Old 04-16-11, 06:49
healdem healdem is offline
Jaded Developer
 
Join Date: Nov 2004
Location: out on a limb
Posts: 9,250
check the log files
examine the applications, look at the SQL being used
check the indexes
EXPLAIN queries
__________________
I'd rather be riding my Versys or my Tiger 800 let alone the Norton
Reply With Quote
  #5 (permalink)  
Old 04-17-11, 05:39
mike_bike_kite mike_bike_kite is offline
vaguely human
 
Join Date: Jun 2007
Location: London
Posts: 2,519
Quote:
Originally Posted by M4r5h4ll View Post
i have SQL which is sometimes using up to 390% of my CPU
I assume in your universe that the rules of maths are slightly different to our own?
__________________
Mike
Reply With Quote
  #6 (permalink)  
Old 04-17-11, 08:15
SJahanzaib SJahanzaib is offline
Registered User
 
Join Date: Apr 2011
Location: Pakistan
Posts: 28
is this MYSQL ?

is this on Windows or Linix ?
Reply With Quote
  #7 (permalink)  
Old 04-18-11, 05:33
mathukumali mathukumali is offline
Registered User
 
Join Date: Jul 2010
Location: ISHHHH
Posts: 130
Quote:
Originally Posted by M4r5h4ll View Post
i have no idea i checked the biggest sql status by phpmyadmin all looks fine!!!
so not even sure which one or i would stop it for now.
we all need some clarity regarding your question then some one can help u from it try to elaborate it
__________________
WiTh Tnks & ReGaRdS
mAtHuKuMaLi
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On