[
https://issues.apache.org/jira/browse/SOLR-17439?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jan Høydahl resolved SOLR-17439.
--------------------------------
Assignee: Jan Høydahl
Resolution: Not A Problem
It works, you just have to find the PID of the JAVA process running Solr.
Say you "docker exec" into the running solr container, then run "ps -ef",
you'll see the list of PIDs. On one of my containers it was PID 14. Then use
that PID.
Closing. In the future, please ask questions like this on the
[email protected] mailing list, not in JIRA.
> jattach does not work with Solr in Docker
> -----------------------------------------
>
> Key: SOLR-17439
> URL: https://issues.apache.org/jira/browse/SOLR-17439
> Project: Solr
> Issue Type: Bug
> Security Level: Public(Default Security Level. Issues are Public)
> Components: Docker
> Affects Versions: 9.6.1
> Reporter: Roland Müller
> Assignee: Jan Høydahl
> Priority: Major
>
> I am running the solr:9.6.1 Docker image and want to create a heap dump.
> According to the documentation this should be possible using jattach:
> [https://solr.apache.org/guide/solr/latest/deployment-guide/solr-in-docker.html#debugging-with-jattach]
> If I open a shell in the container and enter the sample command from the
> documentation, this is what I get:
> {noformat}
> $ jattach 10 threaddump
> Process 10 not found{noformat}
> using the default PID 1, there is a different error:
> {noformat}
> $ jattach 1 threaddump
> Could not start attach mechanism: No such file or directory {noformat}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]