shuaifujian
shuaifujian
采纳率0%
2016-03-27 14:38 阅读 1.7k

TOMCAT运行一段时间后抛找不到主机异常,紧急。。。。。。。。。

TOMCAT运行一段时间后报:ava.net.UnknownHostException: 主机名,主机名:unknown error
at java.net.InetAddress.getLocalHost(InetAddress.java:1484)
at org.apache.jk.common.ChannelSocket.unLockSocket(ChannelSocket.java:490)
at org.apache.jk.common.ChannelSocket.pause(ChannelSocket.java:288)
at org.apache.jk.server.JkMain.pause(JkMain.java:739)
at org.apache.jk.server.JkCoyoteHandler.pause(JkCoyoteHandler.java:153)
at org.apache.catalina.connector.Connector.pause(Connector.java:1139)
at org.apache.catalina.core.StandardService.stop(StandardService.java:578)
at org.apache.catalina.core.StandardServer.stop(StandardServer.java:788)
at org.apache.catalina.startup.Catalina.stop(Catalina.java:662)
at org.apache.catalina.startup.Catalina.start(Catalina.java:629)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
然后 紧接着报:
SEVERE: The web application [/baas] is still processing a request that has yet to finish. This is very likely to create a memory leak. You can control the time allowed for requests to finish by using the unloadDelay attribute of the standard Context implementation.
一共报了500个内存泄漏。。。。。然后宕机 重启下就好了 然后一段时间后还是重复

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享

3条回答 默认 最新

  • u011239468 仲达先生 2016-03-27 14:39

    你看其他程序有没有强制占用你的端口, 或者你把web.xml重新配置下?

    点赞 评论 复制链接分享
  • Royal_lr Royal_lr 2016-03-28 07:37

    可能是你的代码有问题,,

    点赞 评论 复制链接分享
  • weixin_38391323 weixin_38391323 2019-03-01 15:11

    查看jvm内存日志,分析是否有泄露点

    点赞 评论 复制链接分享

相关推荐