FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » General » Database discussions » Tip for mysql
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Tip for mysql [message #1794] Tue, 23 April 2002 01:36 Go to previous message
JayЩ~ is currently offline  JayЩ~   United States
Messages: 37
Registered: April 2002
Location: Florida, USA
Karma:
Member
I ran into errors that would actually lock up my Linux servers, never thought that would happen, and it turned out that the amount of traffic we were generating was using every available connection for mysql. Mysql qould just go in an endless loop waiting for a connection to free up. This is what I had to do.

In your boot script, I use a plain startup script called startup in init.d, add these entries

echo 65536 > /proc/sys/fs/file-max
echo 8192 > /proc/sys/fs/dquot-max
echo 1024 > /proc/sys/fs/super-max

Then in your /etc/my.cnf add

[safe_mysqld]
open-files-limit=8192

This should allow 8192 connections and files. It's worked for me with no problems anymore. Only one side effect I have seen is XWindows seems to be even more slow than before, then again XWindows is a resource hog.


Picture the daffodil. And while you do that, I'll be over here going through your stuff.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Next Topic: binding mysql to localhost (I/O)
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat May 18 07:58:37 GMT 2024

Total time taken to generate the page: 0.04189 seconds