morethansean
V2EX  ›  macOS

有办法无痛重启 WindowServer 吗?

  •  
  •   morethansean · May 26, 2015 · 5677 views
    This topic created in 4194 days ago, the information mentioned may be changed or developed.

    就像重启 explorer 那样……虽然到是几乎没什么需求重启 explorer……
    但我真的是急切地需要重启 WindowServer 的功能…… 直接杀掉的话,效果好像有点奇怪 _(:зゝ∠)_

    17 replies  •  2024-05-08 00:55:39 +08:00
    omi4399
    omi4399
    May 26, 2015
    1
    为何会痛?
    发错节点才会痛。。。
    morethansean
    morethansean
    OP
    May 26, 2015
    2
    @omi4399 因为我感觉……直接杀掉 WindowServer ,好像就像是注销了一样……
    Csineneo
    Csineneo
    May 26, 2015
    3
    launchctl unload /System/Library/LaunchDaemons/com.apple.WindowServer.plist
    launchctl load /System/Library/LaunchDaemons/com.apple.WindowServer.plist
    morethansean
    morethansean
    OP
    May 26, 2015 via Android
    4
    @Csineneo 。。。死、死机了
    lyragosa
    lyragosa
    May 26, 2015
    5
    我也想知道……估计苹果在10.11之前是不准备解决问题了

    然而也不知道10.11能不能解决……
    morethansean
    morethansean
    OP
    May 26, 2015 via Android
    6
    @Csineneo 。。。开不了机了
    lyragosa
    lyragosa
    May 26, 2015
    7
    @morethansean 蛤蛤蛤还好我没作死!
    est
    est
    May 26, 2015
    8
    @omi4399 哈哈哈哈。估计你看成 windows server了。。。这里讲的是一个名字叫做 windowserver的 mac os x 进程。。。
    jsfaint
    jsfaint
    May 26, 2015
    9
    windowserver内存泄漏成狗了……
    squid157
    squid157
    May 26, 2015 via iPhone
    10
    最近发现最好的解决方案就是定期重启,开销三分钟吧,正好可以去喝杯水什么的。

    10.10就是蛋疼
    geeklian
    geeklian
    May 26, 2015 via iPhone
    11
    @est 简直就是apple的深深恶意啊,最烂之一的进程叫这个名字
    typcn
    typcn
    May 26, 2015
    12
    @jsfaint 内存泄露大部分情况下是导致程序崩溃,除非循环创建不受作用域控制的变量,一般情况下并不会造成大量内存占用
    popbones
    popbones
    May 26, 2015
    13
    看到这个帖子就不由自主打开了Activity Monitor,机器开了2天了,WindowServer才200M,很欣慰。

    但是还是不由自主的Force Quit了一下,重新输入密码以后所有的窗口都还原了,我觉得推荐这么干之前保存为保存的文档,不过目测无甚不妥
    Autonomous
    Autonomous
    May 26, 2015
    14
    耐心等OS X 10.11来修复吧
    pH
    pH
    May 26, 2015
    15
    @Autonomous 牛逼,不理人。大牌
    Csineneo
    Csineneo
    May 27, 2015
    16
    @morethansean 怎麼會這樣 =.=!

    現在如何了
    GabrielleBellamy
    GabrielleBellamy
    May 8, 2024
    17
    在最新的系统,WIndowServer 已经 4GB 了,原来这个问题这么古老……
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1219 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 445ms · UTC 23:47 · PVG 07:47 · LAX 15:47 · JFK 18:47
    ♥ Do have faith in what you're doing.