开发者

Why does my Windows Form app timeout when repeatedly hitting IIS 7 externally?

I've got a very simpl开发者_运维问答e Windows Form app that hits an IIS 7 site about 2000 times in the space of a few seconds (using threads).

When I run that app on the server itself, using either localhost or the ip address, everything is totally fine.

However, when I run the app on my dev box, using the ip address, I get an error from the "GetResponse" method:

The operation has timed out

The App can definitely connect to the site, because it consistently either starts throwing the timeout error after 10 or so hits (no more than 11), or it throws the timeout error immediately.

What's going on?

It's hitting IIS 7 on a Windows Server 2008 VM (external box), Windows Firewall is OFF.

My App is running locally on my dev box as the admin.

cheers


I believe the default thread pool size for IIS is about 10 threads. You're overloading that single server.

Are you doing performance testing? Do you expect that many requests, that fast, in production?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