Chinaunix首页 | 论坛 | 博客
  • 博客访问: 241965
  • 博文数量: 78
  • 博客积分: 2956
  • 博客等级: 少校
  • 技术积分: 720
  • 用 户 组: 普通用户
  • 注册时间: 2007-11-12 15:13
文章分类

全部博文(78)

文章存档

2012年(11)

2011年(27)

2008年(30)

2007年(10)

分类: Java

2011-12-26 14:47:38

非容器环境时设置networkaddress.cache.ttl参数
networkaddress.cache.ttl (default: -1) Specified in java.security to indicate the caching policy for successful name lookups from the name service. The value is specified as as integer to indicate the number of seconds to cache the successful lookup. A value of -1 indicates "cache forever".

当应用部署与Tomcat等容器在容器的启动参数中设置-Dsun.net.inetaddr.ttl参数:
sun.net.inetaddr.ttl This is a sun private system property which corresponds to networkaddress.cache.ttl. It takes the same value and has the same meaning, but can be set as a command-line option. However, the preferred way is to use the security property mentioned above.

阅读(816) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~