Conoha 서버에서 Vultr 서버로 이사를 했는데요,

트래픽이나 디스크I/O는 문제 없는데 CPU 사용률이 100% 200% 차네요.

코노하에서도 이래서 이사를 했어요...

무슨 문제인 걸까요..

 

20170313_vultr_cpu.png

  • profile
    이전하면서 많이 사용하니 CPU점유율이 높은게 당연한거 아닐까요.
  • profile profile

    이전은 아침에 했고... 지금 오전인데 cpu 점유율이 100% 이상이라서요;
    이전 서버에서도 같은 현상 때문에 이전을 했었는데.. @_@;;

    이런 오류가 나오더라고요?;

     

    <!--
    [2017-03-12 22:01:40]

    Request / Response
    ==================
    Request Method:      GET
    Request Body Size:   0
    Response Method:     HTML
    Response Body Size:  170748

    Page Generation Time
    ====================
    Total Time:              0.3986 sec
    Template Compile Time:   0.0318 sec (count: 13)
    XML Parsing Time:        0.0082 sec
    DB Query Time:           0.0061 sec (count: 10)
    DB Processing Time:      0.0051 sec
    Layout Processing Time:  0.0005 sec
    Widget Processing Time:  0.0016 sec
    Remote Request Time:     0.0000 sec
    Content Transform Time:  0.0013 sec

    Resource Usage
    ==============
    Peak Memory Usage:  6.0 MB
    Included Files:     347

    Debug Entries
    =============
    None

    PHP Errors and Warnings
    =======================
    01. Warning: Creating default object from empty value
        - widgets/point_status/point_status.class.php line 32
        - modules/widget/widget.controller.php line 390
        - modules/widget/widget.controller.php line 471
        - modules/widget/widget.controller.php line 288
        -  line 0
        - modules/widget/widget.controller.php line 266
        - modules/widget/widget.controller.php line 249
        - classes/module/ModuleHandler.class.php line 1297
        - classes/display/DisplayHandler.class.php line 63
        - classes/module/ModuleHandler.class.php line 1124
        - index.php line 58
    02. Warning: Creating default object from empty value
        - widgets/point_status/point_status.class.php line 32
        - modules/widget/widget.controller.php line 390
        - modules/widget/widget.controller.php line 471
        - modules/widget/widget.controller.php line 288
        -  line 0
        - modules/widget/widget.controller.php line 266
        - modules/widget/widget.controller.php line 249
        - classes/module/ModuleHandler.class.php line 1297
        - classes/display/DisplayHandler.class.php line 63
        - classes/module/ModuleHandler.class.php line 1124
        - index.php line 58
    03. Warning: Creating default object from empty value
        - widgets/uhachat/uhachat.class.php line 7
        - modules/widget/widget.controller.php line 390
        - modules/widget/widget.controller.php line 471
        - modules/widget/widget.controller.php line 288
        -  line 0
        - modules/widget/widget.controller.php line 266
        - modules/widget/widget.controller.php line 249
        - classes/module/ModuleHandler.class.php line 1297
        - classes/display/DisplayHandler.class.php line 63
        - classes/module/ModuleHandler.class.php line 1124
        - index.php line 58

    Database Queries
    ================
    01. SELECT `documents`.`title`, `documents`.`nick_name`, `documents`.`regdate`, `documents`.`readed_count`, `documents`.`is_notice`, `documents`.`document_srl`, `documents`.`module_srl`, `documents`.`category_srl`, `documents`.`lang_code`, `documents`.`member_srl`, `documents`.`last_update`, `documents`.`comment_count`, `documents`.`trackback_count`, `documents`.`uploaded_count`, `documents`.`status`, `documents`.`title_bold`, `documents`.`title_color`  FROM `xe_documents` as `documents`   WHERE ( `module_srl` in (?) and `is_notice` = 'Y' ) and `list_order` <= 2100000000    ORDER BY `list_order` asc 
        - Caller:      modules/document/document.model.php line 358 (documentModel->getNoticeList)
        - Connection:  master (127.0.0.1)
        - Query ID:    document.getNoticeList
        - Query Time:  0.0012 sec
        - Result:      success
    02. SELECT *  FROM `xe_document_extra_vars` as `extra_vars`   WHERE `extra_vars`.`module_srl` >= -1 and `extra_vars`.`document_srl` in (?,?,?,?) and `extra_vars`.`var_idx` >= -2    
        - Caller:      modules/document/document.model.php line 45 (documentModel->getDocumentExtraVarsFromDB)
        - Connection:  master (127.0.0.1)
        - Query ID:    document.getDocumentExtraVars
        - Query Time:  0.0003 sec
        - Result:      success
    03. select count(*) as "count" FROM `xe_documents` as `documents`   WHERE `module_srl` in (?) and `status` in (?,?)
        - Caller:      modules/document/document.model.php line 291 (documentModel->getDocumentList)
        - Connection:  master (127.0.0.1)
        - Query ID:    document.getDocumentList
        - Query Time:  0.0006 sec
        - Result:      success
    04. SELECT `documents`.`title`, `documents`.`nick_name`, `documents`.`regdate`, `documents`.`readed_count`, `documents`.`is_notice`, `documents`.`document_srl`, `documents`.`module_srl`, `documents`.`category_srl`, `documents`.`lang_code`, `documents`.`member_srl`, `documents`.`last_update`, `documents`.`comment_count`, `documents`.`trackback_count`, `documents`.`uploaded_count`, `documents`.`status`, `documents`.`title_bold`, `documents`.`title_color`  FROM `xe_documents` as `documents`   WHERE ( `module_srl` in (?) and `status` in (?,?) ) and `list_order` <= 2100000000   ORDER BY `list_order` asc  LIMIT 0, 20
        - Caller:      modules/document/document.model.php line 291 (documentModel->getDocumentList)
        - Connection:  master (127.0.0.1)
        - Query ID:    document.getDocumentList
        - Query Time:  0.0009 sec
        - Result:      success
    05. SELECT `config`  FROM `xe_module_config` as `module_config`   WHERE `module` = ? and `site_srl` = ?    
        - Caller:      modules/module/module.model.php line 1317 (moduleModel->getModuleConfig)
        - Connection:  master (127.0.0.1)
        - Query ID:    module.getModuleConfig
        - Query Time:  0.0004 sec
        - Result:      success
    06. SELECT *  FROM `xe_menu` as `menu`   WHERE `menu_srl` = ?    
        - Caller:      modules/menu/menu.admin.controller.php line 1757 (menuAdminController->makeXmlFile)
        - Connection:  master (127.0.0.1)
        - Query ID:    menu.getMenu
        - Query Time:  0.0004 sec
        - Result:      success
    07. SELECT *  FROM `xe_menu_item` as `menu_item`   WHERE `menu_srl` = ?    ORDER BY `listorder` desc 
        - Caller:      modules/menu/menu.admin.controller.php line 1771 (menuAdminController->makeXmlFile)
        - Connection:  master (127.0.0.1)
        - Query ID:    menu.getMenuItems
        - Query Time:  0.0003 sec
        - Result:      success
    08. SELECT *  FROM `xe_menu` as `menu`   WHERE `menu_srl` = ?    
        - Caller:      modules/menu/menu.admin.controller.php line 1757 (menuAdminController->makeXmlFile)
        - Connection:  master (127.0.0.1)
        - Query ID:    menu.getMenu
        - Query Time:  0.0007 sec
        - Result:      success
    09. SELECT *  FROM `xe_menu_item` as `menu_item`   WHERE `menu_srl` = ?    ORDER BY `listorder` desc 
        - Caller:      modules/menu/menu.admin.controller.php line 1771 (menuAdminController->makeXmlFile)
        - Connection:  master (127.0.0.1)
        - Query ID:    menu.getMenuItems
        - Query Time:  0.0007 sec
        - Result:      success
    10. SELECT `config`  FROM `xe_module_config` as `module_config`   WHERE `module` = ? and `site_srl` = ?    
        - Caller:      modules/module/module.model.php line 1317 (moduleModel->getModuleConfig)
        - Connection:  master (127.0.0.1)
        - Query ID:    module.getModuleConfig
        - Query Time:  0.0006 sec
        - Result:      success

    Slow Queries
    ============
    None

    Slow Triggers
    =============
    None

    Slow Widgets
    ============
    None

    Slow Remote Requests
    ====================
    None

    -->

  • profile profile
    워닝은 오류가 아닙니다.
  • profile

    CPU 점유율이 주황색 트래픽 그래프에 정비례하는 모양을 보여주고 있네요.

    트래픽이 저 정도 나오는 사이트에서 특별히 서버를 최적화하지 않았다면 정상으로 보입니다.

    어제 4코어라고 하지 않으셨나요? 4코어 중 250%(2.5코어) 쓰는 게 문제인가요?

  • profile profile
    아하. 그런 거군요. 그래서 어제 cpu 가 2개일 때는 문제가 됐고..
    지금은 4코어라서 괜찮은거군요;
    서버를 최적화하지 않아서 그랬던거군요;