RE: Custom Services Failing on Restart when 70+ are running



It may be the heapsize now that I look deaper. The question now remains
which one of the 3 registry values in that article i linked should be changed?


C:\kktools\dheapmon8.1\x86>dheapmon.exe -s
Desktop Heap Information Monitor Tool (Version 8.1.2925.0)
Copyright (c) Microsoft Corporation. All rights reserved.
-------------------------------------------------------------
Session ID: 0 Total Desktop: ( 8896 KB - 9 desktops)

WinStation\Desktop Heap Size(KB) Used Rate(%)
-------------------------------------------------------------
WinSta0\Screen-saver 3072 0.1
WinSta0\Default 3072 2.1
WinSta0\Disconnect 64 4.0
WinSta0\Winlogon 128 6.5
Service-0x0-3e7$\Default 512 90.6
Service-0x0-3e4$\Default 512 1.1
Service-0x0-3e5$\Default 512 0.4
SAWinSta\SADesktop 512 0.4
__X78B95_89_IW\__A8D9S1_42_ID 512 0.4
-------------------------------------------------------------



"concept" wrote:

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)
  • Custom Services Failing on Restart when 70+ are running
    ... Im currently having a problem with having 70+ services running. ... used firedaemon to make a basic .exe a service. ... But on reboot random custom services fail. ... It is normally 3-4 custom services that fail on reboot. ...
    (microsoft.public.windows.server.general)
  • Re: need help to fix my desktop computer
    ... check the cable to see if the computer is properly connected, loose ... if this step fail, then, turn your computer off, turn back on and ... if it fails, turn your computer off and reboot again, press f8 Key ... system restore, to the earlier point, choose the point 2 week be for ...
    (soc.culture.hmong)
  • Re: Have to reset admin pwd after reboots
    ... After I reboot the DCI am unable to log into them as Administrator .. ... I am able to login with a different admin account and then ... Do you fail to login? ...
    (microsoft.public.windows.server.active_directory)