Comments (4)
How are you calling penthouse?
I would expect only 1-2 processes at a time: maybe one main process and one for the tab.
With the default penthouse settings my expectations would be the same.
Can you see what the names of the heavy chrome processes are?
from penthouse.
These processes are from running penthouse on a single URL (basically the google.com example from the docs)
root 182485 0.0 2.1 413880 87224 ? Ssl 14:11 0:00 /app/node_modules/puppeteer/.local-chromium/linux-722234/chrome-linux/chrome --disable-background-networking --enable-features=NetworkService,NetworkServiceInProcess --disable-background-timer-throttling --disable-backgrounding-occluded-windows --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-background-pages --disable-default-apps --disable-dev-shm-usage --disable-extensions --disable-features=TranslateUI --disable-hang-monitor --disable-ipc-flooding-protection --disable-popup-blocking --disable-prompt-on-repost --disable-renderer-backgrounding --disable-sync --force-color-profile=srgb --metrics-recording-only --no-first-run --enable-automation --password-store=basic --use-mock-keychain --headless --hide-scrollbars --mute-audio about:blank --disable-setuid-sandbox --no-sandbox --ignore-certificate-errors --remote-debugging-port=0 --user-data-dir=/tmp/puppeteer_dev_chrome_profile-agZfAX
root 182490 0.0 1.1 261056 48132 ? S 14:11 0:00 /app/node_modules/puppeteer/.local-chromium/linux-722234/chrome-linux/chrome --type=zygote --no-sandbox --headless --headless
root 182506 0.0 1.7 311512 70800 ? Sl 14:11 0:00 /app/node_modules/puppeteer/.local-chromium/linux-722234/chrome-linux/chrome --type=gpu-process --field-trial-handle=759329575002737336,6194848084648503412,131072 --enable-features=NetworkService,NetworkServiceInProcess --disable-features=TranslateUI --no-sandbox --disable-breakpad --headless --headless --gpu-preferences=KAAAAAAAAAAgAAAgAAAAAAAAYAAAAAAAEAAAAAAAAAAAAAAAAAAAAAgAAAAAAAAA --use-gl=swiftshader-webgl --override-use-software-gl-for-tests --shared-files
root 182508 0.0 2.5 4559168 102848 ? Sl 14:11 0:00 /app/node_modules/puppeteer/.local-chromium/linux-722234/chrome-linux/chrome --type=renderer --no-sandbox --allow-pre-commit-input --disable-background-timer-throttling --disable-breakpad --enable-automation --file-url-path-alias=/gen=/app/node_modules/puppeteer/.local-chromium/linux-722234/chrome-linux/gen --force-color
These are running inside a Docker container (which is why they appear as root).
Also I just noticed when collecting the above that there are a lot of defunct Chrome processes left over.
root 182317 0.0 0.0 0 0 ? Z 14:11 0:00 [chrome] <defunct>
from penthouse.
Double checking on my end I have the same number of processes, when running on Linux:
- 1 "main window" (I think)
- 1
type=renderer
per open tab (depending on your Penthouse settings) - 1
type=gpu-process
- 1
type=zygote
So this is normal then, for Penthouse.
I do believe all these processes are spun up by Puppeteer, or even Chromium directly. I'm not sure whether this is something that could be handled differently.
Also I just noticed when collecting the above that there are a lot of defunct Chrome processes left over.
root 182317 0.0 0.0 0 0 ? Z 14:11 0:00 [chrome]
What are you doing exactly when "collecting"?
I doubt that I would know much to answer what's happening here though - I think it's on a lower layer. I would ask in the puppeteer lib about this.
from penthouse.
By 'collection', I just meant that I saw the defunct processes when I ran one of the scripts from the documentation in order to list what processes were created.
I'll close this now.
from penthouse.
Related Issues (20)
- Cannot read property 'width' of null
- Media queries in the generated .css file see seem inserted in the wrong line numbers HOT 6
- The media query `@media screen and (min-device-width: 20cm) and (min-aspect-ratio: 1/1)` is not inserted in the generated .ccs file. HOT 2
- Error: Failed to launch the browser process! on travis CI HOT 1
- why it crops critical css generated file? HOT 3
- What is CSSstring HOT 5
- Page speed insights CLS time on desktop get increased after resolving render blocking errors HOT 1
- Output Wrong CSS HOT 1
- not finishing in Docker environment HOT 1
- Puppeteer Update HOT 3
- TypeError: Cannot read property 'clear' of undefined HOT 2
- Navigation timeout infinitely
- bug(iframes): timed out if lazy loaded iframes HOT 2
- Display none elements do not get added to critical
- Puppeteer screenshot works, but not penthouse HOT 2
- forceExclude is ignored / not working
- CSS selectors like `:where()` are not included in generated critical css HOT 1
- The generated CSS is too big and include many unused CSS
- Configuration to extract below the fold critical CSS
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from penthouse.