测试Apache/mod_jk/Tomcat配置升级

发布于 2024-10-16 14:34:15 字数 384 浏览 8 评论 0原文

我们已经开始使用带有 mod_jk 的 Apache 和四个 Tomcat 服务器(新硬件)将硬件和软件升级到 64 位架构。我们需要能够通过大量同时连接来测试该设备,同时仍然在应用程序中实际执行操作(登录等)。

我目前正在使用带有 Mechanize 库的 Python 来执行此操作,但这并不能解决问题。在 Python 中,线程并不是“真实的”,多重处理使得本地机器比我们尝试测试的机器工作更困难,因为它必须为 Mechanize 加载大量数据到内存中。

最重要的是,我需要一些东西来真正锤击这个东西的连接并举行一个会话,以确保粘性会话在 mod_jk 中正常工作。我需要能够快速编码,它需要轻量级,并且能够进行真正的多线程将是一个额外的好处。除此之外,我的思想是开放的。

任何意见将不胜感激。谢谢。

We have begun upgrading hardware and software to a 64-bit architecture using Apache with mod_jk and four Tomcat servers (the new hardware). We need to be able to test this equipment with a large number of simultaneous connections while still actually doing things in the app (logging in, etc.)

I currently am using Python with the Mechanize library to do this, but it's just not cutting it. Threading is not "real" in Python, and multiprocessing makes the local box work harder than the machines we are trying to test since it has to load so much into memory for Mechanize.

The bottom line is that I need something that will really hammer this thing's connections and hold a session to make sure that the sticky sessions are working in mod_jk. I need to be able to code it quickly, it needs to be lightweight, and being able to do true multithreading would be a perk. Other than that, I am open-minded.

Any input will be greatly appreciated. Thanks.

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

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

发布评论

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

评论(2

╰◇生如夏花灿烂 2024-10-23 14:34:15

开源测试工具

不知道完整的要求使其变得困难,但是列表中的某些内容可能符合要求。

Open Source Testing Tools

Not knowing the full requirements makes it difficult, however something from the list might fit the bill.

池木 2024-10-23 14:34:15

为了完成我想做的事,我只是回到了基础。 Mechanize 有点笨重,我之前进行的主要功能测试中涉及到很多臃肿的内容。因此,我从头开始,仅使用 cookielib.CookieJar 和 urllib2 构建线性测试,然后在 while 1 循环中运行它们。这给 Apache 系统带来了足够的压力,看看它在新环境中会如何反应,据记录,它做得非常好。

In order to accomplish what I wanted to do, I just went back to basics. Mechanize is somewhat bulky, and there was a lot of bloat involved in the main functionality tests I had before. So I started with a clean slate and just used cookielib.CookieJar and urllib2 to build a linear test and then run them in a while 1 loop. This provided enough strain on the Apache system to see how it would react in the new environment, and for the record, it did VERY well.

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