FortiADC
FortiADC enhances the scalability, performance, and security of your applications whether they are hosted on premises or in the cloud.
JHelio
Staff
Staff
Article Id 306675
Description This article describes how to identify and kill a specific process in FortiADC.
Scope FortiADC .
Solution
  1. Identify the process with this command:

 

diagnose sys top

 

  1. Locate the PID. As an example, try to kill PID 3788:

 

FADC# diagnose sys top
Mem: 6471716K used, 1502144K free, 4303094K shrd, 446376K buff, 3140776K cached
CPU: 28.5% usr 33.3% sys 0.0% nic 38.0% idle 0.0% io 0.0% irq 0.0% sirq
Load average: 1.19 1.24 1.20 4/300 11194
PID PPID USER STAT VSZ %VSZ CPU %CPU COMMAND
3788 1 root R 685m 8.8 1 47.5 httproxy -f /tmp/vs/root/VS_simit_fcm_org_co.0.httproxy.cfg    <----  This one.
2840 2576 root R 68988 0.8 0 9.5 keepalived: checker
8808 2 root IW 0 0.0 1 4.7 [kworker/1:1]
2453 1 root S 1633m 20.9 0 0.0 /bin/mysqld --defaults-file=/etc/mysql/my.cnf --skip-grant-tables --skip-networking --user=root
2468 1 root S 1460m 18.7 0 0.0 /bin/restapi 1
2469 1 root S 1439m 18.4 1 0.0 /bin/restapi 2

 

  1. Enable the shell mode in the FortiADC setting. As an example, user 'ert' and password 12345:

 

config system global
    set shell-access enable
    set shell-username ert
    set shell-password 12345
    set shell-timeout 200
end

 

  1. Then, access as below:

 

ssh ert@x.x.x.x <----- Where x.x.x. is the IP address of the FortiADC.

 

  1. Validate the access in shell mode as below:

 

~# whoami
ert

 

  1. To kill such process, apply the below command in shell mode:

 

#kill 3788


If any process still causes issues after killing, open a TAC ticket.

Contributors