home *** CD-ROM | disk | FTP | other *** search
/ Australian Personal Computer 1999 April / APC443.iso / features / grpware / coldfus / coldfusi.exe / data1.cab / Program_Files / cycle.bat < prev    next >
Encoding:
DOS Batch File  |  1998-10-08  |  2.0 KB  |  45 lines

  1. @ECHO OFF
  2. REM ---------------- COLD FUSION SERVICE AUTOMATIC CYCLING ---------------- 
  3. REM
  4. REM This batch file schedules the Allaire Cold Fusion service to
  5. REM be stopped and started once every 24 hours at approximately 
  6. REM 2:00 AM.
  7. REM
  8. REM The cycling of the service does not prevent any client 
  9. REM connections from being serviced. Once the service has been
  10. REM stopped it will be automatically started as soon as a 
  11. REM client attempts to connect to it (or, if no clients attempt
  12. REM to connect it will be started one minute after it is stopped).
  13. REM
  14. REM The reason for cycling the service is to prevent ODBC drivers 
  15. REM which have memory leaks from negatively affecting system 
  16. REM performance. While not all drivers have leaks, many of the more 
  17. REM widely used drivers do. For example, the leaks which exist in 
  18. REM the Microsoft Access and SQL Server drivers are documented in 
  19. REM the follwing knowledge base articles:
  20. REM
  21. REM  Q119150 - BUG: Memory Leak with ODBC Driver Manager During Connection
  22. REM  Q132493 - PRB: Memory Leaks with Desktop Database Drivers
  23. REM  Q119099 - BUG: Memory Leak with Desktop Database Drivers with USE
  24. REM  Q132494 - Memory Leaks in SQL Server Driver During Connect/Disconnect
  25. REM
  26. REM If you wish to browse all of the scheduled jobs on your system
  27. REM you can use the 'at' command (with no arguments) from the NT
  28. REM command console. You may also browse scheduled jobs graphically
  29. REM using the 'Scheduler' application which comes with the NT 
  30. REM Resource Kit.
  31. REM
  32. REM -----------------------------------------------------------------------
  33. @ECHO ON
  34.  
  35. at 02:00 /every:M,T,W,Th,F,S,Su net stop "Cold Fusion Executive"
  36. at 02:01 /every:M,T,W,Th,F,S,Su net stop "Cold Fusion RDS"
  37. at 02:02 /every:M,T,W,Th,F,S,Su net stop "Cold Fusion Application Server"
  38.  
  39. at 02:03 /every:M,T,W,Th,F,S,Su net start "Cold Fusion Application Server"
  40. at 02:04 /every:M,T,W,Th,F,S,Su net start "Cold Fusion RDS"
  41. at 02:05 /every:M,T,W,Th,F,S,Su net start "Cold Fusion Executive"
  42.  
  43. @ECHO OFF
  44. PAUSE
  45.