From owner-freebsd-ports Wed Mar 3 10:11:25 1999 Delivered-To: freebsd-ports@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 2C36814F80 for ; Wed, 3 Mar 1999 10:10:17 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.2/8.9.2) id KAA72134; Wed, 3 Mar 1999 10:10:02 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: by hub.freebsd.org (Postfix, from userid 32767) id 7B90D15548; Wed, 3 Mar 1999 10:03:54 -0800 (PST) Message-Id: <19990303180354.7B90D15548@hub.freebsd.org> Date: Wed, 3 Mar 1999 10:03:54 -0800 (PST) From: swohlgemuth@hotmail.com To: freebsd-gnats-submit@freebsd.org X-Send-Pr-Version: www-1.0 Subject: ports/10373: Increasing kernel file descriptors causes jdk1.1.7 to core dump after opening >20## ports Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 10373 >Category: ports >Synopsis: Increasing kernel file descriptors causes jdk1.1.7 to core dump after opening >20## ports >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Mar 3 10:10:01 PST 1999 >Closed-Date: >Last-Modified: >Originator: Sean Wohlgemuth >Release: 3.1-RELEASE >Organization: >Environment: FreeBSD shadowtroll1.xxx.xxx.com 3.1-RELEASE FreeBSD 3.1-RELEASE #2: Wed Mar 3 09:12:26 PST 1999 root@shadowtroll1.xxx.xxx.com:/usr/src/sys/com pile/SEANWOKERNEL i386 >Description: After increasing the max file descriptors in the kernel so that I can test a new server application by simulating thousands of clients, I try to run a java application that opens thousands of persistent connections to the server and the jdk/application core dumps after >How-To-Repeat: ***KERNEL TUNING*** change kernel to increase file descriptors: /usr/src/sys/compile/SEANWOKERNEL/param.c change #define MAXFILES (NPROC * 2) to #define MAXFILES 5000 make depend; make; make install; reboot... run a java program using JDK1.1.7 to open ~5000 sockets to a server this results in a coredump after about ~2020 sockets have been opened ***.java file*** /*here is the class file that can make it happen after kernel tunning is complete... change server and port to your own test system*/ import java.net.*; import java.io.*; public class Class1 { public static int iSockets=4000; public static void main (String[] args) { Socket[] m_rgoSocket=new Socket[iSockets]; OutputStream[] m_rgoOutputStream=new OutputStream[iSockets]; int i=0; int j=iSockets; try{ for (i=0; iFix: >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message