From owner-freebsd-stable@FreeBSD.ORG Tue May 18 19:30:28 2004 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4A12716A4CE for ; Tue, 18 May 2004 19:30:28 -0700 (PDT) Received: from cashmere.blitzed.org (cashmere.blitzed.org [82.195.232.22]) by mx1.FreeBSD.org (Postfix) with ESMTP id DBB0043D39 for ; Tue, 18 May 2004 19:30:27 -0700 (PDT) (envelope-from andy@freebsdwiki.org) Received: by cashmere.blitzed.org (Postfix, from userid 10000) id 40205112AEC; Wed, 19 May 2004 02:30:26 +0000 (GMT) Date: Wed, 19 May 2004 02:30:26 +0000 From: Andy Smith To: FreeBSD STABLE Message-ID: <20040519023025.GM457@cashmere.blitzed.org> Mail-Followup-To: FreeBSD STABLE Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="FX8H79VVjfzinewO" Content-Disposition: inline X-Uptime: 9 days X-URL: http://freebsdwiki.org/User:Andy User-Agent: Mutt/1.5.6i Subject: Which resource am I running out of here? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 May 2004 02:30:28 -0000 --FX8H79VVjfzinewO Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, I have an application which needs to open a lost of TCP connections at once. Up until now I have been telling this application to limit itself to 1024 file descriptors at once, but today I thought I would let it rip and increase it to 4096. When I did this, I started noticing errors in other applications on the same machine, such as postfix: 9905D27F28 4026 Tue May 18 23:53:55 mark@example.org (connect to mail.example.com[67.15.16.50]: Can't assign requested addr= ess) kari@example.com Also emulating a HTTP connection: $ telnet babylon.otherwize.co.uk 80 Trying 212.13.198.54... telnet: connect to address 212.13.198.54: Can't assign requested address So I'm thinking, ah, file descriptor limit. I know the system's FD limit can be queried with pstat -T, but: $ pstat -T 4614/12328 files 45M/2047M swap space seems like there is plenty of room there. The ulimit -a for the user the application runs under shows that it has a hard limit of some 11000 FDs as well. So it's not FDs. Could someone point me in the right direction as to what resource I might be running out of here? If you could let me know how to list the current usage of that resource, and how to increase it in future, that would also be very useful, but any assistance would be appreciated. --=20 http://freebsdwiki.org/ - Encrypted mail welcome - keyid 0xBF15490B --FX8H79VVjfzinewO Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAqsbBIJm2TL8VSQsRAjDFAJ9Nzk1/rnIOr6z87JIeVtVoIpK3NgCgpoA6 Nl608pb2632ALFAywjB3U7Q= =uRdy -----END PGP SIGNATURE----- --FX8H79VVjfzinewO--