存储 + 评估绩效数据

发布于 2024-07-22 03:27:34 字数 445 浏览 7 评论 0原文

由于我们的网络应用程序逐渐退化,我们决定监控我们的应用程序性能并衡量个人操作。

例如,我们将测量每个请求的持续时间、编辑客户或创建约会、搜索合同等单个操作的持续时间。 在大多数情况下,数据库是这些操作的瓶颈。

我预计最终数据将相当大,因为我们将针对每个请求收集 1-5 个单独的操作。

当然,将每个元素插入数据库是无意义的,因为这会进一步减慢每个请求的速度。

存储和评估这些每个请求数据的好策略是什么? 我考虑过有一个附加的全局队列对象和一个清空队列并处理持久存储/文件的单独线程。 但这些数据存储在哪里呢? 是否有任何用于此类可视化的预构建工具?

我们使用java、spring、混合hibernate+jdbc+pl/sql、oracle。

不过,这个问题应该与语言无关。

编辑:测量将在生产中进行很长一段时间。

since we suffer from creeping degradation in our web application we decided to monitor our application performance and measure individual actions.

for example we will measure the duration of each request, the duration of individual actions like editing a customer or creating an appointment, searching for a contract.
in most cases the database is the bottleneck for these actions.

i expect that the culminated data will be quite large, since we will gather 1-5 individual actions per request.

of course it would be nonsense to insert each an every element to the database, since this would slow down every request even more.

what is a good strategy for storing and evaluating those per-request data.
i thought about having a global Queue object which is appended and a seperate thread that empties the queue and handles the persistent storage/file. but where to store such data? are there any prebuilt tools for such a visualisation?

we use java, spring, mixed hibernate+jdbc+pl/sql, oracle.

the question should be language-agnostic, though.

edit: the measurement will be taken in production over a large period of time.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

情场扛把子 2024-07-29 03:27:34

看来您的归档策略至少部分取决于您的测试范围:

  • 您打算收集性能数据多长时间?
  • 你想展示什么? 随着时间的推移,性能会提高吗? 与特定变化相关的改进? (就像一组特定版本的性能问题)

至于可视化工具,我发现 Excel 对于少量到中等数量的数据非常有用。

It seems like your archive strategy will be at least partially dependent on the scope of your tests:

  • How long do you intend to collect performance data?
  • What are you trying to demonstrate? Performance improvements over time? Improvements associated with specific changes? (Like perf issues for a specific set of releases)

As for visualization tools, I've found excel to be pretty useful for small to moderate amounts of data.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文