丰乐

各类语言统一的性能分析工具

 

java性能分析

https://pyroscope.io/docs/php/

 软件安装

brew install pyroscope-io/brew/pyroscope
brew services start pyroscope-server

 性能分析工具。说明:https://pyroscope.io/docs/java/ agent包下载: 

 

java使用比较简单  java -javaagent:/Users/xxxx/Downloads/pyroscope.jar -jar testapi-1.0-SNAPSHOT.jar

效果

 

 

 

 

遇到maven升级的问题

指定plugin版本

复制代码
 <plugins>
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
                <version>1.5.9.RELEASE</version>
                <executions>
                    <execution>
                        <goals>
                            <goal>repackage</goal>
                        </goals>
                    </execution>
                </executions>
                <configuration>
                    <mainClass>com.weibo.ad.superfans.HestiaApp</mainClass>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <configuration>
                    <source>1.8</source>
                    <target>1.8</target>
                    <compilerArgs>
                        <arg>-parameters</arg>
                    </compilerArgs>
                </configuration>
            </plugin>
        </plugins>
复制代码

 

 

ps: php暂时不支持macos,暂时不演示了。 

 




posted on   李蝉儿  阅读(142)  评论(0编辑  收藏  举报

相关博文:
阅读排行:
· 全程不用写代码,我用AI程序员写了一个飞机大战
· DeepSeek 开源周回顾「GitHub 热点速览」
· 记一次.NET内存居高不下排查解决与启示
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· .NET10 - 预览版1新功能体验(一)
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

导航

统计

点击右上角即可分享
微信分享提示