Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

multiple chrome processes spawned after each run #33

Open
joe81tx opened this issue Dec 21, 2024 · 0 comments
Open

multiple chrome processes spawned after each run #33

joe81tx opened this issue Dec 21, 2024 · 0 comments

Comments

@joe81tx
Copy link

joe81tx commented Dec 21, 2024

Hi,
After each successful run 3 additional chrome processes are created, so if I run the script 10 times I'll have 30 chrome processes running.

ps aux | grep chrome
joe        63375   0.0  1.8  527292 306640  0  I    17:25       0:01.04 chrome: --type=gpu-process --disable-breakpad --headless=new --ozone-platform=headless --
joe        63376   0.0  1.4  358512 227956  0  I    17:25       0:00.33 chrome: --type=utility --utility-sub-type=network.mojom.NetworkService --lang=en-US --ser
joe        63377   0.0  1.4  355796 226564  0  I    17:25       0:00.16 chrome: --type=utility --utility-sub-type=storage.mojom.StorageService --lang=en-US --ser

Operating system=FreeBSD 14.2
Chrome version=131.0.6778.139

Python:

import asyncio
import zendriver as zd

async def main():
    browser = await zd.start(
        headless=True,
        browser_executable_path="/usr/local/bin/chrome",
    )
    page = await browser.get("https://www.google.com")
    await page.close()
    await browser.stop()
if __name__ == "__main__":
    zd.loop().run_until_complete(main())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant