如何加载带有SWF Flash文件的测试网站?

发布于 2024-08-20 17:43:12 字数 238 浏览 7 评论 0原文

我有一个网站,其中嵌入了带有 SWFObject 的 SWF。此 SWF 文件有 1.5 MB。我想测试如果每小时 600 个用户尝试打开网站 (Lightppd) 是否还活着。大约是。传输速度为 900 MB/小时。

所以我有两个问题合而为一:

1)ab(Apache Bench)测试是否也处理SWFObject并在测试时获取SWF文件? 2) 如果 1) 为 false,如何使用正确嵌入的 SWF 文件加载测试我的网站?

I have a website that has a SWF embbeded on it with SWFObject. This SWF file has 1,5 MB. I would like to test if website (Lightppd) will be alive if 600 users per hour will try to open it. It will be approx. 900 MB / hour of transfer.

So I have 2 questions in one:

1) Does ab (Apache Bench) test handle SWFObject and gets SWF file while testing too?
2) If 1) is false how to load test my website with SWF file embedded properly?

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

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

发布评论

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

评论(1

温柔少女心 2024-08-27 17:43:12

我想会的。我认为它只会对该页面执行一个 HTTP 请求。我的建议如下:

  • 使用 firebug 或 Fiddler(或类似的工具 - 或您的 Web 服务器访问日志)来找出所有 HTTP 请求。
  • 现在我不确定如何使用“ab”执行此操作,但您需要能够创建多个请求来模拟浏览器。在那里你可能需要另一个工具,比如 jMeter 之类的。

至于第一次测试后的调整:

  • 确保您的 SWFObject 带有 ETag 以启用缓存。
  • 如果可能的话;使用唯一的 URL 为对象提供服务,并将到期时间设置为一年或其他值。这将确保浏览器(或途中的代理)不会访问服务器,直到您的对象更新,因此具有新的 URL。

I think it would. I think it would just do one HTTP request for the page. Here is what I would suggest:

  • Use firebug or Fiddler (or a similar tool - or your web server access logs) to find out all the HTTP requests.
  • Now I am not sure how you can do this with 'ab' but you need to be able to create several requests to mimic the browser. There you may be needing another tool like jMeter or something.

As for tuning after your first tests:

  • Make sure your SWFObject is being served with an ETag to enable caching.
  • If possible; serve the object with a unique URL and set the expiry to a year or something. This would make sure that browsers (or proxies on the way) won't hit the server until your object is updated hence having a new URL.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文