Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-5919

Configuring thread names in Jetty transport

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0.1
    • Fix Version/s: 2.7.13, 3.0.2
    • Component/s: Configuration, Transports
    • Labels:
      None
    • Estimated Complexity:
      Novice

      Description

      It would be great to be able to configure name for threads used by HTTP Jetty transport. In current implementation of Jetty transport, threads that handle requests have names like "qtp-xxxxx".
      When you have multiple CXF Jetty engines configured in the same JVM, thread names related to different CXF Jetty engines are not distinguishable and this complicates debugging via Jconsole/JStack or by inspecting log files. For example:
      "qtp4563453246-43 Selector0" prio=... tid=…
      qtp1453691733-34 Selector0" prio=… tid=…
      It would be great to have some like:
      workorder_4563453246-43
      stockprice_1453691733-34

      it’s possible to implement by passing additional parameter to Jetty QueuedThreadPool in the same way as other threading parameters are passed.

        Attachments

          Activity

            People

            • Assignee:
              dkulp Daniel Kulp
              Reporter:
              alexanderz Alexander Zobkov
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 24h
                24h
                Remaining:
                Remaining Estimate - 24h
                24h
                Logged:
                Time Spent - Not Specified
                Not Specified