LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Mysql performance isssue (https://www.linuxquestions.org/questions/linux-server-73/mysql-performance-isssue-4175477311/)

martinlangley 09-16-2013 09:39 AM

Mysql performance isssue
 
In the evening the database becomes very unresponsive and often it rejects new connections with 'Too many connections'. How would you analyze and solve this problem?

TB0ne 09-16-2013 10:10 AM

Quote:

Originally Posted by martinlangley (Post 5028541)
In the evening the database becomes very unresponsive and often it rejects new connections with 'Too many connections'. How would you analyze and solve this problem?

No idea, since you provide NO DETAILS at all. Version of MySQL? Linux? Number of users? How are they hitting the database? What have you done/tried??

And this also sounds very much like a verbatim homework question, like your other thread. Have you done ANY research on how to diagnose MySQL problems???

carlosinfl 09-16-2013 11:12 AM

Please let us know some details about your configuration so we can better help you...

OS = ?
RAM = ?
VM or Physical = ?

How many users / applications are hitting your database in the 'evening' when you see this issue? Can you use 'ps' in command line and show us your processes running on the problem system?

Also let us know what version of MySQL you're using.

gdr 09-16-2013 12:38 PM

Start with raising the limit of connections, but if your database is slow now, it's going to be even slower - it just won't display connect errors anymore.

Code:

max_connections = 250
in my.cnf

colucix 09-17-2013 06:13 AM

Per the LQ Rules, please do not post homework assignments verbatim. We're happy to assist if you have specific questions or have hit a stumbling point, however. Let us know what you've already tried and what references you have used (including class notes, books, and Google searches) and we'll do our best to help. Also, keep in mind that your instructor might also be an LQ member.

TenTenths 09-17-2013 06:24 AM

Doing a little bit of (ironically) googling shows that this is more like a section from a Google e-mail interview questionaire.

carlosinfl 09-17-2013 11:16 AM

Ah I'm guessing that's why the OP didn't respond w/ specifics. It's just a homework question or generic scenario it seems...

ahmadmusfikin 09-17-2013 11:48 PM

you can add the specification of hardware RAM, Processor and hard drive, and maintenance the user connection

TB0ne 09-18-2013 08:57 AM

Quote:

Originally Posted by ahmadmusfikin (Post 5029661)
you can add the specification of hardware RAM, Processor and hard drive, and maintenance the user connection

Yes, they OP was asked all of that previously. See posts #2 and #3.


All times are GMT -5. The time now is 06:38 PM.