xaecbd / rct Goto Github PK
View Code? Open in Web Editor NEWRCT (Redis Computed Tomography) include parse redis rdb , slowlog analyze and clientlist analyze
License: Apache License 2.0
RCT (Redis Computed Tomography) include parse redis rdb , slowlog analyze and clientlist analyze
License: Apache License 2.0
Keys TTL Info nottl sort bug.
When I run the package of RCT-Analyze-2.0.0.jar in Java 11, I got an exception below
java.lang.TypeNotPresentException: Type javax.xml.bind.JAXBContext not present
at java.base/sun.reflect.generics.factory.CoreReflectionFactory.makeNamedType(CoreReflectionFactory.java:117)
at java.base/sun.reflect.generics.visitor.Reifier.visitClassTypeSignature(Reifier.java:125)
at java.base/sun.reflect.generics.tree.ClassTypeSignature.accept(ClassTypeSignature.java:49)
at java.base/sun.reflect.generics.visitor.Reifier.reifyTypeArguments(Reifier.java:68)
at java.base/sun.reflect.generics.visitor.Reifier.visitClassTypeSignature(Reifier.java:138)
at java.base/sun.reflect.generics.tree.ClassTypeSignature.accept(ClassTypeSignature.java:49)
at java.base/sun.reflect.generics.repository.ClassRepository.computeSuperInterfaces(ClassRepository.java:117)
at java.base/sun.reflect.generics.repository.ClassRepository.getSuperInterfaces(ClassRepository.java:95)
at java.base/java.lang.Class.getGenericInterfaces(Class.java:1138)
The initial judgment is that the java.xml.bind module has been removed from Java 11, can you add it?
start Dashboard: java -jar RCT-Dashboard-2.1.0.jar
2019-04-02 18:19:41,771 INFO [main] TomcatWebServer: Tomcat started on port(s): 8082 (http) with context path ''
2019-04-02 18:19:41,774 INFO [main] EurekaAutoServiceRegistration: Updating port to 8082
2019-04-02 18:19:41,778 INFO [main] StartApp: Started StartApp in 23.877 seconds (JVM running for 28.332)
2019-04-02 18:19:41,873 INFO [main] StartApp: RCT dashboard sevice start success!
start Analyze : java -jar -Xmx256m -Xms256m RCT-Analyze-2.1.0.jar
2019-04-02 18:21:26,311 INFO [main] Http11NioProtocol: Pausing ProtocolHandler ["http-nio-8082"]
2019-04-02 18:21:26,311 INFO [main] StandardService: Stopping service [Tomcat]
2019-04-02 18:21:26,327 INFO [main] LifecycleBase: The stop() method was called on component [StandardServer[-1]] after stop() had already been called. The second call will be ignored.
2019-04-02 18:21:26,327 INFO [main] Http11NioProtocol: Stopping ProtocolHandler ["http-nio-8082"]
2019-04-02 18:21:26,327 INFO [main] Http11NioProtocol: Destroying ProtocolHandler ["http-nio-8082"]
2019-04-02 18:21:26,335 INFO [main] ConditionEvaluationReportLoggingListener:
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2019-04-02 18:21:26,338 ERROR [main] LoggingFailureAnalysisReporter:
The Tomcat connector configured to listen on port 8082 failed to start. The port may already be in use or the connector may be misconfigured.
Action:
Verify the connector's configuration, identify and stop any process that's listening on port 8082, or configure this application to listen on another port.
2019-04-02 18:21:26,342 INFO [main] AnnotationConfigServletWebServerApplicationContext: Closing org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@1ce92674: startup date [Tue Apr 02 18:21:20 CST 2019]; parent: org.springframework.context.annotation.AnnotationConfigApplicationContext@28864e92
2019-04-02 18:21:26,343 INFO [main] EurekaServiceRegistry: Unregistering application analyze with eureka with status DOWN
2019-04-02 18:21:26,347 INFO [main] DefaultLifecycleProcessor: Stopping beans in phase 0
2019-04-02 18:21:29,385 INFO [main] AnnotationMBeanExporter: Unregistering JMX-exposed beans on shutdown
2019-04-02 18:21:29,387 INFO [main] AnnotationMBeanExporter: Unregistering JMX-exposed beans
10.249.201.87 analyzeInstance inactive!
analyze job just parse one of slaves rdb file in all masters .
报错如上
1.redis版本3,主从
2.redis主从节点都安装analyze jar包,且启动非docker
3.redis rdb文件目录/data/redis/redis_6789/data/6789/dump.rdb, RCT Data path设置的是/data/redis/redis_6789/data
4.redis主节点的analyze日志如下:
2022-01-12 15:58:20,676 ERROR [http-nio-8082-exec-7] [dispatcherServlet]: Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request
processing failed; nested exception is java.lang.NullPointerException] with root cause
java.lang.NullPointerException: null
at org.nesc.ecbd.service.RDBAnalyzeService.doCheck(RDBAnalyzeService.java:92)
at org.nesc.ecbd.controller.RDBAnalyzeController.init(RDBAnalyzeController.java:63)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:209)
at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:136)
at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:102)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:877)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:783)
at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:991)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:925)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:974)
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:877)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:661)
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:851)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:742)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
hi:
My environment is:
master: 192.168.1.x: 6379
slave: 192.168.1.y: 6379
One master and one slave.
According to your deployment document, execute the jar package without making any changes to the application.properties file. Manually performing analysis always reports the following error:
analyze job just parse one of slaves rdb file in all masters .
Ask you: Is there anything wrong with the setting?
There is also a problem with the Data Path configuration path. For example, my dump.rdb file path is: /var/lib/redis/dump.rdb Why can't I write / var / lib / redis, the prompt is to / var / lib / redis Looking under the / 6379 / directory?
比如用户如何直接在linux上安装,开头就是 java -jar RCT-Dashboard-2.0.0.jar,但是这个jar包咋来的?
在standalone redis 中,获取redis ip列表有问题,无法获取到自身的ip.
org.nesc.ecbd.utils.RedisUtil.standAloneRedisNodes 方法有bug,考虑场景不全。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.