Mantis - Resin
Viewing Issue Advanced Details
3812 minor always 12-14-09 08:37 12-16-09 10:05
ferg  
ferg  
normal  
closed 4.0.2  
fixed  
none    
none 4.0.3  
0003812: hmux timeout exception
(rep by Wesley Wu)

when running resin in load-balance cluster with a web-tier(one server)
and a app-tier(two server)

my app-tier console display the error

[09-12-15 00:14:34.369] {server-192.168.1.5:6801-34}
com.caucho.java.JavaCompiler compileInt Compiling
_jsp/_person/_Index__jsp.java
[09-12-15 00:14:34.723] {server-192.168.1.5:6801-34}
com.caucho.java.JavaCompiler compileInt Compiling
_jsp/_person/_Header__jsp.java
[09-12-15 00:14:53.096] {hmtp-aaa-to-aaa-31}
com.caucho.server.cluster.HmuxQueue dispatch java.net.SocketException:
Write failed: Broken pipe
[09-12-15 00:14:53.096] {hmtp-aaa-to-aaa-31} at
jrockit.net.SocketNativeIO.writeBytesPinned(Native Method)
[09-12-15 00:14:53.096] {hmtp-aaa-to-aaa-31} at
jrockit.net.SocketNativeIO.socketWrite(SocketNativeIO.java:73)
[09-12-15 00:14:53.096] {hmtp-aaa-to-aaa-31} at
java.net.SocketOutputStream.socketWrite0(SocketOutputStream.java)
[09-12-15 00:14:53.096] {hmtp-aaa-to-aaa-31} at
java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
[09-12-15 00:14:53.096] {hmtp-aaa-to-aaa-31} at
java.net.SocketOutputStream.write(SocketOutputStream.java:137)
[09-12-15 00:14:53.096] {hmtp-aaa-to-aaa-31} at
com.caucho.vfs.TcpStream.write(TcpStream.java:150)
[09-12-15 00:14:53.096] {hmtp-aaa-to-aaa-31} at
com.caucho.vfs.WriteStream.flush(WriteStream.java:367)
[09-12-15 00:14:53.096] {hmtp-aaa-to-aaa-31} at
com.caucho.server.cluster.ClusterStream.writeYield(ClusterStream.java:626)
[09-12-15 00:14:53.096] {hmtp-aaa-to-aaa-31} at
com.caucho.server.cluster.HmuxQueue.dispatch(HmuxQueue.java:132)
[09-12-15 00:14:53.096] {hmtp-aaa-to-aaa-31} at
com.caucho.hemp.broker.HempMemoryQueue.consumeQueue(HempMemoryQueue.java:415)
[09-12-15 00:14:53.096] {hmtp-aaa-to-aaa-31} at
com.caucho.hemp.broker.HempMemoryQueue.run(HempMemoryQueue.java:473)
[09-12-15 00:14:53.096] {hmtp-aaa-to-aaa-31} at
com.caucho.util.ThreadPool$PoolThread.runTasks(ThreadPool.java:901)
[09-12-15 00:14:53.096] {hmtp-aaa-to-aaa-31} at
com.caucho.util.ThreadPool$PoolThread.run(ThreadPool.java:866)
[09-12-15 00:14:53.096] {hmtp-aaa-to-aaa-31}

I'm using resin 4.0.2.s20091202 snapshot on CentOS 5.2 x86 linux
compiled with JNI, with a evaluation PRO lisence.

JDK: jrockit 1.6.0_14 x86

I thinks maybe caused by <jsp:include> directive.

Notes
(0004336)
ferg   
12-16-09 10:05   
Fixed in 4.0.3. The connection pool wasn't properly tracking idle sockets and could use an expired socket.