> -----Ursprüngliche Nachricht-----
> Von: Raphaël Luta [mailto:[EMAIL PROTECTED]
> Gesendet: Mittwoch, 31. März 2004 12:36
> An: Jetspeed Users List
> Betreff: Re: AW: java.lang.OutOfMemoryError 
> 
> 
> Seems pretty obvious to me: buy or allocate more RAM to your 
> appserver  
> if you really
> want to manipulate such large tables in memory.
> Else use more advanced collection implementations or DB that won't  
> create all objects in memory at once.


if you already have enough ram, you still have to tell the jvm
that it's allowed to use it. Therefore use the environment
variable JAVA_OPTS. On Linux in my catalina.sh script i added
a line like this:

JAVA_OPTS="${JAVA_OPTS} -Dsun.net.client.defaultConnectTimeout=200 -Xmx512m"

That gives the jvm a maximum of 512 MB RAM.

BTW: in development i experience, that after i compiled and deployed  my portal
several times on tomcat 4.1.x, which works fine without any restarts, i evetually
get Out of memory errors anyway, which i can solve by restarting tomcat.

Henning



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to