Re: Maxing out sessions?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Matt wrote:
> [matth@hecate tmp]$ cat /proc/sys/fs/file-max
> 52403

To be 100% certain this ain't the problem, do something like:
exec("ls /tmp/ | wc -l", $result, $error);
if ($error){
  error_log("Attempt to count number of sessions failed: $error" .
implode("", $result));
}
else{
  error_log("Currently there are " . implode($result) . " sessions");
}

The goal being to make absolutely certain that there are not more than
52403 files in /tmp when things fail...  Of course, between the time it
fails and the time you do the exec() a bunch of /tmp files could
appear/disappear, but hopefully you'll find out quickly if you're in the
same ballpark as 52K files in the directory.

This is probably *NOT* really the problem, just one example of something
which *could* be going on.

PS  Try to write any code that error-checks the session_start() as REAL
code, not just debugging junk you'll rip out.  Error-checking is Good. :-)

-- 
Like Music?
http://l-i-e.com/artists.htm

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux