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

BTrace probe's output is not being redirected for the first connection. #498

Closed
ksiczek opened this issue Sep 1, 2021 · 2 comments · Fixed by #505
Closed

BTrace probe's output is not being redirected for the first connection. #498

ksiczek opened this issue Sep 1, 2021 · 2 comments · Fixed by #505
Assignees
Labels
Milestone

Comments

@ksiczek
Copy link

ksiczek commented Sep 1, 2021

I have a rather simple btrace script and I connect to JBoss 7 JVM 8 on Fedora 34. I would like to redirect the output to a file using -o switch but it does not seem to work for the first time I connect to JVM (probes are printed to the standard output) and I have to do Ctrl+C and connect again - then it works. Is this something you guys know about? Is the -o reliable and is there any difference than standard redirect >?

The other thing I noticed is that if I use -o and exit the btrace then connect again without -o it still redirects to the file. I might not comprehend how btrace works in terms of restarting/reconnecting but having the -o working for the very first time is important to me.

@jbachorik
Copy link
Collaborator

Hi @ksiczek, thanks for reporting this.
I will try looking into this in the near future.

@jbachorik
Copy link
Collaborator

Just to let you know this is not forgotten - it's just that I have not that much free time left nowadays so it might take a while till I get to this :(

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

Successfully merging a pull request may close this issue.

2 participants