Solved

Why does my MySQL instance crash for no good reason?

Posted on 2014-02-13
1
269 Views
Last Modified: 2014-02-19
I've got a lot of ETL reading and writing to my DB all day, every day.  It runs quickly but about 1x per day, MySQL just crashes.  I just restart it when I notice, but then my ETL is backlogged.  I've added a scheduled 'net start mysql' that repeats every 5 minutes on Task Scheduler, but that's a bandaid, not a fix.  

If I check the *.err file at C:\Program Files\MySQL\MySQL Server 5.5\data, I don't see much of use in there.  It'll say "InnoDB: Database was not shut down normally!" but that's it.  

My guess is that these crashes happen because of highly concurrent reads/writes and also some nasty Select queries that are called by a script on Windows scheduler every now and then.

How can I go about getting a better clue of what causes the mysql service to just stop?  Are there any settings in the options file can look at / adjust to help avoid crashes?
0
Comment
Question by:ducky801
1 Comment
 
LVL 76

Accepted Solution

by:
arnold earned 500 total points
Comment Utility
To determine the cause you need to monitor its memory use.
Look at the error log.
Look at the system event log to make sure windows isn't shutting it down because it is trying to get too many resources or it transgresses application boundaries.
If you do not already have phpmyadmin installed on your web server through which you can access the mysql stats and get a report that may help in resolving your issue.

I doubt the inserts/writes are the cause.  Do you have reports queries ran on/against the mysql and that is when those crashes are commonly seen?
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Introduction In this installment of my SQL tidbits, I will be looking at parsing Extensible Markup Language (XML) directly passed as string parameters to MySQL 5.1.5 or higher. These would be instances where LOAD_FILE (http://dev.mysql.com/doc/refm…
Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now