在四核处理器上运行.Net服务时出现问题 [英] Problem in running .Net Service on a Quad Processor

查看:79
本文介绍了在四核处理器上运行.Net服务时出现问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的所有人,

我已经在2.0中创建了一个.Net服务并在一台机器上运行它

有一个Quad处理器。

失败时出现以下错误。

错误1053:服务未及时响应启动或控制

请求

这是我在事件查看器中看到的。

等待MyService服务器服务超时(30000毫秒)

连接。

以下是我服务器的系统信息

操作系统名称Microsoft(R)Windows(R)Server 2003,标准版

版本5.2.3790服务Pack 1 Build 3790

其他操作系统描述不可用

操作系统制造商Microsoft Corporation

系统名称TEST_SRV

系统制造商IBM

系统型号IBM x3850- [88631RA] -

系统类型基于X86的PC

处理器x86系列15型号4步进9 GenuineIntel~ 3169 Mhz

处理器x86 F. amily 15 Model 4 Stepping 9 GenuineIntel~3169 Mhz

处理器x86系列15型号4步进9 GenuineIntel~3169 Mhz

处理器x86系列15型号4步进9 GenuineIntel~3169 Mhz

处理器x86系列15型号4步进9 GenuineIntel~3169 Mhz

处理器x86系列15型号4步进9 GenuineIntel~3169 Mhz

处理器x86家庭15型号4步进9 GenuineIntel~3169 Mhz

处理器x86家族15型号4步进9 GenuineIntel~3169 Mhz

BIOS版本/日期IBM - [ZUE154BUS-1.09] - ,2006年6月15日


这是由于编译问题吗?请帮忙。


谢谢&问候

Sunil

Dear All,
I have created a .Net service in 2.0 and running it on a machine that
has a Quad Processor.
It is failing with the following error.
"Error 1053: The service did not respond to the start or control
request in a timely fashion"
This is what I saw in event Viewer.
Timeout (30000 milliseconds) waiting for the MyService Server service
to connect.

The following is the System Information of my server
OS Name Microsoft(R) Windows(R) Server 2003, Standard Edition
Version 5.2.3790 Service Pack 1 Build 3790
Other OS Description Not Available
OS Manufacturer Microsoft Corporation
System Name TEST_SRV
System Manufacturer IBM
System Model IBM x3850-[88631RA]-
System Type X86-based PC
Processor x86 Family 15 Model 4 Stepping 9 GenuineIntel ~3169 Mhz
Processor x86 Family 15 Model 4 Stepping 9 GenuineIntel ~3169 Mhz
Processor x86 Family 15 Model 4 Stepping 9 GenuineIntel ~3169 Mhz
Processor x86 Family 15 Model 4 Stepping 9 GenuineIntel ~3169 Mhz
Processor x86 Family 15 Model 4 Stepping 9 GenuineIntel ~3169 Mhz
Processor x86 Family 15 Model 4 Stepping 9 GenuineIntel ~3169 Mhz
Processor x86 Family 15 Model 4 Stepping 9 GenuineIntel ~3169 Mhz
Processor x86 Family 15 Model 4 Stepping 9 GenuineIntel ~3169 Mhz
BIOS Version/Date IBM -[ZUE154BUS-1.09]-, 6/15/2006

Is this due to compilation problem? Please help.

Thanks & regards
Sunil

推荐答案

< su *** @ volcanomail.comwrote in message

news:11 ********************** @ 42g2000cwt.googlegro ups.com ...
<su***@volcanomail.comwrote in message
news:11**********************@42g2000cwt.googlegro ups.com...

亲爱的所有人,

我在2.0中创建了一个.Net服务,并在一台机器上运行它

有一个Quad处理器。

失败时出现以下错误。

错误1053:服务未及时响应启动或控制

请求

这是我在事件查看器中看到的。

等待MyService服务器服务超时(30000毫秒)

连接。
Dear All,
I have created a .Net service in 2.0 and running it on a machine that
has a Quad Processor.
It is failing with the following error.
"Error 1053: The service did not respond to the start or control
request in a timely fashion"
This is what I saw in event Viewer.
Timeout (30000 milliseconds) waiting for the MyService Server service
to connect.



这是因为你的OnStart方法没有及时返回,一旦Onstart被称为SC
$等待最多它返回30秒,如果OnStart在30秒内没有返回

,则SCM认为服务无法启动,记录消息

并且终止服务。

所以,你必须调查你的OnStart并试图找出为什么它需要超过30

秒才能返回。


Willy。

This is because your OnStart method did not return in a timely fashion, once the Onstart is
called the SCM waits for a maximum of 30 seconds for it to return, if OnStart doesn''t return
within this 30 secs., then the SCM considers the service has failed to start, logs a message
and kill the service.
So, you have to investigate your OnStart and try to find out why it takes longer than 30
seconds to return.

Willy.


谢谢Willy,

