"Too many open files" problem with mysql-proxy 0.8.1
Once a day or so I'll get a block of this in the mysql-proxy log:
2012-07-14 19:19:44: (critical) network-
2012-07-14 19:19:44: (message) proxy-plugin.
2012-07-14 19:19:44: (critical) proxy-plugin.
2012-07-14 19:19:44: (critical) (lua-error) [/usr/local/
/usr/local/
2012-07-14 19:19:45: (critical) last message repeated 1 times
2012-07-14 19:19:45: (critical) proxy-plugin.
2012-07-14 20:40:46: (critical) last message repeated 1 times
2012-07-14 20:40:46: (critical) network-
2012-07-14 20:40:46: (message) proxy-plugin.
2012-07-14 20:40:46: (critical) proxy-plugin.
2012-07-14 20:58:26: (critical) last message repeated 2 times
2012-07-14 20:58:26: (critical) network-
2012-07-14 20:58:26: (message) proxy-plugin.
2012-07-14 20:58:26: (critical) proxy-plugin.
Sometimes it resolves itself by shutting down and restarting, other times I have to go in and restart it manually. Of course, there are front-end (website) ramifications while this is going on.
We're using mysql-proxy as an extended middleware cache - no connection pooling and no load balancing of servers. When we remove the proxy the front end errors go away but performance is horrible, so it's our preference to keep something in the middle and mysql-proxy is preferred to other methods reviewed (moving caching into mysql or rails).
In mysql I have innodb_open_files set to 500 which seems more than adequate for our purposes. The server itself is running on an AWS instance with 15GB of RAM, Ubuntu 10.04.3 LTS (kernel version 2.6.32-309-ec2) and mysql 5.5.8.
Any insights, tips etc are most welcome - I'm fresh out of ideas and this is making me crazy.
Thanks!
Todd
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- MySQL Proxy Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Todd S for more information if necessary.