Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@jbachorik
Copy link
Collaborator

This change allows running BTrace probes in unattended mode when they are not connected to the initiating client.

Having the possibility of running probes in unattended mode comes very handy especially with the recent addition of JFR event support where one can setup a probe to emit custom JFR events and disconnect and leave the application running with the probe applied.

In order to support the unattended execution this PR is adding:

  • the ability to detach from the command line client
  • the ability to deploy the probe in unattended mode (btrace -x <options> <pid> <probe>)
  • the ability to list all active probes which can be attached to (btrace -lp <pid>)
  • the ability to reconnect to a previously disconnected probes (btrace -r <probe id> <pid>) where probe id is assigned (and displayed) when the probe is first time deployed

For disconnected probes there is small message buffers which can hold up to 5000 most recent messages so when reconnecting one can get the most recent history replayed.

@jbachorik jbachorik added this to the 2.1.0 milestone Nov 29, 2020
@jbachorik jbachorik self-assigned this Nov 29, 2020
@jbachorik jbachorik changed the title Initial implementation of client disconnect and reconnect and listing… Initial support of unattended mode Nov 29, 2020
@jbachorik jbachorik force-pushed the unattended_execution branch from 79d55f9 to 2a437da Compare November 29, 2020 18:50
@jbachorik jbachorik merged commit 26815c1 into develop Dec 1, 2020
@jbachorik jbachorik deleted the unattended_execution branch December 1, 2020 14:29
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

Successfully merging this pull request may close these issues.

2 participants