I have 3gp files that are uploaded to my server via php. From there FFmpeg will convert the 3gp files to mp3 files. Sometimes the 3gp files are corrupt and FFmpeg will hang on that file and max out that core until the process is killed manually via WHm using the process manager.
There have been times when several of these files bring the server to a grinding halt because ffmpeg has maxed out all cores.
Is there a plugin or script or something I can install on the server that can auto kill any process that exceeds a certain amount of time and 90% cpu?
Centos 6.5 Using WHM I have root access.