Hello!

Periodically, when I try to search, I get "Out of memory" error:

====================================================================================
description The server encountered an internal error () that prevented it from 
fulfilling this request.
exception
javax.servlet.ServletException
        
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:867)
        
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:800)
        org.apache.jsp.search_jsp._jspService(search_jsp.java:967)
        org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
        
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)
        org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
        org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
root cause
java.lang.OutOfMemoryError
====================================================================================

In index are ~4mln pages.
I start tomcat with these options:
  CATALINA_OPTS=-mx1547483648
  TOMCAT_OPTS=-mx1547483648

~1.5Gb is not enough for ~4mln index?
How I need to calculate required RAM for stable work?

Also for unknown reason I can not define more than 2Gb RAM for tomcat.
I see
"Error occurred during initialization of VM
Could not reserve enough space for object heap"
But on this server is installed 4Gb RAM.

FreeBSD4.1, JDK1.4.2p6


Thanks!

-- 
Best regards,
 Chernodarov Egor
 [EMAIL PROTECTED]
                                

Reply via email to