Page 2 of 2 FirstFirst 12
Results 26 to 40 of 40
  1. #26
    Join Date
    Mar 2003
    Location
    California USA
    Posts
    13,681
    [Fri May 13 17:36:36 2005] [warn] (24)Too many open files: unable to open a file descriptor above 15, you may need to increase the number of descriptors


    id look into that error before doing anything else
    Steven Ciaburri | Industry's Best Server Management - Rack911.com
    Software Auditing - 400+ Vulnerabilities Found - Quote @ https://www.RACK911Labs.com
    Fully Managed Dedicated Servers (Las Vegas, New York City, & Amsterdam) (AS62710)
    FreeBSD & Linux Server Management, Security Auditing, Server Optimization, PCI Compliance

  2. #27
    Hi guys,

    I think I've figure out the problem, but the solution confuses me.

    The problem is that I add 2000 subdomain names. Each of which take up a file handler, larger than the number provided by Linux 1024.

    http://httpd.apache.org/docs/misc/descriptors.html

    The solution is either increase the number of descriptors or combine the logs into a single file. I don't know how to do that though.

    Can I disable logging first?

  3. #28
    This threat talks about using a patch to increase the descriptor. However it's confusing how to use the patch.
    http://groups-beta.google.com/group/...4e6b97e196f3ff

  4. #29
    http://httpd.apache.org/docs/misc/FAQ-E.html#fdlim

    Talks about the problem.

    The problem is I don't understand what he means by :
    Reduce the number of log files. You can use mod_log_config to log all requests to a single log file while including the name of the virtual host in the log file. You can then write a script to split the logfile into separate files later if necessary. Such a script is provided with the Apache 1.3 distribution in the src/support/split-logfile file.

  5. #30
    http://httpd.apache.org/docs/vhosts/fd-limits.html says

    Reduce the number of log files; don't specify log files in the VirtualHost sections, but only log to the main log files.

    What does it mean? How can I unspecify log files in the virtualhost sections?

  6. #31
    root@deals [/proc/sys/kernel]# httpd configtest
    Syntax OK

    Someone ask to run configtest. There is no error message showing up.

  7. #32
    Join Date
    Jul 2004
    Location
    Kent, UK
    Posts
    699
    To disable VirtualHosts logs, under each <VirtualHost> directive, take out the CustomLog line, or any 'log' lines under each virtual host.
    Andrew Thomas

  8. #33
    I type ulimit -n 8096 to increase the number of filedescriptors it is still doesn't work.

  9. #34
    root@deals [/proc/sys/kernel]# ulimit -a
    core file size (blocks, -c) 0
    data seg size (kbytes, -d) unlimited
    file size (blocks, -f) unlimited
    max locked memory (kbytes, -l) unlimited
    max memory size (kbytes, -m) unlimited
    open files (-n) 8192
    pipe size (512 bytes, -p) 8
    stack size (kbytes, -s) unlimited
    cpu time (seconds, -t) unlimited
    max user processes (-u) 4087
    virtual memory (kbytes, -v) unlimited
    root@deals [/proc/sys/kernel]# service httpd start
    /etc/init.d/httpd start: httpd could not be started

  10. #35
    Finally my server can run again. However, that happens after I remove one of the domain names.

    This is not the desirable solutions. I want to be able to keep adding subdomain names. Anyone knows how to increase the file descriptors limitation?

  11. #36
    Originally posted by thomas7
    To disable VirtualHosts logs, under each <VirtualHost> directive, take out the CustomLog line, or any 'log' lines under each virtual host.
    customlog

    How to do this?

    Do I have to edit some text file? If so what text file I should edit?

    How this will affect logging?

  12. #37
    Join Date
    Jul 2004
    Location
    Kent, UK
    Posts
    699
    Edit /etc/httpd/conf/httpd.conf.
    Andrew Thomas

  13. #38
    This url suggest http://www.ussg.iu.edu/hypermail/lin...11.1/0116.html
    that we should play around with files like file-nr, and stuff. I have no such file though.

    root@deals [/usr/local/apache/domlogs]# cat /proc/sys/kernel/file-nr
    cat: /proc/sys/kernel/file-nr: No such file or directory
    root@deals [/usr/local/apache/domlogs]# cat /proc/sys/kernel/file-nr
    cat: /proc/sys/kernel/file-nr: No such file or directory
    root@deals [/usr/local/apache/domlogs]# cat /proc/sys/kernel/inode-nr
    cat: /proc/sys/kernel/inode-nr: No such file or directory
    root@deals [/usr/local/apache/domlogs]# cat /proc/sys/kernel/file-max
    cat: /proc/sys/kernel/file-max: No such file or directory
    root@deals [/usr/local/apache/domlogs]# cat /proc/sys/kernel/inode-max
    cat: /proc/sys/kernel/inode-max: No such file or directory

  14. #39
    Join Date
    Feb 2005
    Posts
    62
    Originally posted by tomsyer
    Sounds like if everything is not working he maybe in a read-only state....

    try making a directory

    mkdir whatever
    I'm in that state. how do I get out of it?

  15. #40
    No no... My server works again. It's just that I don't know how to increase the number of file descriptors. My server works again after I reduce the number of subdomains. I want to keep adding subdomains.

Page 2 of 2 FirstFirst 12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •