Uploaded image for project: 'JBoss Core Services'
  1. JBoss Core Services
  2. JBCS-1589

prunsrv is taking 1 min longer than --StopTimeout to exit the service.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Critical Critical
    • httpd 2.4.57.SP3 GA
    • httpd 2.4.51.SP2 GA
    • jsvc
    • None
    • False
    • None
    • False

      It is now possible to use --StopTimeout to force the service shutdown when the timeout is reached due to JBCS-1261

      But it is taking one minute longer than the --StopTimeout. In the following, --StopTimeout is configured with 100 seconds:

       

      [2023-06-19 02:51:30] [debug] ( prunsrv.c:1353:serviceStop ) [10768] Waiting for stop worker to finish...
      [2023-06-19 02:51:30] [debug] (rprocess.c:856 :apxProcessWait ) [10768] apxProcessWait.
      [2023-06-19 02:51:31] [debug] ( prunsrv.c:1846:serviceMain ) [ 2972] waiting 100 sec... shutdown: 1
      [2023-06-19 02:51:31] [debug] (rprocess.c:856 :apxProcessWait ) [ 2972] apxProcessWait.
      [2023-06-19 02:53:10] [debug] ( prunsrv.c:1358:serviceStop ) [10768] Stop worker finished.
      ... these are the 100 seconds ... Now another minute passes ...
      [2023-06-19 02:53:11] [debug] ( prunsrv.c:1127:reportServiceStatusE ) [10768] reportServiceStatusE: dwCurrentState = 3 (SERVICE_STOP_PENDING), dwWin32ExitCode = 0, dwWaitHint = 100000 milliseconds, dwServiceSpecificExitCode = 0.
      [2023-06-19 02:53:11] [debug] ( prunsrv.c:1390:serviceStop ) [10768] Waiting for worker to die naturally...
      [2023-06-19 02:53:11] [debug] (rprocess.c:856 :apxProcessWait ) [10768] apxProcessWait.
      [2023-06-19 02:54:11] [debug] ( prunsrv.c:1863:serviceMain ) [ 2972] ShutdownEvent signaled.
      [2023-06-19 02:54:11] [debug] ( prunsrv.c:1869:serviceMain ) [ 2972] Waiting 1 minute for all threads to exit.
      ...
      [2023-06-19 02:54:12] [info] ( prunsrv.c:2102:main ) [ 7840] Apache Commons Daemon procrun finished.
      

       

      The documentation suggests that the "Windows is attempting to stop the following service ..." popup disappears shortly after this time has elapsed.

      "--StopTimeout: Defines the timeout in seconds that procrun waits for service to exit gracefully."

      If it is expected, could the documentation be updated accordingly? 

       

       

       

            rhn-engineering-mturk Mladen Turk
            rhn-support-lkonno Leticia Konno
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: