Tag Archives: performance testing

Two Way Communication Error: Function two_way_comm_post_message / two_way_comm_post_message_ex faile

Fangfa project scenario:

lr runs 1000 concurrent operations for 20 minutes, and some errors occur during execution


Problem description

The error message is as follows: a small number of errors are reported as follows:

Error: Two Way Communication Error: Function two_way_comm_post_message / two_way_comm_post_message_ex failed.

Error: Failed to deliver a p2p message from parent to child process, reason - communication error.

 


Cause analysis:

Generally, there is no specific prompt information. Considering that it is a problem with the press, the concurrency is too large to handle


Solution:

Method 1: You need to modify the dat file in two locations

1. C:\Program Files (x86)\HP\LoadRunner\launch_service\dat\channel_configure.dat

2. C:\Program Files (x86)\HP\LoadRunner\dat\channel_configure.dat

Method 2: Add a press.

[Solved] prometheus Startup Error: opening storage failed

Modify prometheus.yml file and failed to start:

1. Configuring prometheus + node_exporter monitoring, the solution to the failure to start after modifying the prometheus.yml file.
2. Error message 1: err=”opening storage failed: lock DB directory: resource temporarily unavailable”

Solution: Check whether the current directory has generated files plus data/lock, need to delete the lock file: rm -rf lock
Delete and restart again

error message 2:err= “error starting web server: listen TCP 0.0.0:9090: bind: address ready in use”
installation command: yum install lsof -y
view command: lsof -i:9090
end command: kill -9 2878
restart command: ./prometheus
restart succeeded after operation

 

How to Solve Loadrunner Error: Failed to find .cfg file

Solution:

Copy the following three files from other available scripts to the folder of error reporting scripts:

default.cfg

default.usp

*. PRM (change the position of * to the name of the error reporting script)

Reason: after the script is opened, the disk space is cleaned up, resulting in some script files being cleaned up as spam, so do not clean up the disk space after the script is opened

LoadRunner error — memory violation: exception access_ Solution

Recently, I was doing the performance test of file download. I used LoadRunner tool to report “error: C interpreter run time error: action. C (1613): error – memory violation: exception access” after running for several times_ VIOLATION received.”。 After careful review of the script and scenario analysis, it is found that: in the fopen method of the script, the file operation mode is “W +”, and Encyclopedia:
W + reads and writes in plain text mode, while WB + reads and writes in binary mode.
W + open the read-write file. If the file exists, the length of the file will be zero, that is, the content of the file will disappear. If the file does not exist, the file is created.
Open or create a new binary file in WB write only mode, and only write data is allowed.
WB + read/write mode opens or creates a binary file that allows reading and writing.
The image file I downloaded belongs to binary file,
all the files that must be read and written with WB +, namely fopen (file, “WB +”);
test again, and the error will no longer appear.
Note: if you are using plain text files, you can use w +, if you are downloading binary files, you must use WB mode.

Error: JMeter monitors Linux system performance java.net.ConnectException : Connection timed out: connect

Question:

JMeter monitors Linux system performance and reports an error:

ERROR: java.net.ConnectException : Connection timed out: connect

reason:

Before the Linux system firewall opened

terms of settlement:

Enter the/usr/bin directory and execute the command/bin/systemctl stop iptables.service Turn off firewall

Problem solving

Note: this method is only for the above problems, other reasons please find other methods, thank you.