php keeps freeezing
Posted: Wed Mar 07, 2012 8:00 am
I have a page I designed to monitor some Databases. For the most part it works really well. But every so often it just seems to freeze mid refresh (by which I mean it appears to be loading, but never gets there).
I use: to refresh the page the every 60 seconds. To get round this I now have a timer that runs independently, and after 240 seconds I show a message on screen informing me it has stopped refreshing. I then click a button, which opens the page in a new tab, and uses to remove the Session Cookie (as this was the only thing I could find that worked). But this required that I manually close the original tab, otherwise the new tab simply freezes.
But now I am looking to use it overnight, so I need to
a) find out why it keeps freezing (always seems to be just before connecting to a database, but always a different one).
or
b) open the new tab and close the original tab automatically (apparently it isn't possible to close the tab, as it wasn't created by the javascript).
And i'm not having much luck with either at the minute.
If anybody has any suggestions it would be greatly appreciated.
I use:
Code: Select all
<script language="javascript" type="text/javascript">setTimeout("location.reload();",$msrefresh);</script>Code: Select all
setcookie("TSmonitor_v7t", "", time()-3600, "/");But now I am looking to use it overnight, so I need to
a) find out why it keeps freezing (always seems to be just before connecting to a database, but always a different one).
or
b) open the new tab and close the original tab automatically (apparently it isn't possible to close the tab, as it wasn't created by the javascript).
And i'm not having much luck with either at the minute.
If anybody has any suggestions it would be greatly appreciated.