[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jetspeed-user
Subject:    Re: AW: AW: java.lang.OutOfMemoryError
From:       Sez Sez <sezmillenium () yahoo ! es>
Date:       2004-03-31 12:59:58
Message-ID: 20040331125958.45782.qmail () web10307 ! mail ! yahoo ! com
[Download RAW message or body]

Ok, I calculate the dimension of the object. This
object need 1.4 mb of RAM. It's too bigger! It was the
problem....

Thanks!




 --- "Sprang, Henning (Firma CS)"
<Henning.Sprang@otto.de> escribió: > 
> 
> > -----Ursprüngliche Nachricht-----
> > Von: Raphaël Luta [mailto:raphael@luta.org]
> > 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:
> jetspeed-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> jetspeed-user-help@jakarta.apache.org
>  

___________________________________________________
Yahoo! Messenger - Nueva versión GRATIS
Super Webcam, voz, caritas animadas, y más...
http://messenger.yahoo.es

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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic