Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-1708

Hang on Tomcat shutdown -- with fix

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: CLOSED
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.1.0
    • Component/s: Global
    • Labels:
      None

      Description

      Sakai hangs on Tomcat shutdown. I believe to have fixed it. I ran a kill -3 on a hung Tomcat process and found the following thread spinning:

      "NNTPSpool-0" prio=1 tid=0x099b8928 nid=0x6299 waiting on condition [68da6000..68da6238]
      at java.lang.Thread.sleep(Native Method)
      at org.apache.james.nntpserver.repository.NNTPSpooler$SpoolerRunnable.r$
      at java.lang.Thread.run(Thread.java:534)

      NNTPSpooler shouldn't be running. Looking at the James configuration, I found this:

      <!-- The NNTP server is enabled by default -->
      <!-- Disabling blocks will stop them from listening, -->
      <!-- but does not free as many resources as removing them would -->
      <!-- NNTP-specific: if you disable the NNTP Server, you should also set the nntp-repository's
      threadCount to 0, otherwise there will be threads active and polling -->
      <nntpserver enabled="false">
      [...]

      Further down, I found:

      <nntp-repository>
      [...]
      <spool>
      <configuration>
      <spoolPath>file://var/nntp/spool</spoolPath>
      <!-- The number of threads that process spooler related tasks. -->
      <threadCount>1</threadCount>
      <!-- The spool thread(s) should idle for some time, if it has nothing to do -->
      <threadIdleTime>60000</threadIdleTime>
      </configuration>
      </spool>
      </nntp-repository>

      The threadCount needs to be changed to 0. Making this change on my instance stopped Tomcat from hanging on shutdown. Can someone commit this?

      Thanks!

      • Drew

        Gliffy Diagrams

          Zeplin

            Attachments

              Activity

                People

                Assignee:
                Unassigned Unassigned
                Reporter:
                aam26 Drew Mazurek (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    Git Integration