[英]How do you measure performance of spring boot api with limited resources?
Let's say we have a monolithic rest API written in Java with Spring Boot.假设我们有一个单片 rest API 写在 Java 和 Spring Boot. And we want to do some performance analysis on it, how would we go about it?而我们想对它做一些性能分析,我们怎么会go呢?
The problem is measuring its performance with custom maximum usage requirements, for example, maximum ram, CPU cores, CPU clock speed, etc.问题是通过自定义最大使用要求来衡量其性能,例如最大内存、CPU 内核、CPU 时钟速度等。
Knowing this can be useful, such as predicting cloud and other hosting fees, what is the best way of doing it?知道这一点很有用,例如预测云和其他托管费用,最好的方法是什么?
Maybe you can use Spring metrics and tracing?也许您可以使用 Spring 指标和跟踪? https://spring.io/guides/tutorials/metrics-and-tracing/ https://spring.io/guides/tutorials/metrics-and-tracing/
Also might wanna look at Grafana k6也可能想看看 Grafana k6
https://circleci.com/blog/api-performance-testing-with-k6/ https://circleci.com/blog/api-performance-testing-with-k6/
and Micrometer和千分尺
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.