Custom Services Failing on Restart when 70+ are running



Hello,

Im currently having a problem with having 70+ services running. Briefly, I
used firedaemon to make a basic .exe a service. Everything is fine while the
machine is running, services run perfect I can add more and what not.
However depending on the machine, somewhere between 70-100 services going,
once the machine restarts 2-4 of the services fail to start. These refuse
to start until i stop every single firedaemon service, and then start all of
them. After this happens all is well.

At first i thought it was releated to the desktop
heapsize(http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com:80/support/kb/articles/q184/8/02.asp&NoWebContent=1 )

But now I am not so sure. Here is a more detailed rundown any help would be
great.

Ive been having this issue on a box im messing around with. I run custom
services that launch an exe file. Everything runs fine while the server is
running. But on reboot random custom services fail. Terminal services also
fails to start.

The number of services that need launched on restart seems to be random each
time. Sometimes services start to fail, at around 70+ being setup. Other
times you don't see it failing until 100+ services needs started on reboot.

The server load with all services running is 2-5% and physical memory is
about 200 megs of 1gig, paged, is about 300-400 megs used.

It is normally 3-4 custom services that fail on reboot. The ones that fail
have the following error in event viewer.

Event Type: Error
Event Source: Aprog
Event Category: None
Event ID: 116
Date: 5/10/2007
Time: 7:08:40 PM
User: N/A
Computer: XXXXXXXXX
Description:
Subprocess monitoring failed due to subprocess is no longer active. The
subprocess is probably dead. Restarting the process. Error detail: Overlapped
I/O operation is in progress.


It will keep getting this error over and over again. However, if i stop all
custom services and then start them, everything launches fine.

When this happens on reboot Terminal services also fails to start. It will
not start, until I stop all the custom services. At which point it allows me
to start TS without any errors.

Event Type: Error
Event Source: Service Control Manager
Event Category: None
Event ID: 7023
Date: 5/10/2007
Time: 7:02:10 AM
User: N/A
Computer: XXXXXXX
Description:
The Terminal Services service terminated with the following error:
A dynamic link library (DLL) initialization routine failed.

For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp.



What I am trying to accomplish is a way to automatically launch these EXE
files, and have something that restarts them if they crash or fail. I haven't
been able to find a specific reason this is happening or how to fix it. So I
am open to any other suggestions on how to do this.

.



Relevant Pages

  • Re: Custom Services Failing on Restart when 70+ are running
    ... This article explains it somewhat and it looks like the changes you make are dependant on whether the services run with different accounts, the same account or the local system account. ... But on reboot random custom services fail. ... It is normally 3-4 custom services that fail on reboot. ... When this happens on reboot Terminal services also fails to start. ...
    (microsoft.public.windows.server.general)
  • Re: Custom Services Failing on Restart when 70+ are running
    ... services run with different accounts, the same account or the local system ... But on reboot random custom services fail. ... It is normally 3-4 custom services that fail on reboot. ... When this happens on reboot Terminal services also fails to start. ...
    (microsoft.public.windows.server.general)
  • RE: Custom Services Failing on Restart when 70+ are running
    ... But on reboot random custom services fail. ... It is normally 3-4 custom services that fail on reboot. ... When this happens on reboot Terminal services also fails to start. ...
    (microsoft.public.windows.server.general)
  • Re: ProgID limit
    ... I looked it up because I've found VB6 will fail to build an ... EXE when progids exceed 39 characters (the error message given is ...
    (microsoft.public.win32.programmer.ole)
  • Re: legacy app .net 1.1 using .net 2.0 component. is it possibile?
    ... Not without updating the main exe to load 2.0, not 1.1; in fact, even COM would fail if "in process" (dll), since it would still end up calling back into the same process, and that is the issue. ...
    (microsoft.public.dotnet.general)

Loading