收集与多个AWS服务交互的Java应用程序的性能指标

huangapple 未分类评论46阅读模式
英文:

Collecting Performance metrics of Java application interacting with several AWS services

问题

我想获取与多个AWS服务交互的Java应用程序的性能指标,该应用程序使用AWS Java SDK。我不确定如何处理这个任务,为了提供背景信息 - 我的应用程序可以被视为向AWS发送和接收请求和响应的客户端。我已经看过几个选项,例如ELK APM:似乎测量是基于其他应用程序针对我的应用程序(或其他指标)的请求数量,但我的应用程序不是服务器。我正在评估直接针对AWS服务从我的应用程序发出的请求数量(或其他指标)。我还考虑过使用AWS提供的工具,例如CloudWatch,但似乎这种方法最终会测试那些AWS服务的性能,而不是我的应用程序。最后,我正在考虑使用Apache JMeter,但我不确定它是否能达到目的,下面的图示阐明了我的问题。我将感谢任何指向正确方向的指示。

更新:我想监视性能,我正在使用VisualVM监视CPU、内存等。我需要一种监视请求和响应的方法。

收集与多个AWS服务交互的Java应用程序的性能指标

英文:

I want to get the performance metrics of a Java application that interacts with several AWS services using the AWS Java SDK. I am not sure how to approach this task, for context - my application can be considered as a client sending and receiving requests and responses to/fro AWS. I have looked at several options e.g. ELK APM: it seems that the measurements are based on the number of requests against my application (or other metrics) from other applications, but my application is not a server. I am at evaluating the number of requests (or other metrics) directly against the AWS services from my application. I also considered using tools provided by AWS e.g. CloudWatch, however, it seems this approach ends up testing the performance of those AWS services rather than my application. Lastly, I am considering using Apache JMeter, but I am not sure if it will serve the purpose, the diagram below illustrates my question. I will appreciate any pointers in the right direction.

Update: I want to monitor the performance, I am using VisualVM for monitoring CPU, memory etc. I need a way to monitor requests and responses.

收集与多个AWS服务交互的Java应用程序的性能指标

答案1

得分: 0

Sure, here's the translated content:

  1. 对于应用程序本身的性能测试,您需要使用诸如YourKitJProfiler之类的分析工具。
  2. 如果您需要测试AWS服务的性能,您可以使用Apache JMeter(或任何其他适用的工具)模拟数百/数千个应用程序,只需使用JMeter模拟应用程序通常发送的请求。如果通信是使用HTTP或HTTPS协议进行的,甚至可以使用JMeter的HTTP(S)测试脚本记录器进行记录,详细信息请参阅如何使用JMeter运行桌面应用程序的性能测试文章。
英文:
  1. For performance testing of the application itself you need to use a profiler tool like YourKit or JProfiler
  2. If you need to test the performance of the AWS services you can simulate hundreds/thousands of applications using Apache JMeter (or any other suitable tool), you just need to simulate the requests which your application is normally sending using JMeter. If the communication is being done using HTTP or HTTPS protocols you can even record it using JMeter's HTTP(S) Test Script Recorder, check out How to Run Performance Tests of Desktop Applications Using JMeter article for more details.

huangapple
  • 本文由 发表于 2020年4月4日 17:12:15
  • 转载请务必保留本文链接:https://java.coder-hub.com/61025977.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定