但令我感到困惑的是,在我的机器上它没有给这个超时

这是我的系统配置:

操作系统名称Microsoft Windows XP Professional

版本5.1.2600 Service Pack 2 Build 2600

操作系统制造商Microsoft Corporation

系统名称USER_XP

系统制造商Dell Inc.

系统型号OptiPlex GX620

系统类型X86-基于PC的

处理器x86系列15型号6步进4 GenuineIntel~3391 Mhz

处理器x86系列15型号6步进4 GenuineIntel~3391 Mhz

BIOS版本/日期Dell Inc. A07,31 / 03/2006

SMBIOS版本2.3

Windows目录C:\ WINDOWS

系统目录C:\ WINDOWS \system32

引导设备\Device \ HarddiskVolume1

Locale美国

硬件抽象层版本=" 5.1.2600.2180

(xpsp_sp2_rtm.040803-2158)"

总物理内存2,048.00 MB

可用物理内存1.52 GB

总虚拟内存2.00 GB

可用虚拟内存1.96 GB

页面文件空间3.85 GB

页面文件C:\pagefile .sys


这是否也与操作系统有关?实际上我的服务不应该在QuadProc机器上更快吗?

当我编译服务和​​调试模式时,它运行在

QuadProcessor机器没有任何错误。

我需要回答这些问题,然后才向同行提出任何改变建议。

请帮忙。


非常感谢。


很多问候

Sunil


Willy Denoyette [MVP]写道:
Thanks Willy,
But what baffles me is that on my machine it does not give this timeout
This is my system configuration:
OS Name Microsoft Windows XP Professional
Version 5.1.2600 Service Pack 2 Build 2600
OS Manufacturer Microsoft Corporation
System Name USER_XP
System Manufacturer Dell Inc.
System Model OptiPlex GX620
System Type X86-based PC
Processor x86 Family 15 Model 6 Stepping 4 GenuineIntel ~3391 Mhz
Processor x86 Family 15 Model 6 Stepping 4 GenuineIntel ~3391 Mhz
BIOS Version/Date Dell Inc. A07, 31/03/2006
SMBIOS Version 2.3
Windows Directory C:\WINDOWS
System Directory C:\WINDOWS\system32
Boot Device \Device\HarddiskVolume1
Locale United States
Hardware Abstraction Layer Version = "5.1.2600.2180
(xpsp_sp2_rtm.040803-2158)"
Total Physical Memory 2,048.00 MB
Available Physical Memory 1.52 GB
Total Virtual Memory 2.00 GB
Available Virtual Memory 1.96 GB
Page File Space 3.85 GB
Page File C:\pagefile.sys

Is this something got to also do with OS? In fact shouldn''t my service
be faster on a QuadProc machine?
Also when I compiled the service and debugmode it ran on the
QuadProcessor machine without any errors.
I need to answer these questions before I advice my peers any changes.
Please help.

Thanks a lot.

Many regards
Sunil

Willy Denoyette [MVP] wrote:

< su *** @ volcanomail.comwrote in message

news:11 ************* *********@42g2000cwt.googlegro ups.com ...
<su***@volcanomail.comwrote in message
news:11**********************@42g2000cwt.googlegro ups.com...

亲爱的所有人,

我创建了一个.Net中的.Net服务并在一台机器上运行它。

有一个Quad处理器。

它失败了,出现以下错误。

" ;错误1053:服务未及时响应启动或控制

请求

这是我在事件中看到的wer。

等待MyService服务器服务超时(30000毫秒)

连接。
Dear All,
I have created a .Net service in 2.0 and running it on a machine that
has a Quad Processor.
It is failing with the following error.
"Error 1053: The service did not respond to the start or control
request in a timely fashion"
This is what I saw in event Viewer.
Timeout (30000 milliseconds) waiting for the MyService Server service
to connect.



这是因为你的OnStart方法没有及时返回,一旦Onstart被称为SCM等待最大值的
它返回30秒,如果OnStart在30秒内没有返回

,则SCM认为服务无法启动,记录消息

并且终止服务。

所以,你必须调查你的OnStart并试图找出为什么它需要超过30

秒才能返回。


威利。


This is because your OnStart method did not return in a timely fashion, once the Onstart is
called the SCM waits for a maximum of 30 seconds for it to return, if OnStart doesn''t return
within this 30 secs., then the SCM considers the service has failed to start, logs a message
and kill the service.
So, you have to investigate your OnStart and try to find out why it takes longer than 30
seconds to return.

Willy.


我倾向于说这是两个不同的东西

两台机器然后是处理器的数量。你服务日志事件

是什么状态,它到底有多远?如果你注释掉你的代码,那么

服务开始但什么也没做,你仍然会收到错误吗?


问候,

约翰


< su *** @ volcanomail.com写信息

