Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8153955 increase java.util.logging.FileHandler MAX_LOCKS limit
  3. JDK-8159877

Release Note: A new configurable property in logging.properties: java.util.logging.FileHandler.maxLocks

    Details

      Description

      A new "java.util.logging.FileHandler.maxLocks" configurable property is added to java.util.logging.FileHandler.

      This new logging property can be defined in the logging configuration file and makes it possible to configure the maximum number of concurrent log file locks a FileHandler can handle. The default value is 100.

      In a highly concurrent environment where multiple (more than 101) standalone client applications are using the JDK Logging API with FileHandler simultaneously, it may happen that the default limit of 100 is reached, resulting in a failure to acquire FileHandler file locks and causing an IO Exception to be thrown.
      In such a case, the new logging property can be used to increase the maximum number of locks before deploying the application.

      If not overridden, the default value of maxLocks (100) remains unchanged.
      See java.util.logging.LogManager and java.util.logging.FileHandler API documentation for more details.

        Attachments

          Activity

            People

            • Assignee:
              rpatil Ramanand Patil
              Reporter:
              rpatil Ramanand Patil
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: