Interface UnixOperatingSystemMXBean

    • Method Detail

      • getMaxFileDescriptorCount

        long getMaxFileDescriptorCount()
        Returns the maximum number of file descriptors that can be opened in a process.
        Specified by:
        getMaxFileDescriptorCount in interface UnixOperatingSystemMXBean
        Returns:
        The maximum number of file descriptors that can be opened in a process or -1, if an error occurred while obtaining this. If the operating system doesn't have any limits configured, Long.MAX_VALUE is returned.
        Since:
        1.8
      • getOpenFileDescriptorCount

        long getOpenFileDescriptorCount()
        Returns the current number of file descriptors that are in opened state.
        Specified by:
        getOpenFileDescriptorCount in interface UnixOperatingSystemMXBean
        Returns:
        The current number of file descriptors that are in opened state or -1, if an error occurred while obtaining this.
        Since:
        1.8