Python selenium webdriver.quit() can not kill chromedriver.exe process

I have used python Selenium to wrote a web scraper to download files auto.when I ran it on my local PC,it worked well.but when I run it on my VM on Azure.The method webdriver.quit() can not kill chromedriver.exe process and this zombine process keep my CPU and memory usage very high.

I have referring to release Selenium chromedriver.exe from memory and what I have tried following is all failed to kill it:

  1. end the process in the task mananger (Access denied)
  2. use taskkill /im chromedriver.exe /f in admin mode CMD(can not be terminated)
  3. use kill -id pid in powershell admin mode(can not be terminated)

I have given the full control permission to the windows user to the chromedriver.exe and here is some detail about the environment.

  • OS:windows server 2016 Datacenter(VM on Azure)
  • Browser:Chrome
  • Browser version:87.0.4280.141
  • Browser Driver version:87.0.4280.88.0
  • Language Bindings version:Python 3.7.9
  • Selenium version:3.141.0

what I can do to kill this process for now is only reboot my VM.Can anyone help me?
No same issue happened on my local PC(windows 10),So is this something about the OS or system setting?

Source: Python-3x Questions

LEAVE A COMMENT