Capture Thread Dump in VCF LCM to analyze and trouble shoot in case of indefinitely long running tasks
search cancel

Capture Thread Dump in VCF LCM to analyze and trouble shoot in case of indefinitely long running tasks

book

Article ID: 312059

calendar_today

Updated On:

Products

VMware Cloud Foundation

Issue/Introduction

This Article states steps to capture thread dump to help engineering with troubleshooting in case of indefinitely long running tasks created by SDDC LCM.


Symptoms:

IF there are long running tasks created by lcm service


Environment

VMware Cloud Foundation 4.x
VMware Cloud Foundation 3.x

Resolution

Please run the below command at multiple interval of time to help understand the state of the system for the duration of long run task

sudo -u vcf_lcm jcmd `pgrep -u vcf_lcm java` Thread.print > /tmp/lcm-thread-dump.out



Workaround:

Restarting LCM service shall fix the problem for the time being. Please make sure to capture thread dumps before restarting LCM service

Login as root

systemctl restart lcm