Hi Sampath!
Can you pass the j path within double quotes as follows and can you try?
yc -j "C:\Program Files\Java\jdk1.8.0_144" -onlyCapture -p 10488 -hd
Hi, I have followed the steps given bellow link to capture the artifacts.
https://docs.ycrash.io/ycrash-features/ycrash-faq/only-capture-artifacts.html#download-ycrash-agent
However, it failed to capture and print the following error.
C:\Personal\Course\JVM\yc-latest\agent>yc -j C:\Program Files\Java\jdk1.8.0_144 -onlyCapture -p 10488 -hd
Thu Sep 30 16:27:19 IST 2021 INF '-s' yCrash server URL argument not passed.
Usage of yc:
-a string
The APP Name of the target
-address string
Address to serve API service (default "localhost")
-c string
The config file path to load
-caCertPath string
The CA Cert Path
-captureCmd string
Capture command line to be executed
-cmd value
The command to be executed, should be paired with '-urlParams' together
-d Delete logs folder created during analyse (default true)
-gcCaptureCmd string
GC log capture command line to be executed
-gcCaptureMode
Run in GC Capture mode
-gcPath string
The gc log file to be uploaded while it exists
-hd
Capture heap dump, default is false
-hdCaptureCmd string
Heap dump capture command line to be executed
-hdCaptureMode
Run in Heap Dump Capture mode
-hdPath string
The heap dump file to be uploaded while it exists
-j string
The java home path to be used. Default will try to use os env 'JAVA_HOME' if 'JAVA_HOME' is not empty, for example: /usr/lib/jvm/java-8-openjdk-amd64 (default "C:\\Program")
-k string
The API Key that will be used to make API requests, for example: tier1app@12312-12233-1442134-112
-logFileMaxCount uint
Max count of the log files (default 7)
-logFileMaxSize int
Max size of the log files (default 536870912)
-logFilePath string
Path to save the log file
-logLevel string
Log level: trace, debug, info, warn, error, fatal, panic, disable. (default "info")
-m3
Run in m3 mode, default is false
-m3Frequency duration
Frequency of m3 mode, default is 3 minutes (default 3m0s)
-onlyCapture
Only capture all the artifacts and generate a zip file, default is false
-p string
The process ID or unique token of the target, for example: 3121, or 'buggyApp'
-pingHost string
Ping to host three times (default "google.com")
-port int
Port to serve API service (default -1)
-processTokens value
Process Tokens of m3 mode
-s string
The server url that will be used to upload data, for example: https://ycrash.companyname.com
-tags string
Comma delimited strings as tags to transmit to server
-tdCaptureCmd string
Thread dump capture command line to be executed
-tdCaptureMode
Run in Thread Dump Capture mode
-tdPath string
The thread dump file to be uploaded while it exists
-urlParams value
The params to be added at the end of upload request url, should be paired with '-cmd' together
-verifySSL string
Verifying the server SSL certificate (default "true")
-version
Show the version of this program
C:\Personal\Course\JVM\yc-latest\agent>
Kindly requesting you to review and let me know if i am missing anything.
Thanks and Regards,
Sampath
Edit your Comment