You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-dev@lucene.apache.org by "Bertrand Delacretaz (JIRA)" <ji...@apache.org> on 2007/02/25 00:15:06 UTC
[jira] Commented: (SOLR-173) "too many open files" with posting to
update handler
[ https://issues.apache.org/jira/browse/SOLR-173?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12475664 ]
Bertrand Delacretaz commented on SOLR-173:
------------------------------------------
After making the change shown above in solrconfig.xml, a commit is enough to make the number of open file handles grow:
curl http://localhost:8983/solr/update --data-binary '<commit/>' -H 'Content-type:text/xml; charset=utf-8'
lsof shows that many of these file handles point to files in data/index, which have been deleted during the commit:
lsof -p 9563 | grep data/index | wc -l (where 9563 is my solr's process ID)
shows 398 file handles after a few commits, although my data/index dir contains only 47 files.
So it looks like something is keeping useless open handles to "old" index files after a commit.
> "too many open files" with posting to update handler
> ----------------------------------------------------
>
> Key: SOLR-173
> URL: https://issues.apache.org/jira/browse/SOLR-173
> Project: Solr
> Issue Type: Bug
> Components: update
> Affects Versions: 1.2
> Reporter: Ryan McKinley
> Attachments: SOLR-173-open-files-bug.patch
>
>
> From brian:
> 1) Download trunk/nightly
> 2) Change line 347 of example/solr/conf/solrconfig.xml to <requestHandler name="/update" class="solr.XmlUpdateRequestHandler">
> 3) java -jar start.jar...
> 3) Run post.sh a bunch of times on the same xml file... (in a shell script or whatever)
> 4) After a few seconds/minutes jetty will crash with "too many open files"
> - - - - -
> all you've got to do is
> apache-solr-nightly/example/exampledocs ryan$ while [ 0 -lt 1 ]; do ./post.sh hd.xml; done
> with the request handler pointing to /update. Use
> # lsof | grep solr | wc -l
> to watch the fdescs fly.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.