Loadrunner監控服務器資源
LoadRunner 加載監聽服務器的步驟如下:
1、在 LoadRunner Controller 下,將工作面板切換到 Run狀態,Available Graphs 欄 ,System Resources Graphs目錄下選擇 Windows Resources,雙擊,在右側4個監視欄中,選擇 Windows Resources-Last 60 sec雙擊,放大模塊,右鍵--> Add Measurements ,在新彈出的窗口中,添加 Monitored Server Machines 。(Add Machine 時,Name 一般填機器ip),然后 ok
2、添加完畢后,會看到監視欄中出現10個性能服務器的數據條。這時需要觀察Scenario Status 的狀態,如果沒有 Errors 出現,那么過一會后,會看到 Windows Resources 欄出現走動的數據,表示監聽成功;否則,出現了 Errors ,則說明監聽不成功。點擊 紅色的 Errors ,查看失敗的原因。
下面是我遇到的兩種錯誤情況:
情況1:
Monitor name :Windows Resources. Cannot connect to machine 10.0.64.152 Reason: 拒絕訪問。 Hints: Check that your login user name appears as administrator on this machine. Check that you have entered the correct machine name. Check that the machine exists and that it is online (use the ping utility for this operation). Delete the machine and add it again (entry point: CFactory::Initialize). [MsgId: MMSG-47299] |
情況2:
Monitor name :Windows Resources. Cannot connect to machine 10.0.64.152
Reason: 找不到網絡路徑。
解決方法:
情況1的解決方法,是在網上找的一些方法,嘗試了較多,不知是哪一個或哪幾個生效起作用了。(后面,會總結一個統一的解決方法)
情況2的解決方法:啟動目標服務器的 Remote Procedure Call (RPC) Locator 服務,連接成功
小結
LoadRunner 添加 Windows監聽器需要進行的相關設置(下面都是對被監視服務器的操作):
1、共享C盤;(一般情況下,C 盤是共享狀態,無需處理)
2、保證如下服務開啟:
a、Remote Procedure Call (RPC)
b、Remote Procedure Call (RPC) Locator
c、Remote Registry
d、Workstation
3、本地安全設置-->安裝設置-->本地策略-->安全選項,“網絡訪問:本地賬戶的共享和安全模式”項選擇“經典 - 本地用戶以自己的身份驗證”;
4、用戶需要在本地客戶端訪問服務器,操作方式,開始→運行→輸入服務器IP地址;
posted on 2014-06-11 11:11 順其自然EVO 閱讀(577) 評論(0) 編輯 收藏 所屬分類: loadrunner