spring-startup-analyzer
spring-startup-analyzer copied to clipboard
spring-startup-analyzer generates an interactive spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it.🚀
通常我们服务中启动慢一般都是因为比如微服务等使用太多了 比如各种RPC服务 以dubbo为例 建议可以考虑一下支持这些常见的FactoryBean的异步启动 这块速度的影响是最大的
使用最新的3.1.2版本,按照使用指导配置了spring-startup-analyzer.app.health.check.endpoints,改造了启动脚本,加入了-javaagent:选项。 启动后,报错 Exception in thread "StartupMonitor-Thread" com.alibaba.fastjson.JSONException: toJSONString error at com.alibaba.fastjson.JSON.toJSONString(JSON.java:1545) at io.github.linyimin0812.profiler.common.ui.StartupVO.toJSONString(StartupVO.java:55) at io.github.linyimin0812.profiler.core.container.IocContainer.writeStartupVOToHtml(IocContainer.java:107) at io.github.linyimin0812.profiler.core.container.IocContainer.stop(IocContainer.java:94) at io.github.linyimin0812.profiler.core.monitor.StartupMonitor.checkStatus(StartupMonitor.java:44) at java.lang.Thread.run(Thread.java:750) Caused by: java.lang.IllegalStateException: InputStream has already been read -...
我想要利用这个增加一下项目启动成功的判断,我要修改哪个包才能实现呢(仅用于使用我自己的项目)  