jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Archiva
  • MRM-1419

Archiva reaches fd limit and keeps complaining of 'too many open files'

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Duplicate
  • Affects Version/s: 1.3.1
  • Fix Version/s: None
  • Component/s: indexing
  • Labels:
    None
  • Environment:
    Hide
    $ uname -a
    Linux vmconnor.cpqd.com.br 2.6.18-92.el5PAE #1 SMP Tue Apr 29 13:31:02 EDT 2008 i686 i686 i386 GNU/Linux
    $ java -version
    java version "1.6.0_04"
    Java(TM) SE Runtime Environment (build 1.6.0_04-b12)
    Java HotSpot(TM) Server VM (build 10.0-b19, mixed mode)
    Show
    $ uname -a Linux vmconnor.cpqd.com.br 2.6.18-92.el5PAE #1 SMP Tue Apr 29 13:31:02 EDT 2008 i686 i686 i386 GNU/Linux $ java -version java version "1.6.0_04" Java(TM) SE Runtime Environment (build 1.6.0_04-b12) Java HotSpot(TM) Server VM (build 10.0-b19, mixed mode)

Description

Let me start by saying that I looked at MRM-1097 but it seems to be a different problem because there they say that the accumulating file descriptors were sockets and here they are index files.

Being more specific, our Archiva is accumulating several open file descriptors to already deleted files. In less than one hour it can accumulate as much as 1000 such file descriptors, quickly reaching the process file descriptor limit which we already increaded from 4K to 12K in an attempt to delay the problem.

This are the kind of descriptors I'm talking about:

# lsof -p 13052|grep -F '.cfs (deleted)'|head
java    13052 root  188u   REG       8,49  6622810   7393646 /l/home3/archiva/dsso/data/repositories/internal/inhouse/snapshots/.indexer/_1tkvx.cfs (deleted)
java    13052 root  190u   REG       8,49  6622878   1572928 /l/home3/archiva/dsso/data/repositories/internal/inhouse/snapshots/.indexer/_1tkw3.cfs (deleted)
java    13052 root  191u   REG       8,49  6622878   1572928 /l/home3/archiva/dsso/data/repositories/internal/inhouse/snapshots/.indexer/_1tkw3.cfs (deleted)
java    13052 root  192u   REG       8,49  6622878   1572928 /l/home3/archiva/dsso/data/repositories/internal/inhouse/snapshots/.indexer/_1tkw3.cfs (deleted)
java    13052 root  193u   REG       8,49  6622812   7393642 /l/home3/archiva/dsso/data/repositories/internal/inhouse/snapshots/.indexer/_1tkv7.cfs (deleted)
java    13052 root  194r   REG       8,49  6622878   1572928 /l/home3/archiva/dsso/data/repositories/internal/inhouse/snapshots/.indexer/_1tkw3.cfs (deleted)
java    13052 root  195u   REG       8,49  6622878   1572918 /l/home3/archiva/dsso/data/repositories/internal/inhouse/snapshots/.indexer/_1tkw5.cfs (deleted)
java    13052 root  197u   REG       8,49  6622813   7393638 /l/home3/archiva/dsso/data/repositories/internal/inhouse/snapshots/.indexer/_1tkv9.cfs (deleted)
java    13052 root  198u   REG       8,49  6622878   1572928 /l/home3/archiva/dsso/data/repositories/internal/inhouse/snapshots/.indexer/_1tkw3.cfs (deleted)
java    13052 root  200u   REG       8,49  6622812   7393630 /l/home3/archiva/dsso/data/repositories/internal/inhouse/snapshots/.indexer/_1tkvl.cfs (deleted)

# lsof -p 13052|grep -c -F '.cfs (deleted)'
817
  • Options
    • Sort By Name
    • Sort By Date
    • Ascending
    • Descending
    • Download All

Attachments

  1. GZip Archive
    archiva-dsso.csv.gz
    03/Sep/10 9:36 AM
    0.6 kB
    Gustavo Chaves
  2. GZip Archive
    scan.log.gz
    02/Sep/10 2:04 PM
    8 kB
    Gustavo Chaves

Issue Links

duplicates

Bug - A problem which impairs or prevents the functions of the product. MRM-1097 Error 500 "too many open files"

  • Major - Major loss of function.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.
is related to

Bug - A problem which impairs or prevents the functions of the product. MRM-1097 Error 500 "too many open files"

  • Major - Major loss of function.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Brett Porter added a comment - 02/Sep/10 10:18 AM

we're due to review the use of the indexer in the next release, so hopefully we can pick this up at the time.

Do you have some data on how many artifacts you are processing through the indexer and how often?

Show
Brett Porter added a comment - 02/Sep/10 10:18 AM we're due to review the use of the indexer in the next release, so hopefully we can pick this up at the time. Do you have some data on how many artifacts you are processing through the indexer and how often?
Hide
Permalink
Andreyev Dias de Melo added a comment - 02/Sep/10 11:31 AM

We have 5253 jars, 12752 poms. Repositories is re-scanned in 0 0 * * * or 0 0 0/2 * *.

Show
Andreyev Dias de Melo added a comment - 02/Sep/10 11:31 AM We have 5253 jars, 12752 poms. Repositories is re-scanned in 0 0 * * * or 0 0 0/2 * *.
Hide
Permalink
Gustavo Chaves added a comment - 02/Sep/10 2:04 PM

I'm attaching the scan.log.gz file which was extracted from the archiva logs with this command:

grep -A16 'Repository Dir ' archiva.log >scan.log

In it you can see how many times the scan process was performed in the last days.

Show
Gustavo Chaves added a comment - 02/Sep/10 2:04 PM I'm attaching the scan.log.gz file which was extracted from the archiva logs with this command:
grep -A16 'Repository Dir ' archiva.log >scan.log
In it you can see how many times the scan process was performed in the last days.
Hide
Permalink
Gustavo Chaves added a comment - 03/Sep/10 9:36 AM

I'm attaching archiva-dsso.csv.gz. It contains a record of the number of those strange open file descriptors that I captured each 10 minutes since yesterday.

Show
Gustavo Chaves added a comment - 03/Sep/10 9:36 AM I'm attaching archiva-dsso.csv.gz. It contains a record of the number of those strange open file descriptors that I captured each 10 minutes since yesterday.
Hide
Permalink
Andreyev Dias de Melo added a comment - 05/Oct/10 12:30 PM

This problem looks like this http://www.mail-archive.com/java-user@lucene.apache.org/msg29216.html.

I'll try to upgrade only lucene's jar to an early version.

Show
Andreyev Dias de Melo added a comment - 05/Oct/10 12:30 PM This problem looks like this http://www.mail-archive.com/java-user@lucene.apache.org/msg29216.html. I'll try to upgrade only lucene's jar to an early version.
Hide
Permalink
Brett Porter added a comment - 03/Dec/10 8:15 AM

in the end I think we identified that the other problem was also related to the indexing, which should be fixed

Show
Brett Porter added a comment - 03/Dec/10 8:15 AM in the end I think we identified that the other problem was also related to the indexing, which should be fixed

People

  • Assignee:
    Brett Porter
    Reporter:
    Gustavo Chaves
Vote (1)
Watch (1)

Dates

  • Created:
    31/Aug/10 1:20 PM
    Updated:
    03/Dec/10 8:16 AM
    Resolved:
    03/Dec/10 8:16 AM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.