Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 30th October 2007, 22:58
Berry Berry is offline
Member
 
Join Date: Nov 2006
Posts: 69
Thanks: 10
Thanked 1 Time in 1 Post
Send a message via Skype™ to Berry
Exclamation "Too many open files in system" problems

Hello guys!

I hope some of you, Linux guru's could help me with problem that I face from day to day.

I have had "Perfect Debian Sarge, with ISPConfig", upgraded to Etch, HE-VPS with 512MB RAM (guaranteed) etc. Now, every day around a 8PM there comes to server overload (CPU goes over 10-15) and server stops to respond for minute or two. Log files and my tries of shell commands return "Too many open files in system"

Please advise me how could I try to isolate the source of the problem? And maybe any idea what could be doing that problem?

Thank you in advance for any suggestion!
Reply With Quote
Sponsored Links
  #2  
Old 31st October 2007, 00:52
volksman volksman is offline
Senior Member
 
Join Date: May 2007
Posts: 124
Thanks: 2
Thanked 16 Times in 14 Posts
Default

check your crontabs....as root run:

crontab -e

You will also want to check what scripts are set in /etc/cron.d* (there are a bunch of them).

that should be a start....you can also try tailing your /var/log/messages (or /var/log/syslog) file for more details. Also the 'top' command may help...
Reply With Quote
  #3  
Old 9th November 2007, 23:52
Berry Berry is offline
Member
 
Join Date: Nov 2006
Posts: 69
Thanks: 10
Thanked 1 Time in 1 Post
Send a message via Skype™ to Berry
Default -

nothing suspicous to me. Here is a PS AUX output during problem :

