2022-07-13 03:41:12.013 INFO 10443 --- [nio-8080-exec-2] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring DispatcherServlet 'dispatcherServlet'
2022-07-13 03:41:12.013 INFO 10443 --- [nio-8080-exec-2] o.s.web.servlet.DispatcherServlet : Initializing Servlet 'dispatcherServlet'
2022-07-13 03:41:12.026 INFO 10443 --- [nio-8080-exec-2] o.s.web.servlet.DispatcherServlet : Completed initialization in 13 ms
2022-07-13 03:41:12.162 INFO 10443 --- [nio-8080-exec-2] hello.WebLogAspect :【开始处理请求】请求地址 URL: http://192.168.30.149:8080/greeting:,请求方法 GET,对应: hello.GreetingController.greeting,IP: 192.168.12.130,请求参数: ["World"]
2022-07-13 03:41:12.213 INFO 10443 --- [nio-8080-exec-2] hello.WebLogAspect : 返回结果: {"content":"Hello, World!","id":1},请求耗时: 49 ms
2022-07-13 03:41:12.565 INFO 10443 --- [nio-8080-exec-1] hello.WebLogAspect :【开始处理请求】请求地址 URL: http://192.168.30.149:8080/greeting:,请求方法 GET,对应: hello.GreetingController.greeting,IP: 192.168.12.130,请求参数: ["World"]
2022-07-13 03:41:12.565 INFO 10443 --- [nio-8080-exec-1] hello.WebLogAspect : 返回结果: {"content":"Hello, World!","id":2},请求耗时: 0 ms
被监控的项目启动成功了。
./sandbox.sh -p 10443 -P 12580
NAMESPACE : default
VERSION : 1.3.3
MODE : ATTACH
SERVER_ADDR : 0.0.0.0
SERVER_PORT : 12580
UNSAFE_SUPPORT : ENABLE
SANDBOX_HOME : /root/sandbox/bin/..
SYSTEM_MODULE_LIB : /root/sandbox/bin/../module
USER_MODULE_LIB : /root/sandbox/sandbox-module;~/.sandbox-module;
SYSTEM_PROVIDER_LIB : /root/sandbox/bin/../provider
EVENT_POOL_SUPPORT : DISABLE
sandbox 也执行成功了,为什么在 repeater 在线模块没有心跳信息呢?
这是启动项目的日志:
[root@localhost ~]# java -jar gs-rest-service-0.1.0.jar
. ____ _ __ _ _
/\ / ' __ _ ()_ __ __ _ \ \ \ \
( ( )_ | '_ | '| | ' \/ ` | \ \ \ \
\/ _)| |)| | | | | || (| | ) ) ) )
' |__| .|| ||| |_, | / / / /
=========||==============|_/=////
:: Spring Boot :: (v2.1.6.RELEASE)
2022-06-30 23:04:21.498 INFO 4005 --- [ main] hello.Application : Starting Application v0.1.0 on localhost.localdomain with PID 4005 (/root/gs-rest-service-0.1.0.jar started by root in /root)
2022-06-30 23:04:21.502 INFO 4005 --- [ main] hello.Application : No active profile set, falling back to default profiles: default
2022-06-30 23:04:23.626 INFO 4005 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 8080 (http)
2022-06-30 23:04:23.683 INFO 4005 --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat]
2022-06-30 23:04:23.684 INFO 4005 --- [ main] org.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/9.0.21]
2022-06-30 23:04:23.830 INFO 4005 --- [ main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2022-06-30 23:04:23.831 INFO 4005 --- [ main] o.s.web.context.ContextLoader : Root WebApplicationContext: initialization completed in 2226 ms
2022-06-30 23:04:24.334 INFO 4005 --- [ main] o.s.s.concurrent.ThreadPoolTaskExecutor : Initializing ExecutorService 'applicationTaskExecutor'
2022-06-30 23:04:24.701 INFO 4005 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port(s): 8080 (http) with context path ''
2022-06-30 23:04:24.706 INFO 4005 --- [ main] hello.Application : Started Application in 4.071 seconds (JVM running for 5.056)
执行 sandbox 的命令:
进到/root/.opt/sandbox/bin 文件夹执行:
./sandbox.sh -p 4005 -X
报错信息:
[root@localhost bin]# ./sandbox.sh -p 4005 -X
repeater 注入到被测应用, 被测应用报错 Full thread dump Java HotSpot(TM) 64-Bit Server VM (11.0.7+8-LTS mixed mode): 有没有遇到过?怎么解决的?