From: "Lee Chin" <leechin@mail.com>
To: hahn@physics.mcmaster.ca, linux-newbie@vger.kernel.org
Cc: leechin@mail.com
Subject: cannot accept socket
Date: Thu, 06 Mar 2003 13:13:29 -0500 [thread overview]
Message-ID: <20030306181329.7358.qmail@mail.com> (raw)
Hi,
In my web server, when I run a stress test with many clients, after a long time I suddenly get an error on the accept system call and the error is "Too many open files".
When I do a socklist (or netstat), I see that there are only 400 sockets open (and I have 400 clients, so that is correct).
However when I "cat /proc/PID/fd" I see 1024 files. I think accept failed because of this. My web server is as simple as possible (it just serves up a static string compiled in with the server). I know I am closing the sockets... what else could I be doing wrong?
Has anyone seen something similar to this before?
Thanks
Lee
--
__________________________________________________________
Sign-up for your own FREE Personalized E-mail at Mail.com
http://www.mail.com/?sr=signup
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
next reply other threads:[~2003-03-06 18:13 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-06 18:13 Lee Chin [this message]
2003-03-06 20:02 ` cannot accept socket Ray Olszewski
[not found] ` <20030306202252.SSIT8575.mta06-svc.ntlworld.com@there>
2003-03-06 20:46 ` Ray Olszewski
2003-03-07 9:52 ` Carl
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030306181329.7358.qmail@mail.com \
--to=leechin@mail.com \
--cc=hahn@physics.mcmaster.ca \
--cc=linux-newbie@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.