MySQL performing too badly under heavy load - urgent hlp needed

2006-07-27 Thread Ratheesh K J
Hello all,

Stuck up with a major problem. Urgent hlp required

MySQL seems to be performing too bad during heavy load on the server. Queries 
which normally take around 5 secs to complete are taking more than 1000 secs to 
complete during load.

What could be the reason. Show processlist shows many process in sending data 
state. All tables are of INNODB type. But we are not running any transactions 
as yet.

The server is clogged due to many httpd requests (150 Max). All the httpd 
requests are in W state ( means sending response ). What could be causing this. 
Is it MySQL or is it Apache...

Any suggestions would help...


Thanks,

Ratheesh K J

Re: MySQL performing too badly under heavy load - urgent hlp needed

2006-07-27 Thread Martin Jespersen
I doubt apache is to blame. 5 seconds for a query on a website is 
extremely slow, so if that is your normal results, then you have a 
problem there already. I've been building database driven websites for 
around 11 years and i don't think i can remember a single time i went 
into production with a single query that was slower than 0.1 second, 
unless it was something very rarely used for administration purposes.


From the top of my head i'd say your problem is either

a) poor datamodel design which forces slow queries
b) poor usage of indexes in the database (use explain to check)
c) non-optimized configuration of the server (have you tuned the server 
parameters to the way you use the server?)

d) insufficient hardware for your needs
e) any combination of the above



Ratheesh K J wrote:

Hello all,

Stuck up with a major problem. Urgent hlp required

MySQL seems to be performing too bad during heavy load on the server. Queries 
which normally take around 5 secs to complete are taking more than 1000 secs to 
complete during load.

What could be the reason. Show processlist shows many process in sending data 
state. All tables are of INNODB type. But we are not running any transactions 
as yet.

The server is clogged due to many httpd requests (150 Max). All the httpd 
requests are in W state ( means sending response ). What could be causing this. 
Is it MySQL or is it Apache...

Any suggestions would help...


Thanks,

Ratheesh K J


--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



Re: MySQL performing too badly under heavy load - urgent hlp needed

2006-07-27 Thread Miles Thompson

At 09:38 AM 7/27/2006, Ratheesh K J wrote:


Hello all,

Stuck up with a major problem. Urgent hlp required

MySQL seems to be performing too bad during heavy load on the server. 
Queries which normally take around 5 secs to complete are taking more than 
1000 secs to complete during load.


What could be the reason. Show processlist shows many process in sending 
data state. All tables are of INNODB type. But we are not running any 
transactions as yet.


The server is clogged due to many httpd requests (150 Max). All the httpd 
requests are in W state ( means sending response ). What could be causing 
this. Is it MySQL or is it Apache...


Any suggestions would help...


Thanks,

Ratheesh K J


So, what have you tried? Give us some information -- knowing which version 
you are running would be a good start.


Are the queries slow if run from the command line?
Are there enough threads in Apache?

Have you rebuilt your indexes? Dropped them and replaced.
Run optimize database?
Done a dump and restore?


Miles Thompson


--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.1.394 / Virus Database: 268.10.4/401 - Release Date: 7/26/2006



--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



Re: MySQL performing too badly under heavy load - urgent hlp needed

2006-07-27 Thread rouvas
On Thursday 27 July 2006 17:00, Martin Jespersen wrote:
 I doubt apache is to blame. 5 seconds for a query on a website is
 extremely slow, so if that is your normal results, then you have a
 problem there already. I've been building database driven websites for
 around 11 years and i don't think i can remember a single time i went
 into production with a single query that was slower than 0.1 second,
 unless it was something very rarely used for administration purposes.

  From the top of my head i'd say your problem is either

 a) poor datamodel design which forces slow queries
 b) poor usage of indexes in the database (use explain to check)
 c) non-optimized configuration of the server (have you tuned the server
 parameters to the way you use the server?)
 d) insufficient hardware for your needs
 e) any combination of the above

f)  not enough memory, that forces major swapping activity

-Stathis


 Ratheesh K J wrote:
  Hello all,
 
  Stuck up with a major problem. Urgent hlp required
 
  MySQL seems to be performing too bad during heavy load on the server.
  Queries which normally take around 5 secs to complete are taking more
  than 1000 secs to complete during load.
 
  What could be the reason. Show processlist shows many process in sending
  data state. All tables are of INNODB type. But we are not running any
  transactions as yet.
 
  The server is clogged due to many httpd requests (150 Max). All the httpd
  requests are in W state ( means sending response ). What could be causing
  this. Is it MySQL or is it Apache...
 
  Any suggestions would help...
 
 
  Thanks,
 
  Ratheesh K J


-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



Re: MySQL performing too badly under heavy load - urgent hlp needed

2006-07-27 Thread Brent Baisley

Do a show status and check on what mysql is doing. I would start by looking 
at:
threads_created - if this is high, increase your thread_cache_size. This means MySQL is busy creating and destroying threads instead 
of reusing them. This can take a toll on the OS.


Opened_tables - if this number is high/climbing, MySQL is buys opening and closing tables, which means your table_cache is probably 
too low. Compare open_tables to table_cache, open_tables should be lower.


Show variables will help you see your current settings. Some things can be changed on the fly, like the thread cache, so can can do 
some things without taking MySQL down.


- Original Message - 
From: Ratheesh K J [EMAIL PROTECTED]

To: mysql@lists.mysql.com
Sent: Thursday, July 27, 2006 8:38 AM
Subject: MySQL performing too badly under heavy load - urgent hlp needed


Hello all,

Stuck up with a major problem. Urgent hlp required

MySQL seems to be performing too bad during heavy load on the server. Queries which normally take around 5 secs to complete are 
taking more than 1000 secs to complete during load.


What could be the reason. Show processlist shows many process in sending data state. All tables are of INNODB type. But we are not 
running any transactions as yet.


The server is clogged due to many httpd requests (150 Max). All the httpd requests are in W state ( means sending response ). What 
could be causing this. Is it MySQL or is it Apache...


Any suggestions would help...


Thanks,

Ratheesh K J 



--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]