Let’s be honest: Google Chrome is that one friend who’s amazing... but eats all your food.
Tabs, dev tools, web apps, YouTube, Figma — Chrome loves them all. Maybe a little too much.
But here’s the good news:
You can actually make Chrome faster by giving it a bigger memory allowance using a little trick called --max-old-space-size.
Think of it as feeding Chrome a bigger breakfast so it stops getting cranky.
Let’s break it down for Windows, macOS, and Linux. 🍳
🤓 Wait, what’s --max-old-space-size?
Chrome uses the V8 engine to run JavaScript, and V8 has a special memory area called the "Old Space" — basically the place where long-lived objects hang out.
If this space is too small, Chrome panics, sweats, and starts throwing random memory tantrums (yes, garbage collection).
By adding something like:
--max-old-space-size=4096
you’re saying:
“Hey Chrome, here’s 4GB. Please chill.”
And Chrome usually listens.
🪟 Windows — The Shortcut Snack
- Close Chrome (yes, ALL those 57 tabs).
- Right-click the Chrome icon -> Properties.
- In the Target box, add this to the end:
--max-old-space-size=4096
Example:
"C:\Program Files\Google\Chrome\Application\chrome.exe" --max-old-space-size=4096
- Save -> Reopen Chrome -> Enjoy the speed. (Chrome will still eat RAM, but now it does it with purpose.)
🍏 macOS — Terminal Magic
- Quit Chrome like you mean it.
- Open Terminal.
- Run:
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --max-old-space-size=4096
Want this forever? Add an alias:
alias chrome="open -a 'Google Chrome' --args --max-old-space-size=4096"
Then:
source ~/.zshrc
Voilà — Chrome with superpowers.
🐧 Linux — The Hacker Way™️
Run it directly:
google-chrome --max-old-space-size=4096
Or make it permanent like a true penguin wizard:
Open the desktop entry:
sudo nano /usr/share/applications/google-chrome.desktopFind:
Exec=/usr/bin/google-chrome-stableAppend the flag:
Exec=/usr/bin/google-chrome-stable --max-old-space-size=4096Save -> Relaunch -> Feel the speed.
⚡ What Gets Better?
- Stability: Fewer “Chrome isn’t responding” heart attacks.
- Performance: Smoother experience with dev tools and heavy apps.
- Efficiency: Less aggressive RAM purging.
- Integration: More stable builds when tools spawn Chrome under the hood.
Basically: Chrome stops acting like it’s running on a potato.
Now that Chrome is well-fed, you can truly max out your browsing sessions!
Top comments (0)