Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pipe stdin? #12

Open
wxdao opened this issue Sep 20, 2016 · 1 comment
Open

pipe stdin? #12

wxdao opened this issue Sep 20, 2016 · 1 comment

Comments

@wxdao
Copy link

wxdao commented Sep 20, 2016

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?

@pshved
Copy link
Owner

pshved commented Sep 21, 2016

Perhaps, modifying the script so that the parent closes STDIN after forking would help. I'm not sure, feel free to try and asend a patch if it worked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants