tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christophe Andreoli <andre...@gsf.de>
Subject out of memory problem. Help!
Date Fri, 16 Jan 2004 15:10:49 GMT


    Hello !

I have a Struts/jsp Application

Ich get an out of memory problem:javax.servlet.ServletException: Servlet
execution threw an exception
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
        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.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:531)
        at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
        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.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:458)
        at
org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551)
        at java.lang.Thread.run(Thread.java:536)

root cause 

java.lang.OutOfMemoryError


It happens When the corresponding request returns more than 20000-30000
rows from the database, not every time

but surely if more request run parallely


>From the 20000-30000 rows I am making  the same number of the following
objects from this class
class{
	public  int	humanId=-1;
	public String humanDescription="";
	public String 	swissProtId="";
  	public String swissProtName="";
	public String function="";
	public String subcellularLocation ="";
	public String alternativeProtein ="";
  	public String  pathway ="";
  	public double mitoProt =-1;
	public int mitoLocal=-1;
	private double 	accuracy;
	public String swissProtLink="";
	private int 	hasEncephalHomolog=-1;
	private int hasRickettsiaHomolog=-1;
	private int hasYeastMitoHomolog=-1;
	private int hasParalogMito=-1;
	private int heartProteome=-1;
	private int psort=-1;
	private String mesClone="";
	private String mesUnigene="";
	private int holgerCandidate=-1;
	private int predotar=-1;
	private String omim="";
	private String subLocWiemann="";


}


Can you help me ?



   Thank you!


  Chris

Mime
View raw message