At the same time as upgrading to Resin 4 we are upgrading to Oracle 11gR2.

Starting/stopping resin was very non-deterministic seeming to hang 
sometimes during application startup with references to connection 
timeouts in the error logs.

SQLRecoverableException: IO Error: Connection reset

The problem was traced to a drying up of the "entropy poll" preventing 
oracle jdbc from allocating connections until the pool was replenished

The following article explains in full

http://www.usn-it.de/index.php/2009/02/20/oracle-11g-jdbc-driver-hangs-blocked-by-devrandom-entropy-pool-empty

The solution was to add the following to resin.xml

<!-- Deal with problems associated with 11G JDBC driver
new connection requires random number but generator uses entropy pool
filled by random user actions - server has no connected user so entropy 
pool often empty.... -->


<jvm-arg>-Djava.security.egd=file:///dev/urandom</jvm-arg>



Hope this helps someone.

Alan



-- 


Alan Wright
Athene Systems

tel 0845 230 9803


Athene Systems Limited
Registered Office:
Shieling House
Invincible Road
Farnborough
GU14 7QU

Registered in England and Wales No. 3156080



_______________________________________________
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest

Reply via email to