The Tool Desk
Outbyte Driver Updater FREEScan for outdated or missing drivers - takes under a minuteDriver Scan →Outbyte PC Repair FREEClear out junk files and repair common Windows errorsFree Scan →To reduce Puppeteer’s resource use, capture only the pixels you need, compare regular headless Chrome with chrome-headless-shell when its compatibility is sufficient, and limit concurrent jobs based on measured peak memory. Puppeteer’s documentation does not publish a universal RAM-per-browser figure or a guaranteed memory saving for these changes, so verify them on your own pages and server.
1. Capture only the required area
For a normal viewport screenshot, leave fullPage unset: its default is false. If you need a specific region, provide a clip rectangle. Use fullPage: true only when the output must include the entire page. Puppeteer documents these capture options but does not quantify how much memory a viewport, clip, or full-page capture uses. ScreenshotOptions reference
Here is a minimal CommonJS example that captures the viewport and closes its page and browser afterward:
const puppeteer = require('puppeteer');
(async () => {
const browser = await puppeteer.launch({ headless: true });
try {
const page = await browser.newPage();
await page.setViewport({ width: 1280, height: 800 });
await page.goto('https://example.com', { waitUntil: 'networkidle2' });
await page.screenshot({ path: 'shot.png' });
await page.close();
} finally {
await browser.close();
}
})();
To capture a portion of the viewport instead, replace the screenshot call with:
Free tools Windows power users keep installed
One-click scans. No signup required.
#1 Best Overall
- Read Before You Buy — No Video Output: These adapters support charging and USB 2.0 data transfer, but cannot transmit video signals. Except for standard USB webcams (which use USB data only), they are not compatible with HDMI/DisplayPort cables, video-capable USB-C hubs, or docking stations with video output.
- Convert USB-A Ports to USB-C: Designed to connect USB-C earphones, cables, flash drives, card readers, and other USB-C accessories to standard USB-A ports. Plug-and-play with no drivers or software required.
- Aluminum Alloy Housing: Built with a sturdy aluminum alloy shell that aids in heat dissipation and protects against daily wear and scratches. Designed to maintain a stable and secure connection.
- Compact & Travel-Friendly: The ultra-compact design allows the adapter to stay plugged into your device without blocking adjacent ports or adding bulk, reducing wear and tear on your original USB ports.
- 12-Month Warranty: Backed by a 12-month manufacturer warranty for peace of mind. Designed to meet strict quality control standards for reliable everyday performance.
await page.screenshot({
path: 'region.png',
clip: { x: 0, y: 0, width: 600, height: 400 }
});
For a single page element, Puppeteer also supports taking a screenshot from an element handle:
const element = await page.$('.report-card');
if (!element) throw new Error('Screenshot element not found');
await element.screenshot({ path: 'report-card.png' });
Element capture avoids requesting an entire full-page image, but the documentation does not claim a particular RAM reduction. If the page uses lazy-loaded images or other content that appears only after scrolling, a smaller capture may omit content you expected; check the rendered result.
2. Compare the headless modes
Puppeteer documents chrome-headless-shell as a potentially more performant option for automation when the complete Chrome feature set is unnecessary. That is not a published guarantee of lower memory use. Compare it with regular headless Chrome on representative pages, checking both output correctness and the browser features your pages require. Puppeteer headless modes
In Puppeteer 25.12.0 documentation, the shell mode can be selected with headless: 'shell':
Crashes, No Sound, or Screen Glitches?
Random freezes, missing sound and display glitches usually trace back to one bad driver. Find and replace yours safely.Free scan · under a minutePC Slower Than It Used to Be?
A free scan shows the junk files, broken settings and background clutter dragging Windows down - then fixes them in one click.Free scan · Windows 10 & 11Rank #2
- 5-in-1 USB-C Hub: Experience comprehensive connectivity featuring a Power Delivery input, two USB-A 2.0 ports, a USB-A 3.0 port, and an HDMI port. (Note: The USB-C power delivery input port is only for connecting an external wall charger to power your laptop and cannot power peripheral devices.)
- 90W Pass-Through Charging: Achieve optimal charging with 90W pass-through power to your laptop, supported by a total input of 100W, with the hub reserving 10W for operational efficiency. (Note: Wall charger not included.)
- Quick Data Transfers: Accelerate your productivity with rapid data transfers using a high-speed 5Gbps USB 3.0 port and two 480Mbps USB 2.0 ports.
- 4K HDMI Display: Enhance your visual experience with a hub capable of delivering 4K resolution at 30Hz in both mirror and extend modes. Please note that this hub is compatible with MacBook (macOS 12 and newer), Windows 10 and 11, ChromeOS, and laptops equipped with DP Alt Mode and Power Delivery. Note: This device is not compatible with Linux.
- What You Get: Anker USB-C Hub (5-in-1, 4K HDMI), welcome guide, 18-month warranty, and our friendly customer service.
const browser = await puppeteer.launch({ headless: 'shell' });
Try the same URLs, viewport dimensions, waits, and screenshot options in both modes. Look for differences in page rendering, navigation behavior, and any page functionality your capture depends on. Keep the mode that meets your compatibility requirements and performs acceptably in measurements from your deployment; do not assume the shell will always use less RAM.
3. Bound each job’s lifecycle
Await navigation and screenshot operations, close pages when their work is finished, and close the browser when the worker shuts down. Monitor the host or container for Chrome processes left behind after errors or interrupted jobs. Puppeteer’s screenshot example closes the browser after capture, and its API notes that Page.close() waits for an active screenshot in the same browser context to finish. Puppeteer screenshot guide · LaunchOptions reference
A persistent browser or page pool may be useful operationally, but the reviewed documentation does not establish that reuse or any particular pool size lowers memory for every workload. Measure the design you actually intend to run, and make sure shutdown and failure paths close pages and browser processes.
4. Set concurrency from measurements
There is no dependable universal “RAM per Puppeteer page” number in the cited documentation. Chromium’s processes and the pages they load vary, so set the number of simultaneous jobs only after observing your own workload.
Rank #3
- Sleek 7-in-1 USB-C Hub: Features an HDMI port, two USB-A 3.0 ports, and a USB-C data port, each providing 5Gbps transfer speeds. It also includes a USB-C PD input port for charging up to 100W and dual SD and TF card slots, all in a compact design.
- Flawless 4K@60Hz Video with HDMI: Delivers exceptional clarity and smoothness with its 4K@60Hz HDMI port, making it ideal for high-definition presentations and entertainment. (Note: Only the HDMI port supports video projection; the USB-C port is for data transfer only.)
- Double Up on Efficiency: The two USB-A 3.0 ports and a USB-C port support a fast 5Gbps data rate, significantly boosting your transfer speeds and improving productivity.
- Fast and Reliable 85W Charging: Offers high-capacity, speedy charging for laptops up to 85W, so you spend less time tethered to an outlet and more time being productive.
- What You Get: Anker USB-C Hub (7-in-1), welcome guide, 18-month warranty, and our friendly customer service.
- Run representative URLs on the target Linux server with the intended screenshot dimensions, page waits, and asset mix.
- Measure peak process or container memory while captures run, including the concurrency you expect in production.
- Repeat with unusually heavy pages and failure or timeout cases; note the highest observed peaks.
- Choose a concurrency limit and safety margin from those observations, then monitor production and revise if the workload changes.
These are operational measurement steps, not Puppeteer-published benchmarks. No fixed safety-margin percentage is established by the documentation.
5. Keep Linux launch and sandbox requirements intact
Do not add --no-sandbox as a supposed resource optimization. Puppeteer says Chrome uses multiple sandbox layers to protect the host from untrusted web content and strongly discourages disabling them. Configure a supported sandbox for the deployment instead. Chrome also needs a writable user-data directory. Puppeteer troubleshooting
Check that the Linux distribution and architecture are supported for the Chrome for Testing build you use. Puppeteer’s system-requirements guide lists Debian/Ubuntu and openSUSE/Fedora on x64 and arm64. If Chrome fails to launch, missing shared libraries are one possible cause; Puppeteer suggests checking them with ldd chrome | grep not. Puppeteer system requirements
Installation size is not runtime RAM
Puppeteer’s installation guide gives an approximate 282 MB download size for Chrome for Testing on Linux and notes that installation downloads chrome-headless-shell. That figure describes a download, not the memory required while taking screenshots. Puppeteer installation
Quick wins for a faster PC:
Scan for outdated or missing drivers - takes under a minuteDriver Scan →Repair Windows errors before they cause bigger problemsFix Now →Fix the driver behind crashes, sound loss and screen glitchesFind Drivers →Rank #4
- Dual Converters, Infinite Potential:Includes 2× USB C male to USB A female adapters and 2× USB A male to USB C female adapters. Perfect for a wide range of uses—tablets with Bluetooth keyboards, expand USB ports on macbook, and more. Two different converters for all your daily needs
- Next-Level 10Gbps & 3A Charging: No more slow 480Mbps, this usb to usb c adapter has a transfer speed of up to 10Gbps, allowing you to do more transferring in less time. This usb adapter fits both USB A and USB C charger, supporting up to 3A fast charging
- Upgraded Exquisite Craftsmanship: With an aluminum alloy housing and metal connector, the usbc to usb adapter is extremely durable and sturdy. Rigorously tested to withstand more than 10,000 times of plugging and unplugging, ensuring long-lasting performance
- Broad Compatible: The usb c to usb adapter widely supports all USB C/ USB A devices like laptops, tablets, cellphones, car chargers, and phone chargers. Such as compatible with MacBook Pro/Air 2023/2022, Thunderbolt 4/3 Devices,Apple MagSafe Watch 9/8/7/SE/Ultra, iPad Pro 2022/2021, Samsung Galaxy S23/S20/S10, and iPhone 17/16/15 Pro. Plug and play
- Please Note: To reach 10Gbps speed, keep the cable under 3.3 ft. For USB A Male to USB C adapters, try flipping the USB C connector. USB C Male to USB A adapters support bidirectional 10Gbps transfer within 3.3 ft
6. Treat image format and output size separately
Puppeteer supports PNG, JPEG, and WebP screenshots. JPEG quality is configurable for JPEG captures; the screenshot options specify that it does not apply to PNG. Output format and file size matter for storage and transfer, but the documentation does not claim that choosing a format reduces browser RAM. ScreenshotOptions reference
7. Troubleshoot common problems
- Chrome exits or fails to launch: check the Linux distribution, architecture, writable user-data directory, and required shared libraries. Use
ldd chrome | grep notto look for missing libraries, as suggested in Puppeteer’s troubleshooting guide. - Sandbox-related launch errors: configure the deployment’s supported sandbox. Do not disable it with
--no-sandboxsimply to get a launch working; Puppeteer strongly discourages that setting. - The screenshot omits content: check whether the capture is limited to the viewport or a
clipregion, and whether the omitted content appears only after scrolling. Use full-page capture only when the whole page is required. - Memory still spikes: compare representative pages, capture dimensions, headless modes, and job concurrency while recording peak memory. The official docs do not offer a setting that guarantees a particular reduction.
- A worker shutdown stalls: allow an in-progress screenshot to finish before expecting
Page.close()to return; then verify that browser processes are cleaned up.
For launch-specific checks and supported configuration details, consult the troubleshooting guide.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Or skip the browser setup
If you want a hosted screenshot endpoint instead of running Chromium on your server, ScreenshotNeo accepts one GET request with a URL and returns an image or PDF. For example, using cURL:
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://example.com -o shot.webp
See the ScreenshotNeo API documentation for request options. It accepts cookie and consent banners before capture and removes more than 60 known consent platforms, newsletter popups, and chat widgets; those steps can be turned off. Bot checks or CAPTCHAs, blank pages, timeouts, failed loads, and cache hits are not billed, and the response includes X-Page-Verdict and X-Billed headers. Its MCP server provides take_screenshot, get_page_info, and capture_pdf tools for AI agents and other MCP clients. The free plan includes 1,000 screenshots a month with no card; paid plans start at $5 for 3,000 shots.
What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
Sign up for ScreenshotNeo’s free plan to get 1,000 screenshots a month with no card.
Best Value
- 5-in-1 Connectivity: Equipped with a 4K HDMI port, a 5 Gbps USB-C data port, two 5 Gbps USB-A ports, and a USB C 100W PD-IN port. Note: The USB C 100W PD-IN port supports only charging and does not support data transfer devices such as headphones or speakers.
- Powerful Pass-Through Charging: Supports up to 85W pass-through charging so you can power up your laptop while you use the hub. Note: Pass-through charging requires a charger (not included). Note: To achieve full power for iPad, we recommend using a 45W wall charger.
- Transfer Files in Seconds: Move files to and from your laptop at speeds of up to 5 Gbps via the USB-C and USB-A data ports. Note: The USB C 5Gbps Data port does not support video output.
- HD Display: Connect to the HDMI port to stream or mirror content to an external monitor in resolutions of up to 4K@30Hz. Note: The USB-C ports do not support video output.
- What You Get: Anker 332 USB-C Hub (5-in-1), welcome guide, our worry-free 18-month warranty, and friendly customer service.
References
- Screenshots
- ScreenshotOptions
- Headless mode
- Troubleshooting
- System requirements
- LaunchOptions
- Installation
Frequently Asked Questions
How much RAM does Puppeteer need for a screenshot?
The cited Puppeteer documentation does not establish a universal RAM requirement. Measure peak memory on your server using representative pages and the concurrency you plan to run.
Does `chrome-headless-shell` use less memory than regular headless Chrome?
Puppeteer describes it as potentially more performant for automation when the full Chrome feature set is unnecessary, but does not promise lower memory use. Compare compatibility and measured memory for your pages.
Does JPEG quality reduce Puppeteer’s browser memory use?
The screenshot options expose JPEG quality, but the documentation does not state that it reduces browser RAM. It does not apply to PNG screenshots.
Quick Recap
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.




