You probably will have more in the DB until they are cleaned up. By
default resin cleans the expired persisted sessions every 75 minutes.

So you may have 30 active sessions in JMX, but 50 in the DB, 20 off
which are expired and will be cleaned out of the DB when they are not
updated for 75 minutes.





On Thu, 2008-10-02 at 15:40 -0400, Eric Kreiser wrote:

> No one else is using DB persisted session management???
> 
> Shouldn't these 2 numbers be logically in sync?
> 
> 
> 
> Eric Kreiser wrote: 
> 
> > I am running resin pro 3.1.6 with db persisted session.
> > 
> > Can anyone help me understand the following data I am seeing?
> > 
> > If I count the number of rows in the db in the persistent_session table
> > and get the SessionActiveCount from JMX for my server, I get 2 different
> > numbers.  I believe it could make sense for the numbers to be different
> > for instance after a restart... and java has not yet needed to load all
> > the sessions back into memory... but in this case the rows in the DB
> > would be more then the count returned by java.  What I am seeing is the
> > other way around.  My numbers reported by JAVA are significantly higher
> > then the number of rows I have persistently backing them.
> > 
> > How could this be?  Am I misunderstanding the expected behavior?
> > 
> > thanks
> > Eric
> > 
> > 
> > _______________________________________________
> > resin-interest mailing list
> > resin-interest@caucho.com
> > http://maillist.caucho.com/mailman/listinfo/resin-interest
> > 
> >   
> 
> 
> 
> -- 
> 
> 
> Eric S. Kreiser
> Senior Software Architect
> 
> 
> Mzinga
> 5095 Ritter Road • Mechanicsburg, PA  17055
> ---------------------------------------------------
> Call my office: 717.458.9804
> Fax me: 717.790.0401
> Email me: [EMAIL PROTECTED]
> Learn more: http://mzinga.com/v/ekreiser/
> Toll Free: 800.869.5763 
> 
>  
> 
> 
> 
> _______________________________________________
> resin-interest mailing list
> resin-interest@caucho.com
> http://maillist.caucho.com/mailman/listinfo/resin-interest
_______________________________________________
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest

Reply via email to