FreeBSD 5.3-RELEASE + JDK1.4 native in a Jail -> hangs 99% cpuon kserel

Ronald Klop ronald-freebsd8 at klop.yi.org
Mon Dec 13 13:25:21 PST 2004


On Mon, 13 Dec 2004 16:59:07 +0100, Joris Verschoor <j.verschoor at 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


More information about the freebsd-java mailing list