-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Description
I am trying to check 'yc-360-script' on a Java process running in a Docker container on my local WSL2 on Windows 11 and I am trying to run it as sidecar container using below 'docker run' command -
docker run --rm --user 1000:1000 --pid=container:my-tomcat-1 --privileged -v "/home/myuser/dev/jvm-diagnostics/tomcat:/output" -v "$(pwd)/yc-config.yml:/opt/workspace/yc-360-script/yc-config.yaml" ycrash/yc-360-script -onlyCapture -p="9"
yc-config.yml contains below -
version: '1' options: k: '' s: '' j: '/opt/jdk' a: 'my-tomcat-1' logLevel: debug storagePath: '/output'
With above I always see errors running executables under /opt/jdk/bin directory, few I listed below, which I took from yc-360-script log.
Is transmission completed: false
Resp: in only capture mode
Ignored errors: javaVersion err: fork/exec /opt/jdk/bin/java: no such file or directory, previous err: <nil>
and
Tue Jul 22 06:14:42 UTC 2025 INF PID is 9
Tue Jul 22 06:14:42 UTC 2025 INF YC_SERVER is
Tue Jul 22 06:14:42 UTC 2025 INF API_KEY is
Tue Jul 22 06:14:42 UTC 2025 INF APP_NAME is my-tomcat-1
Tue Jul 22 06:14:42 UTC 2025 INF JAVA_HOME is /opt/jdk
Tue Jul 22 06:14:42 UTC 2025 INF GC_LOG is
Tue Jul 22 06:14:42 UTC 2025 INF PROBLEMATIC_PID is: 9
Tue Jul 22 06:14:42 UTC 2025 INF SCRIPT_SPAN = 120
Tue Jul 22 06:14:42 UTC 2025 INF JAVACORE_INTERVAL = 30
Tue Jul 22 06:14:42 UTC 2025 INF TOP_INTERVAL = 60
Tue Jul 22 06:14:42 UTC 2025 INF TOP_DASH_H_INTERVAL = 5
Tue Jul 22 06:14:42 UTC 2025 INF VMSTAT_INTERVAL = 5
Tue Jul 22 06:14:42 UTC 2025 INF Starting collection of top data...
Tue Jul 22 06:14:42 UTC 2025 INF Collection of top data started.
Tue Jul 22 06:14:42 UTC 2025 INF Starting collection of vmstat data...
Tue Jul 22 06:14:42 UTC 2025 INF Collection of vmstat data started.
Tue Jul 22 06:14:42 UTC 2025 INF Collecting ps snapshot...
Tue Jul 22 06:14:42 UTC 2025 INF Collected ps snapshot.
Tue Jul 22 06:14:42 UTC 2025 INF Collecting other data. This may take a few moments...
Tue Jul 22 06:14:42 UTC 2025 INF Collected other data.
Tue Jul 22 06:14:42 UTC 2025 INF Trying to capture gc log using jstat...
Tue Jul 22 06:14:42 UTC 2025 INF Error on auto discovering app logs: open /proc/9/fd: permission denied
Tue Jul 22 06:14:42 UTC 2025 INF Reading result from top channel
Tue Jul 22 06:14:42 UTC 2025 INF jstat failed cause fork/exec /opt/jdk/bin/jstat: no such file or directory
Tue Jul 22 06:14:42 UTC 2025 INF Trying to capture gc log using jattach...
Tue Jul 22 06:14:42 UTC 2025 INF Collecting thread dump using JStack...
Tue Jul 22 06:14:42 UTC 2025 INF Failed to run jcmd with err fork/exec /opt/jdk/bin/jcmd: no such file or directory. Trying to capture using jattach...
Tue Jul 22 06:14:42 UTC 2025 INF Collecting the first netstat snapshot...
Tue Jul 22 06:14:42 UTC 2025 INF Collection of top dash H data started for PID 9.
Tue Jul 22 06:14:42 UTC 2025 INF Trying to capture thread dump using jstack ...
Tue Jul 22 06:14:42 UTC 2025 INF Failed to run jstack with err fork/exec /opt/jdk/bin/jstack: no such file or directory
Tue Jul 22 06:14:42 UTC 2025 INF Trying to capture thread dump using jattach...
Tue Jul 22 06:14:42 UTC 2025 INF First netstat snapshot complete.
Tue Jul 22 06:14:42 UTC 2025 INF Failed to capture GC.class_histogram -all with err exit status 1 because Failed to change credentials to match the target process: Operation not permitted
jattach1 ret 1
. Trying to capture using tmp jattach...
Tue Jul 22 06:14:42 UTC 2025 INF jattach failed cause exit status 1 because Failed to change credentials to match the target process: Operation not permitted
jattach1 ret 1
Is this supported on WSL2 ?
Metadata
Metadata
Assignees
Labels
No labels