Results 26 to 40 of 40
Thread: My server is down
-
05-15-2005, 08:30 PM #26Problem Solver
- 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 elseSteven 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
-
05-15-2005, 10:03 PM #27Web Hosting Master
- Join Date
- Feb 2005
- Posts
- 1,079
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?
-
05-15-2005, 10:06 PM #28Web Hosting Master
- Join Date
- Feb 2005
- Posts
- 1,079
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
-
05-15-2005, 10:11 PM #29Web Hosting Master
- Join Date
- Feb 2005
- Posts
- 1,079
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.
-
05-15-2005, 10:25 PM #30Web Hosting Master
- Join Date
- Feb 2005
- Posts
- 1,079
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?
-
05-15-2005, 11:02 PM #31Web Hosting Master
- Join Date
- Feb 2005
- Posts
- 1,079
root@deals [/proc/sys/kernel]# httpd configtest
Syntax OK
Someone ask to run configtest. There is no error message showing up.
-
05-16-2005, 03:00 AM #32Web Hosting Master
- 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
-
05-16-2005, 05:18 AM #33Web Hosting Master
- Join Date
- Feb 2005
- Posts
- 1,079
I type ulimit -n 8096 to increase the number of filedescriptors it is still doesn't work.
-
05-16-2005, 05:22 AM #34Web Hosting Master
- Join Date
- Feb 2005
- Posts
- 1,079
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
-
05-16-2005, 08:01 AM #35Web Hosting Master
- Join Date
- Feb 2005
- Posts
- 1,079
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?
-
05-16-2005, 08:06 AM #36Web Hosting Master
- Join Date
- Feb 2005
- Posts
- 1,079
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.
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?
-
05-16-2005, 01:22 PM #37Web Hosting Master
- Join Date
- Jul 2004
- Location
- Kent, UK
- Posts
- 699
Edit /etc/httpd/conf/httpd.conf.
Andrew Thomas
-
05-17-2005, 01:38 AM #38Web Hosting Master
- Join Date
- Feb 2005
- Posts
- 1,079
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
-
05-17-2005, 02:13 PM #39Junior Guru Wannabe
- 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
-
05-19-2005, 12:45 AM #40Web Hosting Master
- Join Date
- Feb 2005
- Posts
- 1,079
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.