Feedback
# re: spy2servers组件化的监控平台使用帮助手册(更新)[未登录]
2008-04-25 22:52 |
一直关注着 谢谢
回复 更多评论
# re: spy2servers组件化的监控平台使用帮助手册(更新)
2008-04-25 23:00 |
支持!只要关注服务器性能的公司,都应该用的上!
回复 更多评论
# re: spy2servers组件化的监控平台使用帮助手册(更新)
2008-04-28 13:07 |
用一下不错,文档也挺详细的。 支持到底!!:)
回复 更多评论
# re: spy2servers组件化的监控平台使用帮助手册(更新)
2008-04-28 17:24 |
采用新的配置文件老是报错,楼主帮帮忙吧
Exception in thread "main" org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 16 in XML document from class path resource [spy2servers.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'core-component'.
Caused by: org.xml.sax.SAXParseException: cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'core-component'.
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:236)
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:172)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:382)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:316)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(XMLSchemaValidator.java:429)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.reportSchemaError(XMLSchemaValidator.java:3185)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaValidator.java:1955)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.startElement(XMLSchemaValidator.java:705)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:324)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1693)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148)
at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:250)
at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:292)
at org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:73)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:361)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:313)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:290)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:131)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:147)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:173)
at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:112)
at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:79)
at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:101)
at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:394)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:324)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:122)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:66)
at org.xmatthew.spy2servers.adapter.spring.ContextServiceLocator.loadContext(ContextServiceLocator.java:28)
at org.xmatthew.spy2servers.command.StartCommand.execute(StartCommand.java:25)
at org.xmatthew.spy2servers.console.Main.main(Main.java:46)
回复 更多评论
# re: spy2servers组件化的监控平台使用帮助手册(更新)
2008-04-29 08:25 |
@dbclick
你需要把类库更新一下,由原来的spy2servers.jar,现在应该是两个类库spy2servers-core.jar和spy2servers-plugins.jar。 直接从上面的链接上就可以下载,更新到lib目录下。
回复 更多评论
# re: spy2servers组件化的监控平台使用帮助手册(更新)
2008-04-29 11:28 |
@x.matthew
运行没有问题的,但是使用你的源代码就有问题了
我是在eclipse下创建spy2servers项目,然后把你的源代码拷到src下,运行的时候就报上面错误了。但是直接运行二进制代码就没有问题。
回复 更多评论
# re: spy2servers组件化的监控平台使用帮助手册(更新)
2008-04-29 12:36 |
@dbclick
是这样的,你运行时,需要把spy2servers-core的源码和spy2servers-plugins源码放到两个项目中,因为两个项目在编译路径下META-INF目录下都有spring.schemas,会彼此覆盖所导致的。
回复 更多评论
# re: spy2servers组件化的监控平台使用帮助手册(更新)
2008-04-29 13:32 |
@x.matthew
非常感谢楼主的热心,已经OK了
回复 更多评论
# re: spy2servers组件化的监控平台使用帮助手册(更新)
2008-05-09 16:18 |
博主您好!
我在安装后启动程序时报以下错误:
ERROR JmxSpySupportComponent - Failed to retrieve RMIServer stub: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: localhost; nested exception is:
java.net.ConnectException: Connection refused]
java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: localhost; nested exception is:
java.net.ConnectException: Connection refused]
at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:317)
at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:248)
at org.springframework.jmx.support.MBeanServerConnectionFactoryBean.connect(MBeanServerConnectionFactoryBean.java:126)
at org.springframework.jmx.support.MBeanServerConnectionFactoryBean.afterPropertiesSet(MBeanServerConnectionFactoryBean.java:114)
at org.xmatthew.spy2servers.component.spy.jmx.JmxSpySupportComponent.startJmxConnection(JmxSpySupportComponent.java:149)
at org.xmatthew.spy2servers.component.spy.jmx.JmxSpySupportComponent.startup(JmxSpySupportComponent.java:76)
at org.xmatthew.spy2servers.thread.ComponentInvokeTask.executed(ComponentInvokeTask.java:37)
at org.xmatthew.spy2servers.thread.DedicatedTaskRunner.runTask(DedicatedTaskRunner.java:83)
at org.xmatthew.spy2servers.thread.DedicatedTaskRunner.access$0(DedicatedTaskRunner.java:71)
at org.xmatthew.spy2servers.thread.DedicatedTaskRunner$1.run(DedicatedTaskRunner.java:21)
Caused by: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: localhost; nested exception is:
java.net.ConnectException: Connection refused]
at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:97)
at com.sun.jndi.toolkit.url.GenericURLContext.lookup(GenericURLContext.java:185)
at javax.naming.InitialContext.lookup(InitialContext.java:351)
at javax.management.remote.rmi.RMIConnector.findRMIServerJNDI(RMIConnector.java:1817)
at javax.management.remote.rmi.RMIConnector.findRMIServer(RMIConnector.java:1787)
at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:259)
... 9 more
Caused by: java.rmi.ConnectException: Connection refused to host: localhost; nested exception is:
java.net.ConnectException: Connection refused
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:574)
at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:185)
at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:171)
at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:306)
at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:93)
... 14 more
Caused by: java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:519)
at java.net.Socket.connect(Socket.java:469)
at java.net.Socket.<init>(Socket.java:366)
at java.net.Socket.<init>(Socket.java:179)
at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:22)
at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:128)
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:569)
... 19 more
回复 更多评论
# re: spy2servers组件化的监控平台使用帮助手册(更新)
2008-05-12 09:30 |
@freeke
这个错误与监控平台本身无关。是这样的,你在启动服务的时候,会启动一个ActiveMQ的监控组件和tomcat服务监控组件,它们会去监听你本地是否有该服务,如果没有则会抛出你所说的错误,你可从配置中去掉这两个监控组件就行。
回复 更多评论
# re: spy2servers组件化的监控平台使用帮助手册(更新)
2008-06-16 18:23 |
如果我只想监控Linux的tomcat 都应该怎么做啊?
配置了好几遍 都出错
回复 更多评论
# re: spy2servers组件化的监控平台使用帮助手册(更新)
2008-06-17 08:20 |
能把错误信息日志发我一下,我帮你看一下是什么问题不能在你机器运行?
其实监控tomcat是通过jmx来实现,与linux或windows或其它操作系统无关的。
回复 更多评论
# re: spy2servers组件化的监控平台使用帮助手册(更新)
2008-06-17 17:07 |
class org.xmatthew.spy2servers.component.alert.PrintScreenAlertComponentorg.xmatthew.spy2servers.core.Message@787c16[id=08e7179d-33f6-4e87-a703-716cb8371529,body=ServerStatus,level=4,properties={port=8080, host=127.0.0.1, from=TomcatJmxSpyComponent, to=PrintScreenAlertComponent},createDate=Tue Jun 17 17:06:17 CST 2008,description=JvmConnectFailed,type=JvmConnectionStatus]
ERROR JmxSpySupportComponent - Failed to retrieve RMIServer stub: javax.naming.CommunicationException [Root exception is java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is:
java.io.EOFException]
java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.CommunicationException [Root exception is java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is:
java.io.EOFException]
at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:317)
at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:248)
at org.springframework.jmx.support.MBeanServerConnectionFactoryBean.connect(MBeanServerConnectionFactoryBean.java:126)
at org.springframework.jmx.support.MBeanServerConnectionFactoryBean.afterPropertiesSet(MBeanServerConnectionFactoryBean.java:114)
at org.xmatthew.spy2servers.component.spy.jmx.JmxSpySupportComponent.startJmxConnection(JmxSpySupportComponent.java:149)
at org.xmatthew.spy2servers.component.spy.jmx.JmxSpySupportComponent.startup(JmxSpySupportComponent.java:76)
at org.xmatthew.spy2servers.thread.ComponentInvokeTask.executed(ComponentInvokeTask.java:37)
at org.xmatthew.spy2servers.thread.DedicatedTaskRunner.runTask(DedicatedTaskRunner.java:83)
at org.xmatthew.spy2servers.thread.DedicatedTaskRunner.access$0(DedicatedTaskRunner.java:71)
at org.xmatthew.spy2servers.thread.DedicatedTaskRunner$1.run(DedicatedTaskRunner.java:21)
Caused by: javax.naming.CommunicationException [Root exception is java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is:
java.io.EOFException]
at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:97)
at com.sun.jndi.toolkit.url.GenericURLContext.lookup(GenericURLContext.java:185)
at javax.naming.InitialContext.lookup(InitialContext.java:351)
at javax.management.remote.rmi.RMIConnector.findRMIServerJNDI(RMIConnector.java:1807)
at javax.management.remote.rmi.RMIConnector.findRMIServer(RMIConnector.java:1777)
at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:259)
... 9 more
Caused by: java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is:
java.io.EOFException
at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:274)
at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:171)
at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:306)
at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:93)
... 14 more
Caused by: java.io.EOFException
at java.io.DataInputStream.readByte(DataInputStream.java:243)
at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:215)
... 18 more
回复 更多评论
# re: spy2servers组件化的监控平台使用帮助手册(更新)
2008-06-18 08:18 |
@godson_2003
你这个问题与上面@freeke提的问题一样,这个错误与监控平台本身无关。我发布的spy2servers版本里面,在启动服务的时候,会启动一个ActiveMQ的监控组件和tomcat服务监控组件,它们会去监听你本地是否有该服务,如果没有则会抛出你所说的错误,你可从配置中去掉这两个监控组件就行。
把spy2servers.xml中 activeMQJmxSpy和tomcatJmxSpy去掉即可。
回复 更多评论
# re: spy2servers组件化的监控平台使用帮助手册(更新)
2008-07-14 15:38 |
@x.matthew
你这个问题与上面@freeke提的问题一样,这个错误与监控平台本身无关。我发布的spy2servers版本里面,在启动服务的时候,会启动一个ActiveMQ的监控组件和tomcat服务监控组件,它们会去监听你本地是否有该服务,如果没有则会抛出你所说的错误,你可从配置中去掉这两个监控组件就行。
把spy2servers.xml中 activeMQJmxSpy和tomcatJmxSpy去掉即可。
但是我本地有这个服务,为什么它还是抛出这些异常?
回复 更多评论
# re: spy2servers组件化的监控平台使用帮助手册(更新)
2008-09-03 14:11 |
修改一下配置文件路径就出现如下的错误(运行源码):
Exception in thread "main" org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 14 in XML document from class path resource [main/resource/spy2servers.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'core-component'.
Caused by: org.xml.sax.SAXParseException: cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'core-component'.
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:195)
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:131)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:384)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:318)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(XMLSchemaValidator.java:410)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.reportSchemaError(XMLSchemaValidator.java:3165)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaValidator.java:1898)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.startElement(XMLSchemaValidator.java:685)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:400)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2740)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:645)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:508)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107)
at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:225)
at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:283)
at org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:73)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:361)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:313)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:290)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:131)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:147)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:173)
at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:112)
at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:79)
at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:101)
at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:394)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:324)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:122)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:66)
at main.java.org.xmatthew.spy2servers.adapter.spring.ContextServiceLocator.loadContext(ContextServiceLocator.java:28)
at main.java.org.xmatthew.spy2servers.command.StartCommand.execute(StartCommand.java:26)
at main.java.org.xmatthew.spy2servers.console.Main.main(Main.java:46)
回复 更多评论
# re: spy2servers组件化的监控平台使用帮助手册(更新)
2008-09-03 14:13 |
我的QQ:83399190
E-mail:leaflet_yyx@hotmail.com
回复 更多评论
# re: spy2servers组件化的监控平台使用帮助手册(更新)
2014-10-24 22:28 |
文章说的很好汽车,支持
回复 更多评论