пятница, 28 декабря 2007 г.

LoadRunner - проблемы мониторинга UNIX ресурсов

Проблема 1 - Cannot initialize the monitoring on unixpc

Во время проведения нагрузочного тестирования, при попытке снять показания с UNIX сервера с помощью "UNIX Resources" монитора в LoadRunner Controller, зачастую получаем ошибку:

Monitor name :UNIX Resources. Cannot initialize the monitoring on unixpc. Error while creating the RPC client. Ensure that the machine can be connected and that it runs the rstat daemon (use rpcinfo utility for this verification). Detailed error: RPC: Failed to create RPC client.
RPC-TCP: Failed to establish RPC server address.

RPC-TCP: RPC Server <100001,> is not registered on host 'unixpc'. (entry point: CFactory::Initialize). [MsgId: MMSG-47190]

Решение

To be able to perform monitoring of UNIX resources an additional daemon is needed on the this machine. It's supposed to be places in /etc/netd.conf

"rstatd" - preferable set it to autostart.

После включения необходимого daemon LoadRunner начнет без проблем мониторить ресурсы UNIX сервера.


Проблема 2 - Internal rpc error (error code:2)

При измерении системных ресурсов Unix, система до какого-то периода снимает данные с rstat демона, потом резко перестает это делать, выдавая ошибку:

Monitor name :UNIX Resources. Internal rpc error (error code:2). Machine: some IP Hint: Check that RPC on this machine is up and running. Check that rstat daemon on this machine is up and running (use rpcinfo utility for this verification). Details: RPC: RPC call failed.

Решение

To configure the rstatd daemon:
Run the command: su root
Go to /etc/inetd.conf and look for the rstatd row (it begins with the word rstatd). If it is commented out (with a #), remove the comment directive, and save the file.
From the command line, run: kill -1 inet_pid
where inet_pid is the pid of the inetd process. This instructs the inetd to rescan the /etc/inetd.conf file and register all daemons which are uncommented, including the rstatd daemon.

Run rup again. If the command still does not indicate that the rstatd daemon is configured, contact your system administrator.

Note 1: To monitor a UNIX machine through a firewall, you must run a UNIX utility called rpcinfo and identify the rstatd's port number. By running rpcinfo -p <hostname>, you will receive a list of all RPC servers registered in the host's portmapper, along with the port number. This list will not change until rstatd is stopped and rerun.

Some firewalls allow you to open an RPC program number instead of a port. In such cases, open program 100001. If are prompted to include a version number, specify versions 3 and 4. You have only to find the port to which it is listening.

Note 2: rpcinfo probably no more exist, so you can try to use rpcbind


Отправить комментарий

Условия копирования публикаций:

Все публикации в данном блоге являются частной собственностью авторов. Любое копирование информации допускается только при условии указания имени автора и активной ссылки на источник.