解决C3P0在Linux下Failed to get local InetAddress for VMID问题
作者 佚名技术
来源 Linux系统
浏览
发布时间 2012-04-20
昨天部署两台机器,同时连接的数据库是第三台机器,其中一台生产机运行是发生异常:
报错代码:
Failed to get local InetAddress for VMID. This is unlikely to matter. At all. We''ll add some extra randomness
java.net.UnknownHostException: p2p-8-41: p2p-8-41
源码大概是这段:
public final class C3P0ImplUtils {
try{ dos.write( InetAddress.getLocalHost().getAddress() ); }catch (Exception e) { if (logger.isLoggable(MLevel.INFO)) logger.log(MLevel.INFO, "Failed to get local InetAddress for VMID. This is unlikely to matter. At all. We''ll add some extra randomness", e); dos.write( srand.nextInt() ); } } .... 那么:p2p-8-41是怎么得来的呢? [root@p2p-8-41 ~]# cat /etc/sysconfig/network NETWO***NG=yes NETWO***NG_IPV6=no HOSTNAME=p2p-8-41 很明确了吧! 解决办法: 搜索谷歌和百度,整合一些资料: 主要是 ![]() 拥有帝国一切,皆有可能。欢迎访问phome.net |
凌众科技专业提供服务器租用、服务器托管、企业邮局、虚拟主机等服务,公司网站:http://www.lingzhong.cn 为了给广大客户了解更多的技术信息,本技术文章收集来源于网络,凌众科技尊重文章作者的版权,如果有涉及你的版权有必要删除你的文章,请和我们联系。以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢! |
你可能对下面的文章感兴趣
上一篇: 利用cacti监控memcache下一篇: cpu亲和性设置
关于解决C3P0在Linux下Failed to get local InetAddress for VMID问题的所有评论