Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/288.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/sockets/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ruby/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Windows服务100%CPU,配备C#IMAP Chilkat_C#_Sockets_.net 4.5_Imap_Chilkat Email - Fatal编程技术网

Windows服务100%CPU,配备C#IMAP Chilkat

Windows服务100%CPU,配备C#IMAP Chilkat,c#,sockets,.net-4.5,imap,chilkat-email,C#,Sockets,.net 4.5,Imap,Chilkat Email,Chilkat IMAP服务在使用它的Windows服务正常运行几天后被卡在100%CPU上。每隔几天(3-7天)复制一次 我正在使用适用于.NET 4.5版本9.5.0 64位的Chilkat IAMP 我通过c#代码中止的方式是(它在每次迭代结束时运行一次): 从日志中,我得到:WSAECONNABORTED主机中的软件中止了已建立的连接 运行它的服务驻留在虚拟云环境中 这是如何实现Chilkat IMAP连接、云环境实现还是我的服务(使用Chilkat模块的应用程序)中的某个问题 以下是C

Chilkat IMAP服务在使用它的Windows服务正常运行几天后被卡在100%CPU上。每隔几天(3-7天)复制一次

我正在使用适用于.NET 4.5版本9.5.0 64位的Chilkat IAMP

我通过c#代码中止的方式是(它在每次迭代结束时运行一次):

从日志中,我得到:WSAECONNABORTED主机中的软件中止了已建立的连接

运行它的服务驻留在虚拟云环境中

这是如何实现Chilkat IMAP连接、云环境实现还是我的服务(使用Chilkat模块的应用程序)中的某个问题

以下是Chilkat日志:

日期:2014年5月6日

中文版本:9.5.0.38

解锁前缀:SNILIKIMAPMAIL

用户名:WIN-OCJD4A0985E:系统

建筑:小恩迪安;64位

语言:.NET 4.5/x64

详细日志记录:0

列表邮箱:

B仅订阅:0引用:

邮箱:*

转义邮箱名称中的引号和反斜杠

utf7EncodedMailboxPath:*

getCompleteResponse:

    WindowsError: An established connection was aborted by the software in your host machine.

    WindowsErrorCode: 0x2745

    numBytesRequested: 5

    Failed to receive data on the TCP socket

    Failed to read beginning of SSL/TLS record.

    Failed to read incoming handshake messages. (3)

    (leaveContext)

Client handshake failed. (3)

(leaveContext)
连接失败原因:0

(leaveContext)失败原因:0

连接失败

(上下文)登录:

日期:2014年5月6日

中文版本:9.5.0.38

解锁前缀:SNILIKIMAPMAIL

用户名:WIN-OCJD4A0985E:系统

建筑:小恩迪安;64位

语言:.NET 4.5/x64

详细日志记录:0

登录:**

连接类型:SSL/TLS

在套接字(1)上发送时出错

SocketError:WSAECONNABORTED已建立的连接被中止 主机中的软件

有关更多信息,请参阅Chilkat的博文:

发送尺寸:90

无法发送TLS消息

无法发送登录命令

失败了


如果Chilkat方法调用从未返回并使用100%的CPU,那么您将无法获取LastErrorText(您提供的Chilkat日志)的内容。您有一个LastErrorText表示Chilkat方法调用已返回,然后您的应用程序继续显示LastErrorText


我的猜测是,您的应用程序有一个循环,通常情况下,涉及与IMAP邮件服务器通信的Chilkat方法调用会成功(与服务器通信的时间正常),但由于某种原因,该方法调用会立即返回失败状态。在这一点上,我怀疑您的应用程序可能处于一个反复调用Chilkat方法的紧密循环中。100%的CPU利用率可能是由应用程序中的循环引起的,而不是由调用Chilkat方法中的代码引起的。

这是编程问题吗?如果是的话,问题是什么?我写了它,并举例说明了我是如何清理连接的。。。引用:这是一个如何实现Chilkat IMAP连接、云环境实现或我的服务(使用Chilkat模块的应用程序)中的问题吗。。。?顺便说一句,Chilkat是一个用于编程的库…我在GetLastError()的结果中添加了“错误检查ifs”-对于每种情况,它都可能下降,并发现有时环境中会出现网络故障-现在成功地处理了它们。谢谢
    WindowsError: An established connection was aborted by the software in your host machine.

    WindowsErrorCode: 0x2745

    numBytesRequested: 5

    Failed to receive data on the TCP socket

    Failed to read beginning of SSL/TLS record.

    Failed to read incoming handshake messages. (3)

    (leaveContext)

Client handshake failed. (3)

(leaveContext)