I'm using a Raspberry Pi to display information collected from some automated equipment in an industrial environment. The data is collected and stored in a database on an industrial PC; I've got the Pi hooked up to it via a wired network, and I'm using PHP to pull data out of the database and display it.
The issue I'm running in to is with memory. I'm running just a test right now, pulling a table with one record and three columns and displaying it on the web page, and using header("Refresh: 2; URL=$_SERVER['REQUEST_URI']");
to keep the information updated. After getting the Dead Jim page in Chromium a few times, I started keeping track of memory with vmstat
to see how quickly it's getting used up. Chromium eats about
5.4 MB a minute, and Midori 4.8 MB per minute.
This is a process that's supposed to run 24/7, rebooting maybe once a week when the industrial equipment goes down for maintenance. What can I do to help out with memory usage? Is there some sort of browser setting to prevent caching anything that might help? Is there a better browser out there that I should be using? I've seen these sorts of issues all over the place in messageboards across the web, so I don't think it's my php code that's doing it, though I'll put it up if anybody thinks that could be the problem.