• 请不要在回答技术问题时复制粘贴 AI 生成的内容
showecho
V2EX  ›  程序员

不是说 PHP 和 Linux 更配吗?

  •  
  •   showecho · Oct 13, 2018 via iPhone · 4462 views
    This topic created in 2952 days ago, the information mentioned may be changed or developed.
    同样的 2 核 4G,windows 下放了 100 个 wordpress,内存 50-60%,linux 下(宝塔)放 60 个就 80%以上了,为啥?
    18 replies  •  2018-10-14 17:40:12 +08:00
    Nitroethane
    Nitroethane
    Oct 13, 2018 via Android
    1
    你需要学习一下 Linux 的内存管理机制
    yjd
    yjd
    Oct 13, 2018 via Android
    2
    楼上正解
    glouhao
    glouhao
    Oct 13, 2018 via Android
    3
    宝塔稳定么,以前用 wdcp 两三个月死机一回
    wwthappy
    wwthappy
    Oct 13, 2018
    4
    你是怎么算的内存使用率? linux 不是简单的算( total-free )/total
    tachikomachann
    tachikomachann
    Oct 13, 2018 via Android
    5
    先 free 看一下内存,特别是 +-buffer cache 那一列
    nilrust
    nilrust
    Oct 13, 2018
    6
    内存计算机制都不一样怎么比?
    bigmouthhaile
    bigmouthhaile
    Oct 13, 2018 via Android
    7
    试试用 htop 看内存占用
    tadtung
    tadtung
    Oct 13, 2018 via Android
    8
    这个和内存无关。。。
    xiaoz
    xiaoz
    Oct 13, 2018
    9
    1.首先 win 和 linux 内存机制确实不一样
    2.其次您放了 100 个 wp 站点,才 4G 内存,占用和您的访问量、使用插件相关。
    3.100 个 wp 占用这么点内存我觉得完全正常
    hjc4869
    hjc4869
    Oct 13, 2018 via iPhone
    10
    Windows 是不是开了 pf,然后 Linux 没开 swap 或者 swappiness 太低
    micookie
    micookie
    Oct 13, 2018
    11
    放上 200 个发现还是 80%...
    dorothyREN
    dorothyREN
    Oct 13, 2018
    12
    linux 上不能只看 free 部分的大小,因为还有 cache。
    lscho
    lscho
    Oct 13, 2018
    13
    linux 的内存管理机制上面已经说了。。说个题外话,难道你不感觉到你买个内存,结果系统没给你用,感觉很傻吗?
    laolinn
    laolinn
    Oct 13, 2018 via iPhone
    14
    不如看一下双方是不是都用 apache,不要 windows 那边用了 iis
    ericgui
    ericgui
    Oct 14, 2018
    15
    我觉得可能是宝塔的问题
    zxq2233
    zxq2233
    Oct 14, 2018
    16
    lamp 天下无敌
    NickyHaris
    NickyHaris
    Oct 14, 2018
    17
    要看 available
    encro
    encro
    Oct 14, 2018
    18
    windows 跑的不是 fpm,没有多开吧,linux 上默认应该是开了 fpm,还有扩展多少也有关系。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2026 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 61ms · UTC 15:23 · PVG 23:23 · LAX 07:23 · JFK 10:23
    ♥ Do have faith in what you're doing.