LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-17-2013, 08:08 AM   #1
sergibondarenko
LQ Newbie
 
Registered: May 2013
Posts: 2

Rep: Reputation: Disabled
MySQL optimization or why the server is worsened


Hello

Please advise me how can I optimize my MySQL server. Or advise which way to look. Maybe someone had similar problems?

Over the past two weeks the MySQL server dropped 2 times. I began searching for ways to optimize the server.

Overall the picture like that:
There is a separate MySQL server (Debian), it stores the information for the call center built on top of the Asterisk open source IP PBX (separate server). Almost all information of the call center stored in the MySQL: call queues, agents, IVR values, CDR etc. The Asterisk constantly interacts with the MySQL server to get or to put info. Average number of phone calls for the system is about 70 calls simultaneously.

Recently I observed a delay of the redistribution of clients for a free call center agents. A delay was increased from 5 second up to 60 seconds and sometimes even more. I suspected InnoDB locks and transactions deadlocks. And then the MySQL server started falling.

In SHOW ENGINE INNODB STATUS\G I see a lot of locks and transactions that hang over 40 sec but I can not figure out hot to deal with them. And is it necessary?
2721452-*** (2) TRANSACTION:
2721453:TRANSACTION 0 1345044118, ACTIVE 45 sec, process no 23678, OS thread id 140176187664128 starting index read, thread declared inside InnoDB 0
2721454-mysql tables in use 1, locked 1
2721455-10 lock struct(s), heap size 3024, 7 row lock(s), undo log entries 2
Also in the output is a bunch of information but I do not know what conclusions could be made for those values. Please look and tell me what values are most suspicious on your point of view.
Complete log of half a month can be found in the file *show_engine_innodbAndProc_stat_10Apr2013

Peak CPU load by mysqld is quit high as can be seen from the graphs. Memory and disk are not heavily loaded. See all the graphics in *graphs
The list of MySQL tables and their engines can be seen in *mysql_engines
MySQL global variables in *mysqlGvars.txt
The MySQL server hardware settings in *phys_mysql_server

*All files can be downloaded by the link http://rapidshare.com/files/3386491301/alldata.zip
 
Old 05-18-2013, 07:49 AM   #2
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Code:
-rw-r--r-- 1 jj users 167 May 18 2013  8:45 AM alldata.zip
^-- boned.
This server virtual or physical?
 
Old 05-19-2013, 10:40 AM   #3
sergibondarenko
LQ Newbie
 
Registered: May 2013
Posts: 2

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Habitual View Post
Code:
-rw-r--r-- 1 jj users 167 May 18 2013  8:45 AM alldata.zip
^-- boned.
This server virtual or physical?
The server is physical as you can see from the phys_mysql_server file.
 
Old 05-20-2013, 08:18 AM   #4
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by sergibondarenko View Post
The server is physical as you can see from the phys_mysql_server file.
what file, the zip has NO content?

post it at http://susepaste.org or any other clip..
n/m. I just got bored.

Good luck.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
mysql optimization -- Copying to tmp table on disk yoachan Linux - Server 4 11-23-2010 08:24 AM
Server Optimization dougwo Linux - Server 2 08-12-2010 06:18 AM
LXer: Simpler, Faster, Stronger: MySQL Optimization Tips LXer Syndicated Linux News 0 11-13-2009 01:10 PM
LXer: Mysql Optimization Tips LXer Syndicated Linux News 0 01-04-2007 04:33 AM
Mysql optimization fullgore Linux - Server 2 11-09-2006 11:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:32 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration