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?
Apr 5, 2022 in GCP by Rahul
• 3,380 points
958 views

1 answer to this question.

0 votes

 GCP does not provide you any tool to kill proccess. Instead, you can SSH your VM instance and figure out what process is eating away your CPU and stop it, by executing this commands:

  1. Open a terminal with Ctrl+Alt+t
  2. Execute the command "top"
  3. Note the process using the most CPU
  4. If the process isn't a system process, kill it with "sudo pkill [processname]" where [processname] is the name of the process you want to kill.

If it is a system process, don't kill it, but try to Google the name of it and figure out what functionality it does in Ubuntu.

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,996 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,102 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,664 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,073 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,073 views
0 votes
1 answer

How to kill a process in GCP?

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

answered Apr 6, 2022 in GCP by Korak
• 5,820 points
3,190 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
681 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