赞
踩
原因:
表现:
解决方法:
推荐:
卡顿的时候可以使用JDK自带工具进行分析
获取程序进程号
JPS
获取当前程序的堆栈
JSTACK PID > stack.log
前台报错
WebSocket connection to 'ws://127.0.0.1:8080/pms/websocket/181/vledvxj1/websocket' failed: WebSocket is closed before the connection is established.
后台报错
- Caused by: java.io.IOException: Broken pipe
- at sun.nio.ch.FileDispatcherImpl.write0(Native Method)
- at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:47)
- at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:93)
- at sun.nio.ch.IOUtil.write(IOUtil.java:65)
- at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:487)
- at org.apache.tomcat.util.net.NioChannel.write(NioChannel.java:124)
- at org.apache.tomcat.util.net.NioBlockingSelector.write(NioBlockingSelector.java:101)
- at org.apache.tomcat.util.net.NioSelectorPool.write(NioSelectorPool.java:172)
- at org.apache.coyote.http11.InternalNioOutputBuffer.writeToSocket(InternalNioOutputBuffer.java:139)
- at org.apache.coyote.http11.InternalNioOutputBuffer.addToBB(InternalNioOutputBuffer.java:197)
- at org.apache.coyote.http11.InternalNioOutputBuffer.access$000(InternalNioOutputBuffer.java:41)
- at org.apache.coyote.http11.InternalNioOutputBuffer$SocketOutputBuffer.doWrite(InternalNioOutputBuffer.java:320)
- at org.apache.coyote.http11.filters.ChunkedOutputFilter.doWrite(ChunkedOutputFilter.java:118)
- at org.apache.coyote.http11.AbstractOutputBuffer.doWrite(AbstractOutputBuffer.java:256)
- at org.apache.coyote.Response.doWrite(Response.java:491)
- at org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:391)
- ... 21 more
调用堆栈:
at java.net.Inet6AddressImpl.getHostByAddr(Native Method)
at java.net.InetAddress$2.getHostByAddr(InetAddress.java:932)
at java.net.InetAddress.getHostFromNameService(InetAddress.java:617)
at java.net.InetAddress.getHostName(InetAddress.java:559)
at java.net.InetAddress.getHostName(InetAddress.java:531)
at org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper.populateLocalName(NioEndpoint.java:1304)
at org.apache.tomcat.util.net.SocketWrapperBase.getLocalName(SocketWrapperBase.java:223)
at org.apache.coyote.AbstractProcessor.action(AbstractProcessor.java:464)
at org.apache.coyote.Request.action(Request.java:432)
at org.apache.catalina.connector.Request.getLocalName(Request.java:1307)
at org.apache.catalina.connector.RequestFacade.getLocalName(RequestFacade.java:1002)
at javax.servlet.ServletRequestWrapper.getLocalName(ServletRequestWrapper.java:336)
at javax.servlet.ServletRequestWrapper.getLocalName(ServletRequestWrapper.java:336)
at javax.servlet.ServletRequestWrapper.getLocalName(ServletRequestWrapper.java:336)
at org.springframework.http.server.ServletServerHttpRequest.getLocalAddress(ServletServerHttpRequest.java:197)
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。