Error: Failed to send data by channels - post message failed in Loadrunner

空扰寡人 提交于 2020-01-05 07:24:36

问题


I used LR for performance testing and encountered the below error:

Error: Failed to send data by channels - post message failed.

Does such error indicate agents number bottleneck? If so, I just need to add agents, right?

Thanks for the tips.


回答1:


The error occurs on the Load Generator machine(s) when one of the threads under lr_bridge.exe that updates the eve files is not getting enough CPU time slice to be able to send events to the Controller. Enabling an additional flag in the mdrv.dat file on the LG machine will maintain the read and write threads for the eve files on the same main thread, thus allowing it to have all the CPU time needed.

To fix this issue :

Disable Web Diagnostics for J2EE/.NET. If the behavior remains, go through the next steps.

On all of the Load Generator machines where the Vusers are being executed, edit the \dat\mdrv.dat file by adding the line listed below in bold:

[lr_trans_server]

ExtPriorityType=transaction_server

WINNT_EXT_LIBS=trans_server.dll

WIN95_EXT_LIBS=trans_server.dll

LINUX_EXT_LIBS=libtrans_server.so

SOLARIS_EXT_LIBS=libtrans_server.so

HPUX_EXT_LIBS=libtrans_server.sl

AIX_EXT_LIBS=libtrans_server.so

LibCfgFunc=TransactionServer_configure

GetLoaderInterfaceFunc=get_ts_interface

AddLoaderClientInterfaceFunc=add_ts_client_interface

GetLoaderCommandLine=trans_server_extra_ext

Loader=1

ExtMessageQueue=0

SecurityMode=On

ExtCmdLineOverwrite=-eve_thread_run_on_main_thread

Save the changes in the mdrv.dat file then re-run the load test.



来源:https://stackoverflow.com/questions/26457896/error-failed-to-send-data-by-channels-post-message-failed-in-loadrunner

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!