How to kill a process in GCP

0 votes
Often times, some rogue processes gets in a busy spin mode using up 100% of the CPUs. I have a GCP Ubunutu instance with 4 CPU Cores and 32 Gigs of RAM. I still get into this situation of 100% CPU usage and I can't even SSH into the VM instance.

Does GCP provide a way of killing the offending process? Through gcloud SDK command or web console?
Mar 31, 2022 in GCP by Rahul
• 3,380 points
3,188 views

1 answer to this question.

0 votes

GCP does not provide you with any tool to kill processes. Instead you can SSH your VM instance, figure out what process is eating away at the CPU and stop it by executing these commands.

  • Open Terminal using Ctrl + Alt + T
  • Execute the command 'top'
  • Note the process using the most amount of CPU
  • If it isn't a system process kill it with sudo pkill[processname] where [processname] is the name of the process you want to kill
answered Apr 6, 2022 by Korak
• 5,820 points

Related Questions In GCP

0 votes
1 answer

How to allow outbound traffic on a custom port in gcp?

To allow outbound traffic through a custom ...READ MORE

answered Sep 26, 2019 in GCP by Sirajul
• 59,230 points
4,994 views
0 votes
1 answer

How to import a non bootable virtual disk in GCP?

You can use the gcloud compute images import command ...READ MORE

answered Oct 22, 2019 in GCP by Sirajul
• 59,230 points
1,100 views
0 votes
1 answer

How to create a cloud storage bucket in GCP?

Buckets are the basic containers that hold your ...READ MORE

answered Oct 24, 2019 in GCP by Sirajul
• 59,230 points
2,661 views
0 votes
1 answer
+2 votes
1 answer

How to create a firewall rule in GCP Cloud?

Hi@akhtar, If you are using the default VPC ...READ MORE

answered Aug 23, 2020 in GCP by MD
• 95,460 points
1,617 views
+2 votes
1 answer

How to create a project in GCP Cloud?

Hi@akhtar, To deploy your app on App Engine, ...READ MORE

answered Aug 23, 2020 in GCP by MD
• 95,460 points
721 views
+2 votes
1 answer

How to enable new services to a project in GCP Cloud?

Hi@akhtar, You can enable new services to your ...READ MORE

answered Aug 23, 2020 in GCP by MD
• 95,460 points
1,072 views
+2 votes
1 answer

How to create a VPC in GCP Cloud?

Hi@akhtar, You can create a private network in ...READ MORE

answered Aug 24, 2020 in GCP by MD
• 95,460 points
1,072 views
0 votes
1 answer

How to kill a process in GCP

 GCP does not provide you any tool ...READ MORE

answered Apr 6, 2022 in GCP by Korak
• 5,820 points
958 views
0 votes
1 answer

How to check which user has stopped the dataflow pipeline in GCP?

You can view all Step logs for ...READ MORE

answered Mar 9, 2022 in GCP by Korak
• 5,820 points
680 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP