On Wed, 2005-12-07 at 17:41 -0500, Justin Cook wrote:
>       If I change the timeout from 3600(1 hour) to a couple of seconds the
> app doesn't hang. Is this dumb to leave like this?

Yes.  Turn it off completely (by using the NullLocker class) if you
don't need locking.  If you do need locking, don't change this.

>  One other thing I
> notice is that when I find the app hanging(and it seems to hang when it
> initializes a database connection) I look at  mysql running processes
> and find a couple - one thats doing the GET_LOCK on the session table
> and another one that's sleeping. When I kill the sleeping one the page
> then loads. Help!!

That means you have a reference to your Apache::Session object in memory
somewhere that isn't going out of scope and thus isn't getting cleaned
up.  It will keep the lock until it gets DESTROYed.  Fix your scoping
bug and this will go away.

- Perrin



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Mason-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to