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

The "--loop" option can't work when combined with the "--fdtransfer" flag. #803

Closed
zhyee opened this issue Aug 17, 2023 · 2 comments
Closed
Labels

Comments

@zhyee
Copy link

zhyee commented Aug 17, 2023

When I use the command ./profiler.sh -e cpu,alloc,lock -o jfr --loop 60s -f %n{10000}.jfr --fdtransfer 407234 to profile my jvm process,the profiler output only one file and then stopped. I find that this is caused by the function "single_pid_server" in "fdtransferServer.cpp" source file, because it handle only one connection and then exit immediately, the subsequent connection from the profiler will be refused.
Is there any idea to avoid it.

The captured log is like below:

[WARN] FdTransferClient connect(): Connection refused
[ERROR] VM::restartProfiler fail: Failed to initialize FdTransferClient
@apangin
Copy link
Collaborator

apangin commented Aug 19, 2023

Thank you for the report.
This configuration is not yet supported. We'll see if we can fix that in one of the next releases.

@apangin
Copy link
Collaborator

apangin commented Nov 24, 2023

The fix has been pushed.

@apangin apangin closed this as completed Nov 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants