You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jcs-users@jakarta.apache.org by Parvathi Rajaraman <Pa...@metcash.com> on 2004/05/06 08:53:21 UTC

Out of memory problem

Hi,

I have recently started using JCS implementation for Caching in my project.
I have noticed that every few minutes, I keep getting a out-of memory error
and this has happened only after I have started using JCS. So is this
something to do with the way I have configured it. Can you help me out.

Regds
Parvathi

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


RE: Out of memory problem

Posted by Aaron Smuts <aa...@wisc.edu>.
Matthew informs me that the problem seems to go away with the shrinker
off.  

This suggests a problem with the memory shrinker.  It could be that the
thread is maintaining a reference to the keys, the spooling from the
shrinker is problematic, or there is a problem generating the list of
keys.  

I don't think any of these things is happening, so I'm sort of at a loss
for an explanation.

I think the shrinker just sleeps for an interval.  Perhaps it would be
better to use a timer and start the shrinker and then let it die.  One
concern with this is that we wouldn't want more than one shrinker
running per region at any given time.  This could happen say if the
number of elements was huge and the interval between shrinks was very
small.  I can solve that by passing in a lock that will prevent a second
shrinker from running.

Hmmn.  I'll look into it again.

Aaron

> -----Original Message-----
> From: Aaron Smuts [mailto:aasmuts@wisc.edu]
> Sent: Thursday, May 06, 2004 9:43 AM
> To: 'Turbine JCS Users List'
> Subject: RE: Out of memory problem
> 
> Send your cache.ccf and let me know how much memory you've allocated
for
> the jvm.
> 
> Aaron
> 
> > -----Original Message-----
> > From: Parvathi Rajaraman [mailto:Parvathi.Rajaraman@metcash.com]
> > Sent: Thursday, May 06, 2004 1:53 AM
> > To: 'turbine-jcs-user@jakarta.apache.org'
> > Subject: Out of memory problem
> >
> > Hi,
> >
> > I have recently started using JCS implementation for Caching in my
> > project.
> > I have noticed that every few minutes, I keep getting a out-of
memory
> > error
> > and this has happened only after I have started using JCS. So is
this
> > something to do with the way I have configured it. Can you help me
> out.
> >
> > Regds
> > Parvathi
> >
> >
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> turbine-jcs-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail:
> turbine-jcs-user-help@jakarta.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
turbine-jcs-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
turbine-jcs-user-help@jakarta.apache.org


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


RE: Out of memory problem

Posted by Aaron Smuts <aa...@wisc.edu>.
Send your cache.ccf and let me know how much memory you've allocated for
the jvm.

Aaron

> -----Original Message-----
> From: Parvathi Rajaraman [mailto:Parvathi.Rajaraman@metcash.com]
> Sent: Thursday, May 06, 2004 1:53 AM
> To: 'turbine-jcs-user@jakarta.apache.org'
> Subject: Out of memory problem
> 
> Hi,
> 
> I have recently started using JCS implementation for Caching in my
> project.
> I have noticed that every few minutes, I keep getting a out-of memory
> error
> and this has happened only after I have started using JCS. So is this
> something to do with the way I have configured it. Can you help me
out.
> 
> Regds
> Parvathi
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
turbine-jcs-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
turbine-jcs-user-help@jakarta.apache.org


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