新闻:11 ************** ********@k58g2000hse.googlegr oups.com ...
I would have a tendency to say it was something else that is different on
the two machines then the number of processor. Does you service log event
as to it state, how far is it getting? If you comment out your code so the
service starts but does nothing do you still get the error?

Regards,
John

<su***@volcanomail.comwrote in message
news:11**********************@k58g2000hse.googlegr oups.com...

谢谢Willy,

但令我困惑的是在我的机器上它没有给出这个超时

这是我的系统配置:

操作系统名称Microsoft Windows XP专业版

版本5.1.2600 Service Pack 2 Build 2600

OS制造商Microsoft Corporation

系统名称USER_XP

系统制造商Dell Inc.

系统型号OptiPlex GX620

系统类型基于X86的PC

处理器x86系列15型号6步进4 GenuineIntel~3391 Mhz

处理器x86系列15型号6 Stepping 4 GenuineIntel~3391 Mhz

BIOS版本/日期Dell Inc. A07,31 / 03/2006

SM BIOS版本2.3

Windows目录C:\ WINDOWS

系统目录C:\ WINDOWS \ system32

引导设备\设备\\ HarddiskVolume1

Locale美国

硬件抽象层版本=" 5.1.2600.2180

(xpsp_sp2_rtm.040803-2158)"

总物理内存2,048.00 MB

可用物理内存1.52 GB

虚拟内存总量2.00 GB

可用虚拟内存1.96 GB

页面文件空间3.85 GB

页面文件C:\pagefile.sys


这是否与此有关OS?实际上我的服务不应该在QuadProc机器上更快吗?

当我编译服务和​​调试模式时,它运行在

QuadProcessor机器没有任何错误。

我需要回答这些问题,然后才向同行提出任何改变建议。

请帮忙。


非常感谢。


很多问候

Sunil


Willy Denoyette [MVP]写道:
Thanks Willy,
But what baffles me is that on my machine it does not give this timeout
This is my system configuration:
OS Name Microsoft Windows XP Professional
Version 5.1.2600 Service Pack 2 Build 2600
OS Manufacturer Microsoft Corporation
System Name USER_XP
System Manufacturer Dell Inc.
System Model OptiPlex GX620
System Type X86-based PC
Processor x86 Family 15 Model 6 Stepping 4 GenuineIntel ~3391 Mhz
Processor x86 Family 15 Model 6 Stepping 4 GenuineIntel ~3391 Mhz
BIOS Version/Date Dell Inc. A07, 31/03/2006
SMBIOS Version 2.3
Windows Directory C:\WINDOWS
System Directory C:\WINDOWS\system32
Boot Device \Device\HarddiskVolume1
Locale United States
Hardware Abstraction Layer Version = "5.1.2600.2180
(xpsp_sp2_rtm.040803-2158)"
Total Physical Memory 2,048.00 MB
Available Physical Memory 1.52 GB
Total Virtual Memory 2.00 GB
Available Virtual Memory 1.96 GB
Page File Space 3.85 GB
Page File C:\pagefile.sys

Is this something got to also do with OS? In fact shouldn''t my service
be faster on a QuadProc machine?
Also when I compiled the service and debugmode it ran on the
QuadProcessor machine without any errors.
I need to answer these questions before I advice my peers any changes.
Please help.

Thanks a lot.

Many regards
Sunil

Willy Denoyette [MVP] wrote:

>< su *** @ volcanomail.com写信息
新闻:11 *************** *******@42g2000cwt.googlegr oups.com ...
><su***@volcanomail.comwrote in message
news:11**********************@42g2000cwt.googlegr oups.com...

亲爱的所有人,

我创建了.Net在2.0中运行并在一台机器上运行它

有一个Quad处理器。

它失败并出现以下错误。

"错误1053:服务未及时响应启动或控制

请求

这是我在事件查看器中看到的。

等待MyService服务器服务的超时(30000毫秒)

进行连接。
Dear All,
I have created a .Net service in 2.0 and running it on a machine that
has a Quad Processor.
It is failing with the following error.
"Error 1053: The service did not respond to the start or control
request in a timely fashion"
This is what I saw in event Viewer.
Timeout (30000 milliseconds) waiting for the MyService Server service
to connect.


这是因为你的OnStart方法没有及时返回,
一旦Onstart被称为SCM等待最多30秒就可以了返回,如果在这30秒内OnStart没有返回
,则SCM认为该服务未能启动,记录消息
并终止服务。
所以,你必须调查你的OnStart,并试着找出为什么它需要超过30秒才能返回。

威利。


This is because your OnStart method did not return in a timely fashion,
once the Onstart is
called the SCM waits for a maximum of 30 seconds for it to return, if
OnStart doesn''t return
within this 30 secs., then the SCM considers the service has failed to
start, logs a message
and kill the service.
So, you have to investigate your OnStart and try to find out why it takes
longer than 30
seconds to return.

Willy.



这篇关于在四核处理器上运行.Net服务时出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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