github地址:https://github.com/linyimin0812/spring-startup-analyzer
1、安装
curl -sS https://raw.githubusercontent.com/linyimin0812/spring-startup-analyzer/main/bin/install.sh | sh
2、maven
<parent> <groupId>io.github.linyimin0812</groupId> <artifactId>spring-profiler-starter</artifactId> <version>latest_version</version> </parent>
3、Idea启动,增加vm参数:java -javaagent:/Users/runner/spring-startup-analyzer/lib/spring-profiler-agent.jar
启动后,访问http://localhost:8065/
查看应用启动耗时情况
- spring spring-startup-analyzer analyzer startup bootspring-startup-analyzer spring spring-startup-analyzer analyzer startup spring-boot spring boot spring-boot-starter spring-boot-starter-parent arthas-spring-boot-starter spring-boot-maven-plugin spring-boot-starter-thymeleaf redisson-spring-boot-starter