Uploaded image for project: 'Aries'
  1. Aries
  2. ARIES-1068

JNDI lookup performance bad when security enabled

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • None
    • jndi-core-1.1.0
    • JNDI
    • None

    Description

      JNDI lookups can be slow if Java security is enabled, specifically the getService methods take time.

      If the services are cached then the lookup only has to be performed once, but care has to be taken that the context performing the service lookup has the required permissions to do so, and so cache buckets for each context will be necessary.

      Also to prevent a leak, when contexts drop from scope, the associated caches need to be cleared out.

      The ServiceTrackerCustomizer for JNDI already had some caching ability, and the provided patch extends this to avoid looking up Services where possible.

      Attachments

        1. servicelookupperf.patch
          34 kB
          Simon Gormley

        Activity

          People

            gnodet Guillaume Nodet
            sgormley Simon Gormley
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: