GetRequestStream延迟并增加内存 [英] GetRequestStream delay and increasing memory

查看:83
本文介绍了GetRequestStream延迟并增加内存的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好

我有使用GetRequestStream的问题。

HttpWebRequest myRequest =(HttpWebRequest)WebRequest.Create(url);
newStream = myRequest.GetRequestStream();

当URL在同一台机器上时没有问题;如果URL在另一台机器上(例如,应用程序位于192.168.79.134,网址是192.168.79.137),我总是会得到一个延迟(最多4秒)。我们进行了一些网络测试,以确定服务器之间是否存在网络问题,但似乎没有问题。此外,我们面临着内存和资源利用率的增加,正如该文章所述:

http://support.microsoft.com/kb/908573/en-us/

我们尝试了该文章建议的解决方案。我们还将reqest的Proxy属性设置为null(myRequest.Proxy = null;)但没有任何变化。

你有什么想法或建议吗?

真的非常感谢

> Stefano

Hi all

i have a problem with using GetRequestStream.

HttpWebRequest myRequest = (HttpWebRequest)WebRequest.Create(url);
Stream newStream = myRequest.GetRequestStream();

when the URL is on the same machine there's no problem; if the URL is on another machine (for example the application is at 192.168.79.134 and the url is at 192.168.79.137) i always get a delay (up to 4 seconds). We made some net tests in order to find out if there's a network problem between servers but it seems there's no problem.

moreover, we faced an increasing of the memory and resource utilization, just as depicted in that article:

http://support.microsoft.com/kb/908573/en-us/

we tried with solutions suggested by that article. We also set the Proxy property of the reqest to null (myRequest.Proxy = null;) but nothing changes.

Have you got any idea or suggestion?

Really thanks

Stefano

推荐答案

我们进行了一些网络测试,以确定是否存在网络问题服务器之间但似乎没有问题。

你做了什么测试?你怎么知道这不是一个网络问题?网络时间4秒是永恒的。
 We made some net tests in order to find out if there's a network problem between servers but it seems there's no problem.

What tests did you do?  How do you know it's not a network issue? 4 seconds in network time is an eternity.


这篇关于GetRequestStream延迟并增加内存的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