Too Many Open Files: Couldn't Spawn Child Process

Oct 25, 2008

"Too many open files: couldn't spawn child process"


"Too many open files: couldn't spawn child process". This is what I see in the logs.

I have a CGI application which I can't run anymore because it is giving me a 500 Internal Server Error.

Would disabling the logging on all domains solve this issue? (thinking that too many log files are opened)

I did: cat /proc/sys/fs/file-max and in return I got: 372235.

Then I did echo 350000 > /proc/sys/fs/file-max*, because I thought I have file system limitation or something like that.

The problem starts even right after I reboot the server.

If I hit lsof a lot of files are shown.

The server load is tiny so nothing actually happens.

Would editing the httpd.conf or my.cnf files help ? Should I post the prefork and MPM settings here?

What else should I do to have my CGI application running again?

View 12 Replies


ADVERTISEMENT

Tweak Amount Of Php Process Spawn-fcgi

Apr 5, 2009

Where do I find the file to tweak spawn-fcgi process. I look in lighttpd.conf and php.ini I couldn't find any. I use lighttpd.

View 3 Replies View Related

Child Process Xxxx Still Did Not Exit, Sending A SIGKILL

Dec 25, 2008

i have 1 VPS with 512 MB Of Ram with direct admin there is 1 website on this server
but much times it is in hang!

i see apache logs there are much look like this error on this :

"child process 28339 still did not exit, sending a SIGKILL"

i had downgraded apache from 2.2 to 1.3 but probelem not solved!

i think there is a problem on Apache!

View 8 Replies View Related

Mysql Too Many Open Files

Nov 2, 2009

Basically mysql is behaving very very intermittently. Crashes were every 4 hours, I've brought them down to once every 8 or so hours but mysql keeps dying.

the error log will show the same routine each time.

on mysql start:

Quote:

091101 21:58:03 [Warning] option 'open_files_limit': unsigned value 120000 adjusted to 65535
091101 21:58:03 [Warning] Could not increase number of max_open_files to more than 65535 (request: 200110)
091101 21:58:03 [Note] /usr/sbin/mysqld: ready for connections.

Then we'll see errors due to crashed databases:

Quote:

091102 0:33:07 [ERROR] /usr/sbin/mysqld: Incorrect information in file: './<nameofdatabase.frm>'

following this a heap of:

Quote:

091102 0:36:35 [ERROR] /usr/sbin/mysqld: Can't open file: '>another database here.frm>
091102 0:36:36 [ERROR] /usr/sbin/mysqld: Sort aborted
091102 0:36:52 [ERROR] /usr/sbin/mysqld: Sort aborted
091102 0:43:00 [ERROR] Error in accept: Too many open files

View 14 Replies View Related

Mysql Open Files Limit

Jun 30, 2009

I been having a heck of a time just with this one cpanel server and open files limit. At first using open_files_limit did not work so I changed it to open-files-limit that seemed to work but now it rejects the value and sets its down to 65535.

Then system open files limit is 500000. I try to set it to any value about 65535 in my.cnf and here is usual error:

090630 9:32:07 [Warning] option 'open_files_limit': unsigned value 120510 adjusted to 65535
090630 9:32:07 [Warning] option 'open_files_limit': unsigned value 120510 adjusted to 65535

When I run something like the tuning-primer it shows:

Current open_files_limit = 120510 files

The open_files_limit should typically be set to at least 2x-3x
that of table_cache if you have heavy MyISAM usage.

Your open_files_limit value seems to be fine

But Im not sure if it is just reading my.cnf or something. I am still getting complaints from users about lost connections and I see the errors in error log. Ive looked everywhere and cant seem to find a solution to this.

View 7 Replies View Related

Setup A Webalizer Which Can Run Weekly To Process W3log Files

Oct 29, 2008

My IIS W3Log File is under C:Inetpubw3LogFilesW3SVC1

looks like this which is daily log file:
C:Inetpubw3LogFilesW3SVC1ex081022.log
C:Inetpubw3LogFilesW3SVC1ex081023.log
C:Inetpubw3LogFilesW3SVC1ex081024.log
All my web site is under c:InetpubVS
c:InetpubVSWebSite1.com
c:InetpubVSWebSite2.com
c:InetpubVSWebSite3.com

There is a webalizer directory under each domain folder.

