Uploaded image for project: 'MariaDB Connector/J'
  1. MariaDB Connector/J
  2. CONJ-513

Connector/J Leaking socket file descriptors when using unix domain sockets

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Cannot Reproduce
    • 1.6.3
    • N/A
    • Other
    • None

    Description

      We have a servlet application running in Tomcat 7 that is leaking socket files. I have tracked it back to the idle timeout reaping of connections. The leaked socket fd count increases by exactly the number of connections in the hibernate.hikari.maximumPoolSize setting (20) at exactly the idle timeout reaping interval. This happens without the application logged in or doing anything. You can watch the /proc/$PID/fd directory and just see the file descriptor count increase. I will attach pom and other setup files for reference.

      This only happens when using the connector/j jdbc driver with a url that uses unix domain sockets. It does not happen with regular TCP/IP connections to the localhost server. I believe that either the connector/j is leaving a leftover socket file open in the app when the connection is closed or that the particular usage from hibernate-hikaricp doesn't allow it to clean up that last connection piece.

      Attachments

        1. netstat.txt
          18 kB
        2. socket_fds.txt
          184 kB
        3. ticket.zip
          8 kB

        Issue Links

          Activity

            People

              diego dupin Diego Dupin
              ragoley Robert Goley
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.