知識點小結

通過 ulimit 改善系統性能
http://www.ibm.com/developerworks/cn/linux/l-cn-ulimit/
linux網絡故障基本的排錯步驟

  1. ping 127.0.0.1,ping的通說明tcp協議棧沒有問題
  2. ping 主機地址 ,ping的通說明網卡沒有問題
  3. ping 路由器默認網關 ,ping的通說明包可以到達路由器
  4. ping DNS服務器地址

添加默認網關,路由

route add default gw xxx.xxx.xxx.xxx eth0
route add -net 192.168.1.0/24 gw xxx.xxx.xxx.xxx eth1

刪除默認路由:

route del default gw xxx.xxx.xxx.xxx

free命令
這裏寫圖片描述
壓力測試結果
這裏寫圖片描述

  • Document Length # 請求的頁面大小
  • Concurrency Level # 併發量
  • Time taken for tests # 測試總共耗時
  • Complete requests # 完成的請求
  • Failed requests # 失敗的請求
  • Write errors: # 錯誤
  • Total transferred # 總共傳輸數據量
  • Requests per second # 吞吐率,每秒鐘服務器處理的請求量(測試頁面的響應速度)等於complete requests/Time taken for tests
  • Time per request #用戶平均請求等待時間,等於Time taken for tests/(complete requests/concurrency level)
  • Time per request (mean, across all concurrent requests)
    # 服務器平均請求處理時間,在併發量爲1時與用戶平均請求等待時間相同,等於 Time taken for tests/complete requests
    同時也等於Time per request/concurrency level
  • Transfer rate # 單位時間內從服務器獲取的數據長度,平均每秒多少K,即帶寬速率

    一臺服務器上跑多個tomcat需要修改端口信息

[root@localhost ~]# vim /tomcat/conf/server.xml
Server port="8005"
Connector port="8009"

這裏寫圖片描述
這裏寫圖片描述

發佈了88 篇原創文章 · 獲贊 17 · 訪問量 17萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章