SQL Server 压力测试工具?

发布于 2024-09-12 16:54:35 字数 309 浏览 1 评论 0原文

我正在寻找 SQL Server 的压力工具。我在谷歌上看到了很多建议。但没有什么是我真正需要的。

我真的在寻找一种可以并行运行存储过程列表的工具,以查看资源争用的情况。收集和报告功能并不那么重要。但我还想要一些用于我们的企业构建服务器的服务器端基础。

我不是在寻找重播功能(是的,它可以做到这一点,但很难对很多不同的场景进行编程)

我查看了以下工具:

  • 来自 Microsoft
  • DTM DB Stress 的 RML 实用程序(这是最接近的)我正在寻找什么)
  • SQL 压力

I am looking for a stress tool for SQL Server. I've seen a lot of suggestions on Google. But nothing of what I really need.

I am really looking for a tool that could run a list of stored procedures in parallel to see how much contention on resources. The collect and reporting feature is not that important. But I also want something server-side base for our enterprise build server.

I am not looking for a replay feature (Yes it could do the trick but it would be difficult to program a lot of different scenarios)

I've look at the following tools:

  • RML Utilities from Microsoft
  • DTM DB Stress (this is the closest to what I'm looking for)
  • SQL Stress

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

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

发布评论

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

评论(1

别再吹冷风 2024-09-19 16:54:35

我针对这个场景创建了一个简单的测试工具,请检查一下它是否对您有用。它是免费的,不需要任何类型的许可。也不保证任何性能或质量;-)

用法:StressDb.exe <否。实例数> <总。运行时间(分钟)> <间隔(秒)>
连接字符串应驻留在配置文件中。
所有命令行参数都是必需的。使用整数。
要使用的存储过程也在配置文件中。

您需要安装.NET Framework 3.5。您还可以从多个工作站运行它以增加负载,或者如果尝试运行其他存储过程,则可以从同一台计算机上的多个文件夹运行它。您还需要一个 SQL 用户 ID,因为目前它不使用可信连接。

这段代码实际上非常简单,唯一巧妙的一点是确保连接不被池化。

http://......com/..../ stressdb.zip

如果您觉得它有用,请告诉我。

I created a simple test tool for this scenario, check it out to see if it will be of any use to you. It's free, no licensing of any sort required. No guarantees on any performance or quality either ;-)

Usage: StressDb.exe <No. of instances> <Tot. Runtime (mins)> <Interval (secs)>
Connection string should reside in the configuration file.
All command line arguments are required. Use integers.
The stored proc to use is also in the config file.

You need to have .NET framework 3.5 installed. You can also run it from multiple workstations for additional load, or from multiple folders on same machine if trying to run additional stored procedures. You also need a SQL user Id, as currently it doesn't use a trusted connection.

This code was actually super simple, the only clever bit was making sure that the connections are not pooled.

http://......com/..../stressdb.zip

Let me know if you find it useful.

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