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

Documentation feedback on /docs/admin/troubleshooting/jcmd/docker.rst #163

Open
hammerhead opened this issue Dec 11, 2024 · 0 comments
Open

Comments

@hammerhead
Copy link
Member

Documentation feedback


The page talks exclusively about Docker, but could be generalized to containerized deployments to also cover crate-operator deployments.
Commands look slightly different for kubectl. Example:

# JFR Docker
docker exec -it --user=crate cratedb /crate/jdk/bin/jcmd 1 JFR.start name=recording1 duration=60s filename=/data/recording1.jfr

# JFR kubectl (--user parameter becomes su)
kubectl exec -it -n 6d1f152b-4ac1-459e-9a6c-96557c703872 crate-data-hot-f4ae0c70-1438-46cf-a577-abff62c3593a-0 -c crate -- su crate -c "/crate/jdk/bin/jcmd 1 JFR.start name=recording1 duration=60s filename=/data/recording1.jfr"
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