Open mbolli opened 7 years ago
What about running it with a timeout? exec(timeout 10 nfdump).. that will give a maximum time of 10 seconds ?
That's probably too low, as statistics calculations even of just 1 week of data can take a few minutes depending on your system and number of sources.
As nfdump processes might take a long time to complete (depending on the parameters and the system), it would make sense to somehow track the running processes and make them killable from the front end.