Code:
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root         1  0.0  0.0   1868   640 ?        Ss   init
root      5934  0.0  0.0   1736   640 ?        S    /usr/sbin/syslogd --no-forward
root     12160  0.0  0.0   1668   392 ?        S    /usr/sbin/courierlogger -pid=/var/run/courier/authdaemon/pid
root     12161  0.0  0.0   1860   584 ?        S    /usr/lib/courier/courier-authlib/authdaemond
root     12208  0.0  0.0   1672   320 ?        S    /usr/sbin/courierlogger -pid=/var/run/courier/imapd.pid -sta
root     12209  0.0  0.0   1776   544 ?        S    /usr/sbin/couriertcpd -address=0 -maxprocs=40 -maxperip=20 -
root     12236  0.0  0.0   1672   320 ?        S    /usr/sbin/courierlogger -pid=/var/run/courier/imapd-ssl.pid
.... COURRIER PROCESSES......
lp       13557  0.0  0.0   1772   488 ?        Ss   /usr/sbin/lpd -s
root     13637  0.0  0.0   2596  1324 ?        S    /bin/sh /usr/bin/mysqld_safe
mysql    13734  1.5  0.7 203432 31416 ?        Sl   /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --u
root     13736  0.0  0.0   1480   508 ?        S    logger -p daemon.err -t mysqld_safe -i -t mysqld
ossecm   15970  0.0  0.0   1896   492 ?        S    /var/ossec/bin/ossec-maild
root     15984  0.0  0.0   1748   420 ?        S    /var/ossec/bin/ossec-execd
ossec    16004  0.0  0.0   2228  1100 ?        S    /var/ossec/bin/ossec-analysisd
root     16048  0.0  0.0   1604   432 ?        S    /var/ossec/bin/ossec-logcollector
root     16080  1.1  0.0   1764   488 ?        S    /var/ossec/bin/ossec-syscheckd
ossec    16113  0.0  0.0   1772   428 ?        S   /var/ossec/bin/ossec-monitord
...POSTFIX PROCESSES....
root     22332  0.0  0.0   4856  1212 ?        Ss   /usr/sbin/sshd
root     22429  0.0  0.0   2188   804 ?        Ss   /usr/sbin/xinetd -pidfile /var/run/xinetd.pid -stayalive
root     25655  0.0  0.0   4060  1308 ?        Ss   /usr/sbin/ntpd -p /var/run/ntpd.pid -u 107:110 -g
root     25715  0.0  0.0   2132   884 ?        Ss   /usr/sbin/cron
root     28064  0.0  0.2  13116  8376 ?        Ss   /root/ispconfig/httpd/bin/ispconfig_httpd -DSSL
root     28078  0.0  0.0   2564  1252 ?        S    /bin/bash /root/ispconfig/sv/ispconfig_wconf
108      28102  0.0  0.1  13116  7216 ?        S    /root/ispconfig/httpd/bin/ispconfig_httpd -DSSL
root      5513  0.0  0.0   7800  2356 ?        Ss   sshd: root@pts/0
root      8146  0.0  0.0   5028  1684 pts/0    Ss   -bash
root     18211  0.0  0.0   4740  1620 ?        Ss   /usr/lib/postfix/master
postfix  18220  0.0  0.0   4748  1628 ?        S    pickup -l -t fifo -u -c
postfix  18221  0.0  0.0   4784  1716 ?        S    qmgr -l -t fifo -u -c
bind     19968  0.0  0.0  37792  3248 ?        Ssl  /usr/sbin/named -u bind -t /var/lib/named
nobody   21583  0.0  0.0   2508   928 ?        Ss   proftpd: (accepting connections)
108      21615  0.0  0.0   2852  1244 ?        Ss   /home/admispconfig/ispconfig/tools/clamav/bin/freshclam -d -
root     32604  0.0  0.1  12568  4504 ?        Ss   /usr/sbin/apache2 -k start
root     32607  0.0  0.0   1608   432 ?        S    /root/ispconfig/cronolog --symlink=/var/log/httpd/ispconfig_
www-data 32636  0.0  0.1  12736  4380 ?        S    /usr/sbin/apache2 -k start
www-data 32637  0.0  0.1  12760  4372 ?        S    /usr/sbin/apache2 -k start
www-data 32639  0.0  0.0      0     0 ?        Z    [apache2] <defunct>
www-data  1348  0.0  0.1  12728  4420 ?        S    /usr/sbin/apache2 -k start
www-data  1701  0.0  0.1  12748  4356 ?        S    /usr/sbin/apache2 -k start
www-data  1704  0.0  0.1  12728  4324 ?        S    /usr/sbin/apache2 -k start
www-data  1706  0.0  0.1  12736  4348 ?        S    /usr/sbin/apache2 -k start
www-data 15406  0.0  0.1  12728  4332 ?        S    /usr/sbin/apache2 -k start
www-data 17514  0.0  0.1  13000  4592 ?        S    /usr/sbin/apache2 -k start
www-data 17710  0.0  0.1  12748  4400 ?        S    /usr/sbin/apache2 -k start
www-data 17711  0.0  0.1  12736  4356 ?        S    /usr/sbin/apache2 -k start
www-data 17714  0.0  0.1  12844  4340 ?        S    /usr/sbin/apache2 -k start
www-data 21592  0.0  0.1  12744  4336 ?        S    /usr/sbin/apache2 -k start
www-data 26564  0.0  0.1  12744  4412 ?        S    /usr/sbin/apache2 -k start
www-data 27759  0.0  0.1  12736  4320 ?        S    /usr/sbin/apache2 -k start
www-data 28227  0.0  0.1  12716  4328 ?        S    /usr/sbin/apache2 -k start
www-data 28484  0.0  0.1  12716  4160 ?        S    /usr/sbin/apache2 -k start
www-data 28587  0.0  0.1  12764  4364 ?        S    /usr/sbin/apache2 -k start
www-data 32075  0.0  0.1  13012  4596 ?        S    /usr/sbin/apache2 -k start
www-data  3660  0.0  0.1  12744  4408 ?        S    /usr/sbin/apache2 -k start
www-data  3844  0.0  0.1  12764  4452 ?        S    /usr/sbin/apache2 -k start
www-data  3846  0.0  0.1  12736  4360 ?        S    /usr/sbin/apache2 -k start
www-data  4057  0.0  0.1  12808  4396 ?        S    /usr/sbin/apache2 -k start
www-data  4058  0.0  0.1  12740  4332 ?        S    /usr/sbin/apache2 -k start
www-data  7185  0.0  0.1  12728  4316 ?        S    /usr/sbin/apache2 -k start
www-data  7382  0.0  0.1  12744  4404 ?        S    /usr/sbin/apache2 -k start
www-data  7549  0.0  0.1  12728  4340 ?        S    /usr/sbin/apache2 -k start
www-data  7550  0.0  0.1  12716  4196 ?        S    /usr/sbin/apache2 -k start
www-data  7552  0.0  0.1  12736  4332 ?        S    /usr/sbin/apache2 -k start
www-data 24173  0.0  0.1  12812  4424 ?        S    /usr/sbin/apache2 -k start
www-data 24174  0.0  0.1  12864  4404 ?        S    /usr/sbin/apache2 -k start
www-data 24175  0.0  0.1  12816  4404 ?        S    /usr/sbin/apache2 -k start
www-data 24176  0.0  0.1  12716  4224 ?        S    /usr/sbin/apache2 -k start
postfix  30376  0.0  0.0   4800  1700 ?        S    tlsmgr -l -t unix -u -c
postfix  30451  0.0  0.0   4748  1592 ?        S    anvil -l -t unix -u
postfix  30489  0.0  0.0   4760  1972 ?        S    trivial-rewrite -n rewrite -t unix -u -c
postfix  30538  0.0  0.0   4816  2040 ?        S    cleanup -z -t unix -u -c
10059     9769  0.8  0.5  41676 24312 ?        S    /usr/bin/php4-cgi
10059    21651  0.2  0.3  32428 15164 ?        S    /usr/bin/php4-cgi
postfix  21705  0.0  0.0   4788  2024 ?        S    local -t unix
10059    22102  0.4  0.5  41676 24300 ?        S    /usr/bin/php4-cgi
10126    26035  0.2  0.3  31036 13644 ?        S    /usr/bin/php4-cgi
10151    28171  0.1  0.2  27464 12384 ?        S    /usr/bin/php4-cgi
10059    28357  0.2  0.3  32480 15164 ?        S    /usr/bin/php4-cgi
10059    30564  0.3  0.3  32664 15476 ?        S    /usr/bin/php4-cgi
10151    30624  0.1  0.2  26980 11868 ?        S    /usr/bin/php4-cgi
postfix   3850  0.0  0.0   4816  2044 ?        S    cleanup -z -t unix -u -c
postfix   5522  0.0  0.0   5008  2472 ?        S    smtp -t unix -u -c
www-data  9484  0.0  0.0  12584  3960 ?        S    /usr/sbin/apache2 -k start
10151     9632  0.3  0.3  31296 13868 ?        S    /usr/bin/php4-cgi
www-data  9653  0.0  0.1  12988  4576 ?        S    /usr/sbin/apache2 -k start
www-data  9654  0.0  0.1  12712  4320 ?        S    /usr/sbin/apache2 -k start
10151    11280  0.2  0.2  26980 11864 ?        S    /usr/bin/php4-cgi
10151    11525  0.2  0.2  26544 11296 ?        S    /usr/bin/php4-cgi
10059    11605  0.4  0.3  32412 15216 ?        S    /usr/bin/php4-cgi
10059    12070  0.5  0.3  31928 14704 ?        S    /usr/bin/php4-cgi
www-data 12144  0.0  0.0  12584  3772 ?        S    /usr/sbin/apache2 -k start
www-data 13360  0.0  0.1  12992  4544 ?        S    /usr/sbin/apache2 -k start
www-data 13364  0.0  0.0  12592  3788 ?        S    /usr/sbin/apache2 -k start
www-data 13537  0.0  0.0  12716  3992 ?        S    /usr/sbin/apache2 -k start
www-data 13538  0.0  0.0  12584  3784 ?        S    /usr/sbin/apache2 -k start
www-data 13539  0.0  0.0  12584  3896 ?        S    /usr/sbin/apache2 -k start
www-data 13540  0.0  0.0  12716  3992 ?        S    /usr/sbin/apache2 -k start
10126    13746  0.4  0.3  31036 13644 ?        S    /usr/bin/php4-cgi
10059    13948  0.5  0.3  32652 15360 ?        S    /usr/bin/php4-cgi
10151    14022  0.4  0.3  31296 13868 ?        S    /usr/bin/php4-cgi
10151    15447  0.3  0.2  26976 11860 ?        S    /usr/bin/php4-cgi
www-data 15839  0.0  0.1  12756  4312 ?        S    /usr/sbin/apache2 -k start
10151    15891  0.4  0.3  31296 13860 ?        S    /usr/bin/php4-cgi
www-data 15998  0.0  0.0  12720  4028 ?        S    /usr/sbin/apache2 -k start
www-data 16001  0.0  0.1  12740  4332 ?        S    /usr/sbin/apache2 -k start
www-data 17491  0.0  0.1  12752  4284 ?        S    /usr/sbin/apache2 -k start
www-data 17659  0.0  0.0  12584  3868 ?        S    /usr/sbin/apache2 -k start
www-data 17660  0.0  0.0  12584  3896 ?        S    /usr/sbin/apache2 -k start
10151    18070  0.4  0.2  26548 11364 ?        S    /usr/bin/php4-cgi
www-data 22115  0.0  0.1  12740  4320 ?        S    /usr/sbin/apache2 -k start
www-data 22278  0.0  0.0  12700  4120 ?        S    /usr/sbin/apache2 -k start
www-data 22280  0.0  0.1  12740  4308 ?        S    /usr/sbin/apache2 -k start
10047    26600  5.0  0.3  31308 16288 ?        S    /usr/bin/php4-cgi
10047    27766  5.8  0.3  31308 16328 ?        S    /usr/bin/php4-cgi
10151    27843  4.0  0.2  26544 11292 ?        S    /usr/bin/php4-cgi
10083    28072  6.6  0.3  28512 13376 ?        S    /usr/bin/php4-cgi
root     28146  0.0  0.0   1480   396 ?        S    sleep 10
Any idea? How to limit users CPU/mem/open file usage?
Reply With Quote
  #4  
Old 10th November 2007, 21:58
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,745 Times in 2,578 Posts
 
Default

Take a look here: http://www.dbforums.com/archive/index.php/t-341298.html
http://confluence.atlassian.com/display/DOC/Fix+'Too+many+open+files'+error+on+Linux+by+increa sing+filehandles
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
backup failure.... gilas Installation/Configuration 19 30th October 2007 12:08
Apache won't start: "Too many files error"? bpmee Server Operation 4 31st July 2007 13:37
ERROR: The PHP binary coming with ISPConfig does not work properly on your system! qvindesland Installation/Configuration 22 21st May 2007 16:05
Howto suggestion suse PhP ver 4 + Ver 5 wwparrish Suggest HOWTO 11 7th August 2006 13:29
open ports rayit General 6 18th January 2006 14:23


All times are GMT +2. The time now is 23:12.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.