`
darkjune
  • 浏览: 305781 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
社区版块
存档分类
最新评论

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
分享到:
评论

相关推荐

    Ehcache Monitor 安装配置

    启动Ehcache Monitor服务器非常简单,只需进入安装目录的`bin`子目录,运行`startup.sh`(对于Linux或Mac)或`startup.bat`(对于Windows)。这将启动服务器监听指定的端口,通常默认为9889。 最后,你可以通过Web...

    ehcache监控工具ehcache-monitor-kit-1.0.3

    1.解压缩到目录下,复制ehcache-monitor-kit-...启动被监控的web application和ehcache-monitor-kit-1.0.0\bin目录下的startup.bat(在windows环境下) 5.在浏览器中输入 http://localhost:9889/monitor/即可开始监控。

    ehcache-monitor

    1.解压缩到目录下,复制ehcache-monitor-...4.启动被监控的web application和ehcache-monitor-kit-1.0.0\bin目录下的startup.bat(在windows环境下) 5.在浏览器中输入 http://localhost:9889/monitor/即可开始监控。

    ehcache-monitor-kit-1.0.3

    "ehcache-monitor-kit-1.0.3"是一个专门针对Ehcache的监控工具包,帮助开发者和运维人员实时了解Ehcache的运行状态,从而进行优化和故障排查。 监控工具包的核心功能包括: 1. **统计信息**:收集并展示Ehcache的...

    ehcache.xsd_ehcache.xml代码提示.rar

    总结:这个压缩包提供的ehcache.xsd文件对于使用Ehcache的开发者来说是一个宝贵的资源,它能够帮助他们在编写ehcache.xml配置文件时避免错误,提高开发效率,同时保证了配置文件的正确性。在实际开发中,合理利用...

    hibernate-ehcache-starter:基于hibernate的ehcache应用启动器

    但通过这个启动器,开发者可以快速地将Ehcache集成到项目中,减少手动配置的工作量,使得缓存管理更加便捷。 该项目的核心组件可能包括以下部分: 1. **hibernate-ehcache-configuration**:包含了集成Ehcache所需...

    ehcache资料(包含ehcache jar包)

    3. **初始化Ehcache**:在应用程序启动时加载配置并初始化Ehcache实例。 4. **使用缓存**:通过Ehcache API进行缓存的增删查改操作,例如`CacheManager.getInstance().getCache("myCache").put(key, value)`。 5. ...

    Ehcache 简单的监控

    Ehcache是一个开源的、高性能的缓存解决方案,广泛应用于Java应用程序中,以提高数据访问的速度和效率。本文将深入探讨Ehcache的简单监控,帮助开发者更好地理解其工作原理和性能状态。 首先,了解Ehcache的核心...

    ehcache-3.3.1-API文档-中文版.zip

    赠送jar包:ehcache-3.3.1.jar; 赠送原API文档:ehcache-3.3.1-javadoc.jar; 赠送源代码:ehcache-3.3.1-sources.jar; 赠送Maven依赖信息文件:ehcache-3.3.1.pom; 包含翻译后的API文档:ehcache-3.3.1-javadoc-...

    ehcache.jar及源码

    Ehcache是一个广泛使用的开源Java缓存库,它为应用程序提供了高效的内存管理和数据缓存功能。Ehcache的核心目标是提高应用性能,通过将频繁访问的数据存储在内存中,减少对数据库的依赖,从而降低系统负载。这次我们...

    ehcache

    **Ehcache 知识详解** Ehcache 是一个开源的、高性能的缓存解决方案,广泛应用于Java应用程序中,尤其在提升系统性能和减少数据库负载方面表现突出。它支持内存和磁盘存储,并且可以与Java持久层框架如Hibernate、...

    ehcache2.6.5.rar

    5. **缓存预热**:在应用启动时,Ehcache 可以加载预先定义的缓存数据,以便快速进入服务状态。 6. **并发与线程安全**:Ehcache 是线程安全的,允许多个线程同时访问和修改缓存,保证数据的一致性。 7. **分布式...

    Ehcache分布式缓存与其在SpringBoot应用

    Ehcache是一个高性能的、基于Java的进程内缓存解决方案,它被广泛应用于各种Java应用程序,包括Java EE和轻量级容器。Ehcache的主要优势在于它的快速响应、易用性和丰富的缓存策略。它提供了两种级别的缓存存储:...

    hibernate+ehcache

    【标题】:“Hibernate + Ehcache 整合使用详解” 【描述】:“Hibernate 是一款流行的 Java 持久层框架,而 Ehcache 是一个高效的分布式内存缓存系统。将两者结合,能够极大地提升应用的性能,减少数据库的负载,...

    ehcache jroups tcp udp试用实例

    3. 初始化Ehcache,启动集群节点,它们会自动发现并加入到集群中。 4. 测试集群功能,例如在一台机器上写入缓存,然后在其他机器上验证数据是否可见。 5. 可能还包括了故障转移测试,模拟节点宕机,观察集群如何重新...

    ehcache 的 xsd 文件

    ehcache 的 xsd 文件

    ehcache jar包

    8. **缓存热启动**:`ehcache`支持预加载机制,允许在应用程序启动时预先加载一部分数据到缓存中,以缩短应用启动后的首次响应时间。 9. **缓存API**:`ehcache`提供了一套完整的API,包括添加、获取、删除和替换...

    mybatis ehcache 1.0 ehcache.xsd 提示文件

    本篇文章将详细探讨MyBatis与Ehcache的集成以及`ehcache.xsd`和`ehcache.xml`这两个配置文件在其中的作用。 首先,Ehcache是一个开源的、高性能的Java缓存库,它能够极大地减少对数据库的访问,提高应用程序的响应...

    Ehcache(一): Spring + Ehcache开场白

    Ehcache是一款高性能、易用且广泛应用于Java环境中的分布式缓存系统,它极大地提高了应用程序的性能和响应速度。在Spring框架中集成Ehcache,能够实现数据的快速访问,减轻数据库的压力,优化整体系统架构。本文将...

    Ehcache通过Jgroups做集群

    测试集群配置,可以启动多台虚拟机或实际的服务器,分别运行配置好的应用,然后观察Ehcache是否能够正确地在集群中同步数据。可以通过添加、更新或删除缓存项,然后检查其他节点是否也同步了这些变更。 在`...

Global site tag (gtag.js) - Google Analytics