Skip to content

php-loop.pl becomes a memory eater if $ARGV is invalid #54

@MrPeteH

Description

@MrPeteH

On a recent update, php7.3 became php7.4 and the php-loop.pl service file wasn't auto-updated.

The subtle result: a rapidly growing number of php-loop.pl forks, eating up all RAM over time.

I see (virtualmin-nginx/php-loop.pl ) that the code takes note of a crash within ten seconds, and sleeps for five seconds as a result.

Suggestion: if there's an immediate crash (under one second? Half a second?), log an error and exit.

Further suggestion, and I honestly do NOT know what I'm talking about here ;) -- looks like somehow virtual-feature.pl -> feature_modify() needs to run after a potential php system version change???

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions