java.net.socketexception broken pipe_linux服务器上 java.net.SocketException: Broken pipe问题

@JFinal 你好,想跟你请教个问题:我系统采用jfinal+beetl的架构,环境是centos系统,总是不定时的报Broken pipe问题,详细报错如下

ClientAbortException:  java.net.SocketException: Connection reset

at org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:364)

at org.apache.catalina.connector.OutputBuffer.flush(OutputBuffer.java:326)

at org.apache.catalina.connector.CoyoteOutputStream.flush(CoyoteOutputStream.java:101)

at org.bee.tl.core.io.ByteWriter_Byte.flush(ByteWriter_Byte.java:91)

at org.bee.tl.core.CoreScriptRunner.runScript(CoreScriptRunner.java:226)

at org.bee.tl.core.BeeTemplate.getTextByByteWriter(BeeTemplate.java:201)

at org.bee.tl.ext.IncludeFileTemplateTag.makeOutput(IncludeFileTemplateTag.java:117)

at org.bee.tl.core.GeneralBeetlTag.getOutputAsByte(GeneralBeetlTag.java:74)

at org.bee.tl.core.CoreScriptRunner.parseTag(CoreScriptRunner.java:848)

at org.bee.tl.core.CoreScriptRunner.print(CoreScriptRunner.java:368)

at org.bee.tl.core.CoreScriptRunner.print(CoreScriptRunner.java:245)

at org.bee.tl.core.CoreScriptRunner.runScript(CoreScriptRunner.java:205)

at org.bee.tl.core.BeeTemplate.getTextByByteWriter(BeeTemplate.java:201)

at org.bee.tl.core.AbstractTemplate.getText(AbstractTemplate.java:80)

at org.bee.tl.ext.jfinal.BeetlRender.render(BeetlRender.java:102)

at com.jfinal.core.ActionHandler.handle(ActionHandler.java:92)

at com.wyf.handler.GetPostSameNameHandler.handle(GetPostSameNameHandler.java:16)

at com.wyf.handler.DruidStatViewHandler.handle(DruidStatViewHandler.java:58)

at com.wyf.handler.HtmlExtensionHandler.handle(HtmlExtensionHandler.java:16)

at com.jfinal.ext.handler.ContextPathHandler.handle(ContextPathHandler.java:47)

at com.wyf.handler.SessionHandler.handle(SessionHandler.java:19)

at com.wyf.handler.GetVistInfoHandler.handle(GetVistInfoHandler.java:44)

at com.jfinal.core.JFinalFilter.doFilter(JFinalFilter.java:72)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)

at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)

at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)

at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)

at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)

at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)

at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)

at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)

at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)

at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1008)

at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)

at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)

at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)

Caused by: java.net.SocketException: Connection reset

at java.net.SocketOutputStream.socketWrite(Unknown Source)

at java.net.SocketOutputStream.write(Unknown Source)

at org.apache.coyote.http11.InternalOutputBuffer.realWriteBytes(InternalOutputBuffer.java:215)

at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:480)

at org.apache.coyote.http11.InternalOutputBuffer.flush(InternalOutputBuffer.java:119)

at org.apache.coyote.http11.AbstractHttp11Processor.action(AbstractHttp11Processor.java:790)

at org.apache.coyote.Response.action(Response.java:173)

at org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:359)

... 38 more

ClientAbortException:  java.net.SocketException: Broken pipe

at org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:364)

at org.apache.catalina.connector.OutputBuffer.flush(OutputBuffer.java:326)

at org.apache.catalina.connector.CoyoteOutputStream.flush(CoyoteOutputStream.java:101)

at org.bee.tl.core.io.ByteWriter_Byte.flush(ByteWriter_Byte.java:91)

at org.bee.tl.core.CoreScriptRunner.runScript(CoreScriptRunner.java:226)

at org.bee.tl.core.BeeTemplate.getTextByByteWriter(BeeTemplate.java:201)

at org.bee.tl.core.AbstractTemplate.getText(AbstractTemplate.java:80)

at org.bee.tl.ext.jfinal.BeetlRender.render(BeetlRender.java:102)

at com.jfinal.core.ActionHandler.handle(ActionHandler.java:92)

at com.wyf.handler.GetPostSameNameHandler.handle(GetPostSameNameHandler.java:16)

at com.wyf.handler.DruidStatViewHandler.handle(DruidStatViewHandler.java:58)

at com.wyf.handler.HtmlExtensionHandler.handle(HtmlExtensionHandler.java:16)

at com.jfinal.ext.handler.ContextPathHandler.handle(ContextPathHandler.java:47)

at com.wyf.handler.SessionHandler.handle(SessionHandler.java:19)

at com.wyf.handler.GetVistInfoHandler.handle(GetVistInfoHandler.java:44)

at com.jfinal.core.JFinalFilter.doFilter(JFinalFilter.java:72)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)

at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)

at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)

at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)

at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)

at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)

at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)

at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)

at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)

at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1008)

at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)

at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)

at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)

Caused by: java.net.SocketException: Broken pipe

at java.net.SocketOutputStream.socketWrite0(Native Method)

at java.net.SocketOutputStream.socketWrite(Unknown Source)

at java.net.SocketOutputStream.write(Unknown Source)

at org.apache.coyote.http11.InternalOutputBuffer.realWriteBytes(InternalOutputBuffer.java:215)

at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:480)

at org.apache.coyote.http11.InternalOutputBuffer.flush(InternalOutputBuffer.java:119)

at org.apache.coyote.http11.AbstractHttp11Processor.action(AbstractHttp11Processor.java:790)

at org.apache.coyote.Response.action(Response.java:173)

at org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:359)

... 31 more

不知道啥原因,根据网上改了jvm的参数还是报,请问有啥解决方法没?

  • 0
    点赞
  • 0
    收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
©️2022 CSDN 皮肤主题:深蓝海洋 设计师:CSDN官方博客 返回首页
评论

打赏作者

网易蜗牛读书

你的鼓励将是我创作的最大动力

¥2 ¥4 ¥6 ¥10 ¥20
输入1-500的整数
余额支付 (余额:-- )
扫码支付
扫码支付:¥2
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、C币套餐、付费专栏及课程。

余额充值