lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 24903] New: - java.io.IOException: Too many open files
Date Fri, 21 Nov 2003 18:56:08 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24903>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24903

java.io.IOException: Too many open files

           Summary: java.io.IOException: Too many open files
           Product: Lucene
           Version: unspecified
          Platform: Sun
        OS/Version: Solaris
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Search
        AssignedTo: lucene-dev@jakarta.apache.org
        ReportedBy: tracy.pleasant@lmco.com


The page that I am receiving the error is when I have searched and want to 
display one of the results.  Each results has a unique ID so I just search 
using Lucene again to return that one Unique ID.  

<%

  /* Searches the DR index for the iec_id  - unique so only returns one results 
*/

     Searcher searcher_dr = new IndexSearcher(dr_indexLocation);
     Analyzer analyzer_dr = new StandardAnalyzer();

     String term = request.getParameter("query");

     String query = request.getParameter("iec_id");

     Query query_es = QueryParser.parse(query, "id", analyzer_dr);

     Hits hits_es  = searcher_dr.search(query_es);

%>

<%
   // Get the data contained in the result
     Document doc = hits_es.doc(0);
     String title = StringTools.highlightTerm(term,doc.get("Title"));
     String state = StringTools.highlightTerm(term,doc.get("state"));
     String workAroundAvailable = StringTools.highlightTerm(term,doc.get
("workAroundA
vailable"));
     String workAroundType = StringTools.highlightTerm(term,doc.get
("workAroundType")
);
     String workAroundMustBeReapplied = StringTools.highlightTerm(term,doc.get
("workA
roundMustBeReapplied"));
     String contents = StringTools.highlightTerm(term,doc.get("contents"));
     String workAroundDescription = StringTools.highlightTerm(term,doc.get
("workAroun
dDescription"));
     String workAroundReapplication = StringTools.highlightTerm(term,doc.get
("workAro
undReapplication"));


%>
<font size="-1">
<b>IEC ID: </b><%=query%>
<br>
<b>Title: </b> <%=title%>
<br>
<b>State: </b> <%=state%>
<br>
<b>Workaround Available: </b>
<%=workAroundAvailable%>

<br>
<b>Workaround Type: </b>
<%=workAroundType%>
<br>
<b>Workaround must be reapplied: </b>
         <%=workAroundMustBeReapplied%>
<br>
<br>
<b>Description: </b><br>
         <%=contents%>
<p>
<b>Workaround Description:</b><br>

          <%=workAroundDescription%>
<p>
<b>Workaround Reapplication:</b><br>
          <%=workAroundReapplication%>

</font>
<p>




ERROR:

java.io.IOException: Too many open files
	at java.io.UnixFileSystem.createFileExclusively(Native Method)
	at java.io.File.createNewFile(File.java:827)
	at org.apache.lucene.store.FSDirectory$1.obtain(FSDirectory.java:288)
	at org.apache.lucene.store.Lock$With.run(Lock.java:102)
	at org.apache.lucene.index.IndexReader.open(IndexReader.java:103)
	at org.apache.lucene.index.IndexReader.open(IndexReader.java:91)
	at org.apache.lucene.search.IndexSearcher.(IndexSearcher.java:75)
	at org.apache.jsp.display_0005fdr$jsp._jspService
(display_0005fdr$jsp.java:128)
	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service
(JspServlet.java:201)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile
(JspServlet.java:381)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
(ApplicationFilterChain.java:247)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter
(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.StandardWrapperValve.invoke
(StandardWrapperValve.java:243)
	at org.apache.catalina.core.StandardPipeline.invokeNext
(StandardPipeline.java:566)
	at org.apache.catalina.core.StandardPipeline.invoke
(StandardPipeline.java:472)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at org.apache.catalina.core.StandardContextValve.invoke
(StandardContextValve.java:190)
	at org.apache.catalina.core.StandardPipeline.invokeNext
(StandardPipeline.java:566)
	at org.apache.catalina.valves.CertificatesValve.invoke
(CertificatesValve.java:246)
	at org.apache.catalina.core.StandardPipeline.invokeNext
(StandardPipeline.java:564)
	at org.apache.catalina.core.StandardPipeline.invoke
(StandardPipeline.java:472)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at org.apache.catalina.core.StandardContext.invoke
(StandardContext.java:2347)
	at org.apache.catalina.core.StandardHostValve.invoke
(StandardHostValve.java:180)
	at org.apache.catalina.core.StandardPipeline.invokeNext
(StandardPipeline.java:566)
	at org.apache.catalina.valves.ErrorDispatcherValve.invoke
(ErrorDispatcherValve.java:170)
	at org.apache.catalina.core.StandardPipeline.invokeNext
(StandardPipeline.java:564)
	at org.apache.catalina.valves.ErrorReportValve.invoke
(ErrorReportValve.java:170)
	at org.apache.catalina.core.StandardPipeline.invokeNext
(StandardPipeline.java:564)
	at org.apache.catalina.valves.AccessLogValve.invoke
(AccessLogValve.java:468)
	at org.apache.catalina.core.StandardPipeline.invokeNext
(StandardPipeline.java:564)
	at org.apache.catalina.core.StandardPipeline.invoke
(StandardPipeline.java:472)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at org.apache.catalina.core.StandardEngineValve.invoke
(StandardEngineValve.java:174)
	at org.apache.catalina.core.StandardPipeline.invokeNext
(StandardPipeline.java:566)
	at org.apache.catalina.core.StandardPipeline.invoke
(StandardPipeline.java:472)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at org.apache.catalina.connector.http.HttpProcessor.process
(HttpProcessor.java:1027)
	at org.apache.catalina.connector.http.HttpProcessor.run
(HttpProcessor.java:1125)
	at java.lang.Thread.run(Thread.java:536)



--------------------------------------------------------------------------------

This error did not always used to happen.


Sometimes the error looks like this
description The requested resource (/home/tpleasan/cots/jakarta/jakarta-tomcat-
4.0.6/webapps/knowledgebase/indexes/index_dr/_3d.f7 (Too many open files)) is 
not available.

--------------------------------------------------------------------------------

---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-dev-help@jakarta.apache.org


Mime
View raw message