ehcache monitor启动错误UnknownHostException

@echo on

if not defined JAVA_HOME (
  echo JAVA_HOME environment variable must be set
  exit /b 1
)

setlocal enabledelayedexpansion
set JAVA_HOME="%JAVA_HOME:"=%"
set PRGDIR=%~d0%~p0..
set PRGDIR="%PRGDIR:"=%"
set classpath=
for %%F in (%PRGDIR%\lib\*.jar) do (
  set classpath=!classpath!;%%F%
)

Windows下用原始的startup.bat启动monitor会报一个java.net.UnknownHostException, 比较莫名其妙,根据启动log来看基本上应该这个脚本找的Jetty.xml有问题,直接去掉那个-j选项后,可以启动成功
以下是monitor的启动脚本:

java ^
   %JAVA_OPTS% ^
   -server ^
   -Dehcachedx.sampling.seconds=10 ^
   -Dehcachedx.sampling.history=8640 ^
   -server ^
   -cp %classpath% ^
   org.terracotta.ehcachedx.monitor.Monitor start ^
   -j %PRGDIR%\etc\jetty.xml ^ 去掉
   -f ..\etc\ehcache-monitor.conf %*

endlocal

启动成功后显示以下界面:
May 24, 2013 4:55:35 PM org.terracotta.ehcachedx.license.LicenseResolver resolve
License
WARNING: No  license key found. This monitoring probe software is not licensed f
or production usage, and is only licensed for development usage. See LICENSE.txt
for details. A temporary key will be generated for development usage. When the
temporary key expires, the ing probe capability will be suspended but your abili
ty to continue to use Ehcache will not be affected. Please contact sales@terraco
ttatech.com to request a license.
May 24, 2013 4:55:36 PM org.terracotta.ehcachedx.license.LicenseResolver logLice
nse
INFO:
---------------  license key ---------------
Capabilities: ehcache monitor
Date of Issue: 2013-05-24
Edition: DX
Expiration Date: 2013-05-27
License Number: 0000
License Type: DevOnly
Licensee: DevOnly
Product: Ehcache
-----------------------------------------------
May 24, 2013 4:55:36 PM org.terracotta.ehcachedx.monitor.monitor.MonitorDxServic
e startHTTPListener
INFO: Started monitor at http://10.158.171.102:9889/monitor
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值