gpt4 book ai didi

wcf - 一段时间后(20 分钟)出现 WCF 服务超时

转载 作者:行者123 更新时间:2023-12-02 00:45:41 24 4
gpt4 key购买 nike

我有一个高度多线程的 Windows 服务。每个线程都会调用WCF服务的各种方法。大约一段时间后,我对 WCF 服务执行的所有调用都会导致超时:

The request channel timed out attempting to send after 00:10:00. Increase the timeout value passed to the call to Request or increase the SendTimeout value on the Binding. The time allotted to this operation may have been a portion of a longer timeout

正如你所看到的,超时是 10 分钟,我也尝试过:

serviceThrottling maxConcurrentCalls="200" maxConcurrentInstances="200" maxConcurrentSessions="200"/>

但这并没有帮助。

我已经使用 Process Explorer 检查了 w3wp.exe,但找不到任何可以指向我的地方。我与网络服务建立的所有连接都已关闭。

有人知道如何解决这个问题吗?我想知道调用是否正在正确处理,但调用数量太多,因此它们开始超时,或者它们卡在那里,只是等待?

我怎样才能检查这个?我以为服务器只是过载了,但只有 CPU 超过 50%,内存没有。

最佳答案

看看idleTimeout:

<system.web>
<hostingEnvironment idleTimeout="20"
shutdownTimeout="30"/>
</system.web>

这通常设置为 20 分钟,您需要更改它。

更新更多信息请参见:

http://msdn.microsoft.com/en-us/library/bb332338.aspx

关于wcf - 一段时间后(20 分钟)出现 WCF 服务超时,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3711326/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com