ehcache monitor启动错误UnknownHostException

简介: @echo on if not defined JAVA_HOME (   echo JAVA_HOME environment variable must be set   exit /b 1 ) setlocal enabledelayedexp...
@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
目录
相关文章
|
4月前
|
应用服务中间件
Spring-boot启动失败 Unregistering JMX-exposed beans on shutdown 异常处理
Spring-boot启动失败 Unregistering JMX-exposed beans on shutdown 异常处理
56 0
|
23天前
io.lettuce.core.RedisCommandTimeoutException: Command timed out 解决办法
io.lettuce.core.RedisCommandTimeoutException: Command timed out 解决办法
11 0
|
1月前
|
NoSQL Java Redis
【问题篇】解决Unable to connect to Redis; nested exception is io.lettuce.core.RedisConnectionException
【问题篇】解决Unable to connect to Redis; nested exception is io.lettuce.core.RedisConnectionException
310 0
|
6月前
|
NoSQL Java Redis
redis.clients.jedis.exceptions.JedisDataException: ERR Syntax error, try CLIENT (LIST | KILL ip:port
redis.clients.jedis.exceptions.JedisDataException: ERR Syntax error, try CLIENT (LIST | KILL ip:port
|
3月前
|
NoSQL Redis
进行主从复制时出现的异常FATAL CONFIG FILE ERROR (Redis 6.2.6)Reading the configuration file
进行主从复制时出现的异常FATAL CONFIG FILE ERROR (Redis 6.2.6)Reading the configuration file
|
3月前
|
监控 应用服务中间件
idea debug模式启动Tomcat报错:Error running ‘tomcat8‘: java.net.SocketException “socket closed“
idea debug模式启动Tomcat报错:Error running ‘tomcat8‘: java.net.SocketException “socket closed“
|
NoSQL Java Redis
Redis - Redis command timed out nested exception is io.lettuce.core.RedisCommandTimeoutException
Redis - Redis command timed out nested exception is io.lettuce.core.RedisCommandTimeoutException
2915 0
|
Java Spring
项目启动后失败,报Unregistering JMX-exposed beans on shutdown
项目启动后失败,报Unregistering JMX-exposed beans on shutdown
105 0
|
关系型数据库 MySQL Java
Could not open Hibernate Session for transaction; nested exception is org.hibernate.TransactionExcep linux下mysql修改连接超时wait_timeout修改后就ok了
Could not open Hibernate Session for transaction; nested exception is org.hibernate.TransactionExcep linux下mysql修改连接超时wait_timeout修改后就ok了
144 1