tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christophe Andreoli <andre...@gsf.de>
Subject Re: out of memory problem. Help!
Date Fri, 16 Jan 2004 15:49:19 GMT
"Shapira, Yoav" wrote:
> 
> Howdy,
> 
> >root cause
> >
> >java.lang.OutOfMemoryError
> >
> >
> >It happens When the corresponding request returns more than 20000-30000
> >rows from the database, not every time


 
> Perhaps you should allocate your JVM more memory, by using the Java -Xmx
> parameter. 

I did it and I gave 512 Mb.

It works better but why are the 2000 objects are not garbaged after each
request ?








 Alternatively, consider a system design that retrieves a
> smaller, fixed number of rows instead of "20000-30000" and lets the user
> scroll, say 100 rows at a time.
> 
> Yoav Shapira
>

Mime
View raw message