Remix.run Logo
▲ jamesfinlayson a day ago

Yeah, a place I worked at years ago had a cron job to restart some critical service at midnight because it leaked memory all day. That was there for years.

▲ninalanyon 15 hours ago | parent | next [-]

We had a mail server that ran on an old DEC minicomputer. I rebooted it every six months because it had a slow memory, or possibly resource, leak somewhere.

It was the only thing running on that box so it wasn't a big deal to reboot.

▲Rantenki 21 hours ago | parent | prev [-]

Another real world example: to this day, it's a good idea to limit requests per PHP process using the MaxRequestsPerChild(apache)/max_requests(php-fpm) config option to some sane limit. After that configured number of requests, the PHP worker is terminated and restarted to... "fix" memory leaks. I remember setting that in the late 90s on Apache...

I am happy to no longer use PHP for anything.

▲jamesfinlayson 21 hours ago | parent [-]

Oh, it's been a while but I remember that.

I've used PHP in two previous jobs and certainly the stuff that I was in control of had it set to 0 because we made sure we didn't leak memory. Other departments... I'm sure at least one had the limit set to something non-zero.