Does anyone know how to setup a webalizer which can run weekly to process W3log files and put the result into corresponding domain webalizer folder?

View 0 Replies View Related

Apache :: Unable To Open Or Move Log Files

Dec 4, 2012

We have three virtual hosts on our Apache 2.2 installation on Windows Server 2003. For some reason, I'm unable to open log files (error.log and each virtual hosts-specific log), even though I have full administrator rights. (The log folder is full access to admins.) Every time I try to open the file or even copy it to another location, it just says "Access Denied." I temporarily solved the issue for one of the logs by adding BufferedLogs On

View 1 Replies View Related

How To Increase Open Files Limit In Apache In Cpanel

Jul 14, 2008

How to increase the Open Files limits descriptor in Apache. In the earlier version of Cpanel, we had an option of Raise FD Size Limit to 16384, but the option no longer appear while rebuilding Apache. What is the way to do it and make the change permanent?

View 2 Replies View Related

RSYNC / Windows 2003 & Vista / Open Files

Jun 28, 2007

Does anybody know how I can force RSYNC to backup open files on Windows 2003 Standard and Vista Ultimate?

View 4 Replies View Related

File/Command To Change Number Of Open Files In Linux

Aug 22, 2009

I can't seem to remember, but what's that command or file used in Linux so that you can view/adjust the number of open files and others in the system?

View 3 Replies View Related

Torrentflux B4rt Script :: Pipe Error: Too Many Open Files In System

Apr 29, 2008

i have Made a VPs on my Own dedicated Server Which i use to run TorrentFlux for Personal Use.
I am facing a few problems and dont know where to askf or help.

when i start more than about 12, i get errors in SSh (if i llogin) or th4e Apache Restarts killing all the Transfers.

I ahve 2 Gb Ram, Dual Core CPU.

the Error Via SSh is:
sh: pipe error: Too many open files in system

and i ahve attached a Errors Log From Apache.

i am a Noob in Servers so i ahve Lxadmin Contorl Panel Installed and the Log is generated by it.

View 0 Replies View Related

Apache + Spawn-fcgi

Apr 14, 2008

I`d like to run php per user using spawn-fcgi (I want to user have own pid file for php process). Is it possible to work? I thing that the way is to add something in VirtualHost file for users something like
spawn-fcgi -f /usr/local/php4/bin/php -P /tmp/$user.pid -s /tmp/$user.sock

Is it possible to do?

I`m using DirectAdmin.

View 2 Replies View Related

Spawn-fcgi Pidfile

Jun 16, 2007

I have php running as fastcgi for nginx and I'm trying to setup monit to monitor the php process and restart it when it crashes. The problem is that I can't seem to figure out which pidfile I should have monit look at.

Here's part of my script that starts the spawn-fcgi process:

#!/bin/bash
#
# chkconfig: 345 22 82
# description: The php-cgi spawnr

## ABSOLUTE path to the spawn-fcgi binary
SPAWNFCGI="/usr/local/bin/spawn-fcgi"

## ABSOLUTE path to the PHP binary
FCGIPROGRAM="/etc/lighttpd/php/bin/php"

FCGIPID="/var/run/php-fcgi.pid"

## TCP port to which to bind on localhost
FCGIPORT="1026"

## number of PHP children to spawn
PHP_FCGI_CHILDREN=8

## maximum number of requests a single PHP process can serve before it is restarted
PHP_FCGI_MAX_REQUESTS=1500

I added the FCGIPID (saw it in an example), but it doesn't seem to do anything. I tried creating a pid file but the pid in it doesn't get updated when I start/stop the script.

View 1 Replies View Related

CPU Usage HIGH - Spamd Child

Dec 3, 2007

I have just moved my sites from shared host to a vps. After several initial problems (cpanel issue, config not set up correctly, memory spikes and sites down every morning due to backup and stats) I thought everything was going to be ok. hmm.

My server load starts off fine first thing (less than 1) then creeps up nearly 1 per hour, ie been 3.5 hours now and it is at 2.57. Sites are ok at the moment but yesterday load got up to nearly 7 and sites were extremely slow.

CPU usage is HIGH for one site and goes up very quickly throughout the day. Yesterday it reached well over 90%. First thing today it was already amber and showing 14%. It is now 70.54% and shows below it :

Top Process %CPU 80.2 spamd child
Top Process %CPU 79.8 spamd child
Top Process %CPU 79.4 spamd child

