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

Monitor contention at org.apache.cxf.jaxrs.utils.JAXRSUtils.processParameters(OperationResourceInfo, MultivaluedMap, Message)

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 3.0.0-milestone2, 3.0, 3.0.1
    • 3.0.2, 3.1
    • JAX-RS
    • Novice

    Description

      JAXRSUtils.processParameters() indirectly calls MethodParameter.getParameterAnnotations(), which calls into JRE lib method causing monitor contention. See screen shot

      Fix by caching values returned by Method.getParameterAnnotations() in a static ConcurrentMap

      Attachments

        1. contention_cxf_jaxrsutils.png
          147 kB
          Lucas Pouzac

        Activity

          People

            sergey_beryozkin Sergey Beryozkin
            lpouzac Lucas Pouzac
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: