From owner-freebsd-java@FreeBSD.ORG Mon Dec 13 21:25:21 2004 Return-Path: <owner-freebsd-java@FreeBSD.ORG> Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 984A016A4F4 for <freebsd-java@freebsd.org>; Mon, 13 Dec 2004 21:25:21 +0000 (GMT) Received: from smtp14.wxs.nl (smtp14.wxs.nl [195.121.6.28]) by mx1.FreeBSD.org (Postfix) with ESMTP id 46A4243D45 for <freebsd-java@freebsd.org>; Mon, 13 Dec 2004 21:25:21 +0000 (GMT) (envelope-from ronald-freebsd8@klop.yi.org) Received: from ronald.echteman.nl (ip51cdc5d2.speed.planet.nl [81.205.197.210])2004))freebsd-java@freebsd.org; Mon, 13 Dec 2004 22:25:19 +0100 (CET) Received: (qmail 7728 invoked from network); Mon, 13 Dec 2004 21:25:21 +0000 Received: from unknown (HELO laptop.thuis.klop.ws) (192.168.1.4) by ronald.echteman.nl with SMTP; Mon, 13 Dec 2004 21:25:21 +0000 Received: (qmail 805 invoked from network); Mon, 13 Dec 2004 21:25:15 +0000 Received: from localhost (HELO smtp.local) (127.0.0.1) by localhost with SMTP; Mon, 13 Dec 2004 21:25:15 +0000 Date: Mon, 13 Dec 2004 22:25:13 +0100 From: Ronald Klop <ronald-freebsd8@klop.yi.org> In-reply-to: <41BDBC4B.40505@nefli.nl> To: Joris Verschoor <j.verschoor@nefli.nl> Message-id: <opsiytsbhc8527sy@smtp.local> MIME-version: 1.0 Content-type: text/plain; format=flowed; delsp=yes; charset=iso-8859-1 Content-transfer-encoding: 7BIT User-Agent: Opera M2/7.54 (FreeBSD, build 751) References: <41BDBC4B.40505@nefli.nl> cc: freebsd-java@freebsd.org Subject: Re: FreeBSD 5.3-RELEASE + JDK1.4 native in a Jail -> hangs 99% cpuon kserel X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD <freebsd-java.freebsd.org> List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-java>, <mailto:freebsd-java-request@freebsd.org?subject=unsubscribe> List-Archive: <http://lists.freebsd.org/pipermail/freebsd-java> List-Post: <mailto:freebsd-java@freebsd.org> List-Help: <mailto:freebsd-java-request@freebsd.org?subject=help> List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-java>, <mailto:freebsd-java-request@freebsd.org?subject=subscribe> X-List-Received-Date: Mon, 13 Dec 2004 21:25:21 -0000 On Mon, 13 Dec 2004 16:59:07 +0100, Joris Verschoor <j.verschoor@nefli.nl> wrote: > Hello, > > I've installed a 5.3-RELEASE box. I haven't changed anything from the > default kernel. > The box is a single cpu P4 with HT disabled. > I've set some sysctl vars: > security.jail.sysvipc_allowed: 1 (for pg in a jail) > > > > There are 2 jails on my box: > 1) Java 1.4.2 native port + resin3 > 2) PostgreSQL-7(.4) > > PostgreSQL runs fine (I think) > > I've installed a webapp on resin3 using the pg jdbc drivers. Everything > runs fine and dandy, but after a while, I suddenly get two things: > > ******** 1 ******** > And exception while opening a connection to pg. > > Caused by: org.postgresql.util.PSQLException: > An I/O error occured while reading from backend > Exception: java.net.SocketException: Resource temporarily unavailable > Stack Trace: > > java.net.SocketException: Resource temporarily unavailable > at java.net.SocketInputStream.socketRead0(Native Method) > at java.net.SocketInputStream.read(SocketInputStream.java:129) > at java.io.BufferedInputStream.fill(BufferedInputStream.java:183) > ... etc > Try to check how many open files you have. And if you do kill -3 (or kill -QUIT) check the log files of the java app. How many tcp connections do have to your db-server? Do you have a connection leak somewhere? Ronald. -- Ronald Klop, Amsterdam, The Netherlands