JDK-8366298 : FDLeakTest sometimes takes minutes to complete on Linux
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.lang
  • Affected Version: 26
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • Submitted: 2025-08-28
  • Updated: 2025-09-02
Related Reports
Relates :  
Description
While investigating JDK-8260555, which lowers the timeout factor from 4 to 1, we found that FDLeakTest sometimes times out on Linux.

The reason is that the test performs a `fcntl` call for each and every potential file descriptor number. This can be a large number of calls and sometimes results in minutes-long test executions.

I propose that we fix this by limiting the max number of open file descriptors. This lowers the test execution time to about 1 second.
Comments
A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/26979 Date: 2025-08-28 07:46:36 +0000
28-08-2025