Domino server shutdown taking a long time

I am having an issue with my Domino server taking a long time to shut down. I have searched the threads but have not found an answer to my issue.

My SA has determinied that he wants to reboot the Domino server (the whole server not just the Domino piece)and has implemented the following batch file:

Server Reboot.bat


net stop “Lotus Domino Server (LotusDominoData)”

shutdown /r /t 600


Now, the domino server shuts down, but in the log between notifying that the SMTP server has been shut down and the rest of the server shutting down is a gap of almost 2 hrs. At this point the batch file has given up on trying to restart the OS and the Domino server remains down (requiring a manual restart). I have enclosed a copy of the log and any help would be greatly appreciated. Thanks

Domino log


09/03/2004 03:00:01 AM SMTP Server: Waiting for all tasks to complete

09/03/2004 03:00:02 AM Calendar Connector shutdown

09/03/2004 03:00:02 AM AMgr: Executive ‘2’ shutting down

09/03/2004 03:00:02 AM AMgr: Executive ‘4’ shutting down

09/03/2004 03:00:02 AM AMgr: Executive ‘3’ shutting down

09/03/2004 03:00:02 AM AMgr: Executive ‘5’ shutting down

09/03/2004 03:00:02 AM AMgr: Executive ‘1’ shutting down

09/03/2004 03:00:02 AM Index update process shutdown

09/03/2004 03:00:02 AM Schedule Manager shutdown complete

09/03/2004 03:00:02 AM IMAP Server: Waiting for all tasks to complete

09/03/2004 03:00:03 AM Starting Server shutdown

09/03/2004 03:00:03 AM Agent Manager shutdown complete

09/03/2004 03:00:03 AM Router: Shutdown is in progress

09/03/2004 03:00:04 AM MT Collector: Shutdown

09/03/2004 03:00:04 AM VSI-FAX: Terminating Outbound Fax Processing.

09/03/2004 03:00:04 AM Database Replicator shutdown

09/03/2004 03:00:05 AM VSI-FAX: Terminating Fax Status Monitoring.

09/03/2004 03:00:06 AM Event Monitor shutdown

09/03/2004 03:00:06 AM DECS Server shutdown complete

09/03/2004 03:00:07 AM VSI-FAX: Terminating Cluster Monitoring.

09/03/2004 03:00:07 AM Administration Process shutdown

09/03/2004 03:00:07 AM VSI-FAX: Terminating Fax System Administration.

09/03/2004 03:00:09 AM IMAP Server: All tasks have completed

09/03/2004 03:00:09 AM IMAP Server: Shutdown

09/03/2004 03:00:09 AM Domino Off-Line Services HTTP extension unloaded.

09/03/2004 03:00:10 AM HTTP Server: Shutdown

09/03/2004 03:00:10 AM VSI-FAX: Terminating Inbound Fax Processing.

09/03/2004 03:00:11 AM Mail Router shutdown

09/03/2004 03:00:11 AM SAV: Service shutdown completed.

09/03/2004 03:00:11 AM VSI-FAX: Shutdown

09/03/2004 03:00:31 AM SMTP Server: All tasks have completed

09/03/2004 03:00:31 AM SMTP Server: Shutdown

09/03/2004 04:54:55 AM Server shutdown complete

Subject: Domino server shutdown taking a long time

the easiest way to see the ‘problem’ is to open the task manager, make sure you are displaying the delta ram column and quit domino. it happens on all versions of domino and windows.

what you’ll see is that while each thread ends it does so in sequential order, ie the smtp threads will be ending one at a time but the http threads are still active until such time as the smtp ones finish and then moves on to the next task. it will not end the tasks all at the same time (which would let the threads die in parallel).

you’ll also see that it doesn’t exactly dump the memory fast either, you can have 6-8 server threads all with about 1mb of ram allocated, but they’ll dump it at a rate of 2k per second (sequentially) which will take at least an hour to die, usually more.

btw. this is the standard/default behaviour and lotus do know about it.

it’s actually quicker to end as many running tasks manually (or via program documents) and then quit the server, it’ll still take a while to die but not as long as it would normally have.

Subject: Domino server shutdown taking a long time

Michael,

We are seeing the exact same problem. Have you found a resolution yet for this issue?

Thanks

Subject: RE: Domino server shutdown taking a long time

No, not yet.I had read somewhere that it might be the HTTP threads that the server is trying to clean up that is taking all of the time. but I have not had the time to try and devise a way to handle this yet.

Subject: RE: Domino server shutdown taking a long time

The following is part of the fix list for 6.5.3 FP1 and it should address the issue that you are having:

SPR# RCE5X7QY5 - Windows 2003 performance: Implemented a code workaround to a Microsoft issue under Windows 2003. This issue would cause the server to take a long time to shutdown. The server would also experience slowdowns while the Domino server is running as tasks shutdown i.e. Compact. In order to realize this fix, you must implement the Notes.ini parameter Debug_Skip_UnmapViewOfFile=1 on the Domino Server. This parameter should only be implemented on Windows 2003 servers. We also recommend migrating to Windows 2003 SP1 when that is released. This problem has been fixed in 6.0.5, 6.5.4, 6.5.3 FP1 and 6.5.2. FP1.