picasso250
V2EX  ›  问与答

Bandwagon Host 中 PHP 提示内存不够

  •  
  •   picasso250 · Jan 30, 2018 · 2215 views
    This topic created in 3029 days ago, the information mentioned may be changed or developed.

    如何解决内存不够的问题?

    [work@host /]$ free -h
                  total        used        free      shared  buff/cache   available
    Mem:           504M        153M         58M        2.0M        292M        324M
    Swap:          131M        9.4M        122M
    

    top 了一下, mysqld 是最占内存的, 大概 16%

    那么方案

    • A 再买一台机器, 跑 mysqld
    • B 继续在软件层面死磕

    我当然倾向选 A, 也不贵, 那么不禁要问各位大佬

    1. 我的选择是否正确?
    2. 有没有其他支持国内付款方式或者电子货币付款的 VPS, SAAS 服务?
    5 replies    2018-01-31 14:20:14 +08:00
    picasso250
        1
    picasso250  
    OP
       Jan 30, 2018
    1. 注册 AWS,在信用卡界面卡住,自己的招行借记卡 错误: 信用卡信息无效,或是不支持的类型。
    2. 微软的 Azure Cloud 我歧视他, 觉得微软的做不好 Linux 虚拟机, 跳过
    3. IBM Cloud 宣称跳过信用卡, 大喜, 结果莫名其妙卡在注册界面, 看界面是某 js 错误
    4. 我回去注册 Azure 了,一切顺利
    f2f2f
        2
    f2f2f  
       Jan 30, 2018   ❤️ 1
    512M 的你跑 MySQL 版本要 5.2,5.5 以上 GG
    另外你这预算那么宽裕,选 bwg 这种服务商干啥嘛
    Marfal
        3
    Marfal  
       Jan 30, 2018
    加 Swap,调 MySQL 和 PHP 的配置文件
    7654
        4
    7654  
       Jan 30, 2018   ❤️ 1
    [root@XXXX~]# free -h
    total used free shared buff/cache available
    Mem: 754M 239M 84M 20M 429M 353M
    Swap: 0B 0B 0B
    mysql5.7
    picasso250
        5
    picasso250  
    OP
       Jan 31, 2018
    @f2f2f 因为搬瓦工支持 alipay
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3055 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 15:10 · PVG 23:10 · LAX 08:10 · JFK 11:10
    ♥ Do have faith in what you're doing.