Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

i am using sc.exe to create a custom exe windows service (auto start enabled) into a Windows 2003 SP2 machine and it runs very very very slow compare if i uses the same application and run it using a command prompt.

both the service and the dos program shared the same DLL and all these coded using .NET 4 C# programming language.

can anyone point any possible investigation?

share|improve this question
add comment

1 Answer 1

You might take a closer look at the security situation/environment of the service against the account used to compare against interactively (logged on session). If there are security issues, then the performance difference may be due to additional logging and/or error handling.

share|improve this answer
    
I had tried doing the same on another box - Windows 2008 and the performance is greater difference of the later –  david Aug 17 '11 at 1:13
    
In that case, have you compared the running processes across both systems? –  user48838 Aug 17 '11 at 15:10
    
yes, tried run on w2k8 on both Windows Services and command prompt, both also faster than the W2k3 instance. although the w2k3 box hardware spec is lower than the w2k8, but the funny thing is under w2k3 box, the command prompt executable is faster than installed Windows Service. –  david Aug 18 '11 at 6:39
    
"have you compared the running processes across both systems" - what services are running on the systems for comparison? –  user48838 Aug 18 '11 at 8:49
    
if I understand your question correctly, you are referring to other Windows services that affects the slowness of my custom windows service? –  david Aug 19 '11 at 1:11
show 5 more comments

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.