I have a program that reads stdin to process something and i want to monitor its resource usage.
However,
cat /some/file | perl memlimit --detect-hangups -c -m 1000000 -t 10 meta/app
or
perl memlimit --detect-hangups -c -m 1000000 -t 10 meta/app < /some/file
will just print
FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
Apparently this script fails in such situation.
What should I do?
I have a program that reads stdin to process something and i want to monitor its resource usage. However, cat /some/file | perl memlimit --detect-hangups -c -m 1000000 -t 10 meta/app or perl memlimit --detect-hangups -c -m 1000000 -t 10 meta/app < /some/file will just print FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
Apparently this script fails in such situation. What should I do?