[hibernate-issues] [Hibernate-JIRA] Created: (HSEARCH-1090) Hibernate search 4.* doesn't close open files

Bostjan Lah (JIRA) noreply at atlassian.com
Sun Apr 8 06:26:48 EDT 2012


Hibernate search 4.* doesn't close open files
---------------------------------------------

                 Key: HSEARCH-1090
                 URL: https://hibernate.onjira.com/browse/HSEARCH-1090
             Project: Hibernate Search
          Issue Type: Bug
          Components: engine
    Affects Versions: 4.1.0.Final, 4.0.0.Final
         Environment: Hibernate ORM 4.1.2, H2 database
            Reporter: Bostjan Lah
         Attachments: testcase.zip

When running our application with Hibernate ORM 4.1.2 and Hibernate search 4.1.0 it very quickly uses all allowed open files. Increasing the limit just extends the time that it takes to consume all. This does not happen when running with Hibernate ORM 3.6 and Hibernate search 3.4.
I have created a small testcase. When I run it here (Linux) I get to about 500 open deleted files (to count I use lsof -p xxx|grep -c deleted) within 10 minutes of starting it. It does not matter what filesystem access type I use (simple, nio, mmap). Mmap just tends to hide the issue better and keeps increasing process's virtual mem size. With nio it's very simple to check how many  deleted files are still open. Normally within about 20min the process runs out of it's 1024 allowed open files.
I have tried playing with other search settings but none of them have helped so far.


--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list