CodeIgniter Forums
Webpage Running Indefinitely? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: Webpage Running Indefinitely? (/showthread.php?tid=48954)



Webpage Running Indefinitely? - El Forum - 02-02-2012

[eluser]jamgood96[/eluser]
Is it possible to have a website run indefinitely, with ajax calls and a timer, without crashing or causing issues? Are there such things as memory leaks for websites?

I'm working on a project that the site will be displayed on a large monitor in a corridor and it will update certain values every minute, and others every hour. Can I realistically expect to leave this up and running for months on end without issues?


Webpage Running Indefinitely? - El Forum - 02-02-2012

[eluser]CroNiX[/eluser]
I think that really depends more on the browser. Some web pages (usually javascript intensive) I can just leave running like you are proposing and watch the memory consumption of the browser go up over time.


Webpage Running Indefinitely? - El Forum - 02-02-2012

[eluser]jamgood96[/eluser]
[quote author="CroNiX" date="1328222908"]I think that really depends more on the browser. Some web pages (usually javascript intensive) I can just leave running like you are proposing and watch the memory consumption of the browser go up over time.[/quote]

Would it be a good idea to force-reload the webpage every night, or does that not really address the issue?


Webpage Running Indefinitely? - El Forum - 02-02-2012

[eluser]CroNiX[/eluser]
Force reload the webpage? I think it would be better to reload the browser. Not sure what system you are using but you can set up a task to do that. Shutdown, restart and load the url.

But before getting into that, do a test with your browser doing what you propose and just watch the memory consumption. Leave it running for 24 hours and see if it uses more memory than when you started. If it has a memory leak, then take action.