I have a ticket open and they (Liquid Web) they are not sure what the deal is, but are apparently monitoring it to see if they can isolate the cause of the problem. But that was a couple of days ago and now the ticket is due for closure.

I telephoned them (expensive as I'm in the UK!) and raised my concerns, but was just told that everything looked ok on the vps, cpu usage was in fact not high and to ignore the warnings.

So, I am posting here to see if anybody can help me get to the root of this.

I understand that spamd child is to do with email / spam assassin?

My problem is that this is the first vps I have had and don't have a clue now where to go or what to do.

Anybody understand about spamd child that can explain it to a poor dumb blonde and how to fix it?

View 14 Replies View Related

[notice] Child Pid 763 Exit Signal Bus Error (7)

Jul 11, 2008

Recently the Apache recompailed with eAccelerator after that the below error log has created and also the Apache got crash when reach high traffic.

[notice] child pid 13013 exit signal Segmentation fault (11)
[notice] child pid 13054 exit signal Segmentation fault (11)

Due to this problem I ran the /scripts/upcp --force and again recompailed the Apache with eAccelerator.

later the signal Segmentation fault error not created but instead of above error the following error has been creating. And also again recompailed the without eAccelerator still the below error creating.

[notice] child pid 763 exit signal Bus error (7)

Server Details.

Apache 2.2.9
PHP 5.2.5
MySQL 5.0.5 (Runing Seprate box)
eAccelerator 0.9.5

View 2 Replies View Related

Apache Takes All The Server's Ram With Child Processes

Mar 22, 2008

I do a ps aux, and get a bunch of:

/usr/sbin/httpd

Each one takes up like 4% of the available ram - and when the ram is gone, the server dies (it doesn't have a swap file - half the time you can't even log in to it), and you have to reboot Apache.

I thought of limiting maxchilds, but would that break something else?

Should I just make a swap file? Will that defeat the point of creating child processes?

View 6 Replies View Related

Does The Server Site Load Affect On The Child Sites

Sep 9, 2008

I have seen 1 vps provider having very poor ping results in few online ping sites and they have a very cluster slow loading pages as well.

One of my friend has a package with them, the ping results are very poor even for him as well. Just made an traceroute found its on some node1.vpsprovider.com

Ya, one more major important similarity noticed was, the vps provider emails weren't set properly to yahoo mail, and my friend's emails sent from the server to yahoo weren't delivered as well.

So if the vps provider has poor content may be due to firewall or internal settings do the systems under the node also be affected?

I have no problems with my host so nothing to be worried about, but need to help him as he is just starting it out with a cheaper vps

View 3 Replies View Related

Apache :: Connection Closed To Child With Standard Shutdown

Jun 11, 2015

I am also seeing similar issue "AH02001: Connection closed to child with standard shutdown "

Following are the version information

Server: Apache/2.4.6 (Unix) OpenSSL/1.0.2a

View 2 Replies View Related

Plesk 11.x / Linux :: Cannot Create Pipe For Communication With Scanning Child

Dec 10, 2014

I'm running CentOS with Paralells Plesk bundled Paralellls Premium Antivirus (Dr Web). After the latest yum updates DrWeb continously seems to crash and be restarted by the Parallells watchdog. By default there were no logs for DrWeb, but when I enable logging to a file it gets spammed continously with the following error:

Cannot create pipe for communication with scanning childs (Too many open files)and the Drweb process runs at 99% CPU for long periods. This totally fills the disk with logs and I've now disabled logging again and Drweb is back to continously being restarted by the watchdog.

View 3 Replies View Related

Transferring 200 Files : Total Files Size Is 25 GB!

Jan 2, 2008

I couldn't keep my mouth shut (technically fingers). A customer wanted to upgrade servers and he needed a way to move the data across. Since I don't allow hard drives to be swapped, they have to do it manually all by themselves. I generally allow up-to 4 days for them to transfer data and make DNS changes, etc. But this time, I offered help! I agreed to move the data (darn me) and it just came out of me, involuntarily.

God knows what just happened... but in a positive way, customer is extremely happy!

So...

Both servers are on cPanel - with root access (duh)

200 odd files which total to 25 GB

1 database about 100 MB in size (no biggie)

I was planning on using one of my Windows 2003 servers (via remote desktop) to download the 25 GB and upload the 25 GB, but that sounds like a waste of resources and time.

View 8 Replies View Related

Nobody Process

Apr 13, 2009

We have many process under nobody user, so our server load is Very high and its not good.
Here is our server log about one of this process:

Code:

Time: Mon Apr 13 11:36:33 2009 +0430

PID: 4415

Account: nobody

Uptime: 25532 seconds

Executable:

/usr/local/lsws/bin/lshttpd.4.0

Command Line (often faked in exploits):

View 1 Replies View Related

What Does This Process Mean

Jul 9, 2007

i have always this process in my server ;

Code:
2 root RT 0 0 0 0 S 0 0.0 0:00.02 migration/0
3 root 34 19 0 0 0 S 0 0.0 0:00.08 ksoftirqd/0
4 root RT 0 0 0 0 S 0 0.0 0:06.43 migration/1
5 root 34 19 0 0 0 S 0 0.0 0:00.31 ksoftirqd/1
6 root RT 0 0 0 0 S 0 0.0 0:05.22 migration/2
7 root 34 19 0 0 0 S 0 0.0 0:00.82 ksoftirqd/2
8 root RT 0 0 0 0 S 0 0.0 0:01.41 migration/3
9 root 34 19 0 0 0 S 0 0.0 0:00.08 ksoftirqd/3

what doeas mean , and for wich application are this proccess

View 2 Replies View Related

Process Tracking

May 18, 2009

How can track and follow a process id.

For example i need to know what is following process:

14764 root 39 15 11712 9.8m 1668 R 20 0.1 0:14.22 perl

I need to know wich/where file used perl with process id 14764

View 6 Replies View Related

What Is Kacpid Process

Oct 30, 2009

I am noticing that the kacpid process causing high cpu load.

What does kacpid do? Is there a way to fix for this problem?

Quote:

# ps aux|grep kacpid
root 29 59.6 0.2 0 0 ? S< 22:13 42:20 [kacpid]

Quote:

# lsof -p 29
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
kacpid 29 root cwd DIR 8,2 4096 2 /
kacpid 29 root rtd DIR 8,2 4096 2 /
kacpid 29 root txt unknown /proc/29/exe

Quote:

# ls -l /proc/29/exe
/bin/ls: cannot read symbolic link /proc/29/exe: No such file or directory
lrwxrwxrwx 1 root root 0 Oct 30 22:13 /proc/29/exe

Quote:

# uname -r
2.6.18-164.el5PAE

View 2 Replies View Related

8 Apache Process

Mar 17, 2008

Ive recently installed installed and configured stuff on my new box but after, I realised abnormal memory usage.

Mysql server is taking 256mb, there are somewhere between 6 and 10 apache process taking up at least 40mb each.

Furthermore, when I do: top, I see that the memory usage is increasing by about 120ko each 3 sec.

I am running centos 5.1 and have a load of 0. Basically, there is no one on the server appart from me.

On the server I have at home running debian, I run all thoose thing and it take up 200mb
max.

View 3 Replies View Related

Process Restarter

Jan 16, 2008

write me a daemon that will run every 10 seconds.
If <process> has failed or run into issues, restart the process and then email me with details.

After installing LiteSpeed on my server with cPanel, a few processes have been having issues.

<process> = /opt/lsws/bin/lshttpd, pureftpd, named

View 1 Replies View Related

Business Process

May 13, 2008

I'd like to put up here a base question which I hope some will have the goodwill to answer even though it might touch some business secrecies.

We're a gameserver hoster since around ten years, running also vserver products since over two years now. Renting a few Racks in Europe since some time we're a bit in a question mark how rootserver companies deal with the initial hardware costs for every new customer.

Rackspace and today specially power costs are huge cash eaters here in Europe. Dedicated Rootservers are huge space & power consumers per customer ratio. The initial Hw costs for every new rootserver customer might be covered after 4-6 months (if the machine has to be bought newly), adding the bandwidth and power costs it might take up to 8-9 months until a benefit might come in.

Is this the business normality in the rootserver market (waiting 9 months for any benefit, or counting only on the benefit of the 2nd customer using the older Hw), or are the better ways to handle those "initial" costs or keep them affordably low?

View 1 Replies View Related

What Is This Running Process

Feb 19, 2008

I am showing hundreds of running processes for:
/usr/local/apache/bin/httpd -DSSL

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved