MySQL Forums
Forum List  »  Performance

Re: Server just hanging (Copying to tmp table)
Posted by: Erin ONeill
Date: September 26, 2005 11:52AM

Hey Thomas -
Sorry this post slipped by me....

It seems to me (on this Monday morning) that you've set up the system ulimits but not the user. From my past experience with Oracle on solaris I'd set the ulimits in the Oracle startup script, but mysql has this very cool thing where you can set a user's ulimits in config files. I set them up here:

/etc/security/limits.conf

This is what I used with 4 gb of ram .... if you have more ram you probably want to set it higher.
mysql soft nofile 202860
mysql hard nofile 405720
mysql soft nproc 33792
mysql hard nproc 67584

There you can give different apps, different ulimits. Don't forget that the system needs some (I've read the system needs about 2,000) and that if you are running apache & Mysql on the system you'll want to be sure that neither one of them can crash the system.

Where are you with this?

erin

Options: ReplyQuote


Subject
Views
Written By
Posted
8011
December 07, 2006 10:30AM
Re: Server just hanging (Copying to tmp table)
4391
September 26, 2005 11:52AM
9388
September 23, 2005 01:56AM
4688
October 05, 2005 04:58AM
5843
October 05, 2005 11:49PM
5183
October 06, 2005 01:34AM
6405
October 06, 2005 04:57PM
6215
January 21, 2008 10:14AM
5634
January 21, 2008 10:53AM
5065
May 19, 2008 09:41AM
5322
February 05, 2008 10:27AM
5801
March 12, 2008 08:37AM
5903
November 14, 2008 12:31AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.