ABe*_*ain 5 google-chrome tabs command-line process macos
Chrome 在一个进程中运行它的所有选项卡,当我打开大量选项卡时,它确实减慢了我的机器速度。考虑到 Chrome 最初的营销方式是将每个标签页作为一个进程运行,我惊讶地发现 Chrome 不再这样做了。
我尝试了该--proccess-per-tab
标志,但出现错误(-43
准确地说)。
我尝试的论点是
open -a /Applications/Google_Chrome.app/Contents/MacOS/Google_Chrome --args --process-per-tab
Run Code Online (Sandbox Code Playgroud)
运行 Mac OS 10.6.7 和 Chrome 13.0.761.0
更新:刚刚打开 chrome,它将我的选项卡分为 4 个不同的进程。
随着时间的推移,这些过程将合二为一。
您通常应该是open
一个应用程序包,而不是其中的实际二进制文件。所以我建议你使用:
open -a "Google Chrome" --args --process-per-tab
open -a "/Applications/Google Chrome.app" --args --process-per-tab
Run Code Online (Sandbox Code Playgroud)
尽管如此,我无法在 Chrome 11、12(测试版)或 13(开发版)中重现该问题。
使用 Chrome 13.0.761.0 dev 时的活动监视器输出,启动为open -a "/Users/danielbeck/Applications/Google Chrome 13.app" --args --process-per-tab
:
在证明 Chrome 没有问题后,这是您做错的地方:
您只是指定了错误的路径。没有下划线,只有空格,由前导\
或用引号包裹。
错误:
open -a /Applications/Google_Chrome.app/Contents/MacOS/Google_Chrome --args --process-per-tab
正确:open -a /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --args --process-per-tab
替代:open -a "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" --args --process-per-tab
供将来参考:制表符完成正确转义空格。你应该能够打字/A[tab]Goo[tab][tab]Ma[tab][tab]
,它会起作用。