NPE 位于 sun.nio.ch.Util.free(Util.java:199)
我们正在使用使用 sun.nio 包的第三方应用程序。我们经常遇到以下错误,
java.lang.NullPointerException
at sun.nio.ch.Util.free(Util.java:199)
at sun.nio.ch.Util.offerFirstTemporaryDirectBuffer(Util.java:176)
at sun.nio.ch.IOUtil.write(IOUtil.java:50)
at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:334)
直到服务器重新启动后才会停止。总体内存消耗仍保持在 30%。
我尝试搜索 this 和 sun.nio 包,但找不到任何指向它的指针。我正在寻找以下
- 任何关于 sun.nio 包源代码的文章、文档
- 都会有很大的帮助。
- 如果你们对这种情况下“可能”发生的事情有任何暗示,请分享。
We are using a third party application which uses sun.nio package. We are facing following error very frequently,
java.lang.NullPointerException
at sun.nio.ch.Util.free(Util.java:199)
at sun.nio.ch.Util.offerFirstTemporaryDirectBuffer(Util.java:176)
at sun.nio.ch.IOUtil.write(IOUtil.java:50)
at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:334)
This does not stop until the servers are restarted. Overall memory consumption remains at 30%.
I tried searching for this and sun.nio package but could not get any pointers to it. What I am looking for followings
- Any articles, documentations regarding sun.nio package
- Source code would be a great help.
- If you guys have any hint of what "might be" happening in this case, please share the same.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
以下是 Util 的反编译源代码:
http://www.text -upload.com/read.php?id=141860&c=8070720
Here is decompiled source of Util available:
http://www.text-upload.com/read.php?id=141860&c=8070720