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

Unable to run heapfragger in background #2

Open
ktbriggs opened this issue Dec 4, 2018 · 1 comment
Open

Unable to run heapfragger in background #2

ktbriggs opened this issue Dec 4, 2018 · 1 comment

Comments

@ktbriggs
Copy link

ktbriggs commented Dec 4, 2018

I need to execute a long-running (several hours) HeapFragger session on a remote machine which requires me to run it in the background using nohup to avoid aborted session due to connection timeout. When I try to run HeapFragger with nohup or in the background, eg

openj9/jdk-11.0.1+13/bin/java -Xmx2g -Xms2g -verbose:gc -Xverbosegclog:d.vlog \
-javaagent:HeapFragger.jar="-a 512 -s 0" \
-javaagent:jHiccup.jar="-d 0 -i 1000 -l d.hlog" \
org.HeapFragger.Idle -t 100000 &>>d.err&

it returns immediately without output to stdout/stderr. The hiccup log is also empty and the verbose gc log shows only its initialization header, no collections are recorded. If I remove the trailing ampersand and run it in the foreground it runs as expected. Same behavior with OpenJDK as for OpenJ9.

I am attempting to run this on an x86-64 server running Red Hat Enterprise Linux 7.5 with 16 cores and ~18G RAM.

@ktbriggs ktbriggs changed the title Unable to fun heapfragger in background Unable to run heapfragger in background Dec 4, 2018
@ktbriggs
Copy link
Author

ktbriggs commented Dec 4, 2018

It seems that HeapFragger is trying to read from tty while running in the background:

jobs -l
[1]+  6302 Stopped (tty input)     openj9/jdk-11.0.1+13/bin/java -Xmx2g -Xms2g -verbose:gc -Xverbosegclog:d.vlog -javaagent:HeapFragger.jar="-a 512 -s 0" -javaagent:jHiccup.jar="-d 0 -i 1000 -l d.hlog" org.HeapFragger.Idle -t 100000 &> d.err

Is there a way to disable this and enable HeapFragger to run in the background?

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

1 participant