javasocketbrokenpipe

有可能是linux的线程机制会产生JVM出错的问题,特别是在连接高峰期间经常出现这样的问题

解决办法是在环境变量中设置:_JAVA_SR_SIGNUM=12基本就可以解决。

在WIN环境变量中设置:_JAVA_SR_SIGNUM=12,若Linux下用export_JAVA_SR_SIGNUM=12,基本就可以解决.

sun的解释:

--postedby:cooper

BelowisaclippingfromSunonworkingaroundJVMcrashesunderhigh

threadcountsintheJVM1.3forLinux

OnLinux,usealargersignalnumberforhotspotthread

suspension/resumptionhandler.Thesignalnumberbeingusedis

specifiedbyenvironmentvariable_JAVA_SR_SIGNUM.Settingittoa

numberlargerthanSIGSEGV(11)willsolvetheproblem.Agoodnumber

touseis12,whichisSIGUSR2.Usingsignal16toworkaroundthe

problemmighthavepotentialproblems.Soontcsh,"setenv

_JAVA_SR_SIGNUM12"cansolvetheproblem.