性能压力测试时busy pot

2025-10-17T11:33:57.439289+08:00 [warning] msg: busy_port, portinfo: [{port,#Port<0.51290>},{name,“tcp_inet”},{links,[<0.167556.0>]},{id,410320},{connected,<0.167556.0>},{input,0},{output,11980989971},{os_pid,undefined}], procinfo: [{pid,<0.167556.0>},{memory,426784},{total_heap_size,53202},{heap_size,6772},{stack_size,8},{min_heap_size,233},{proc_lib_initial_call,{emqx_connection,init,[‘Argument__1’,‘Argument__2’,‘Argument__3’,‘Argument__4’]}},{initial_call,{proc_lib,init_p,5}},{current_stacktrace,[{emqx_connection,recvloop,2,[{file,“emqx_connection.erl”},{line,415}]},{emqx_connection,recvloop,2,[{file,“emqx_connection.erl”},{line,415}]},{proc_lib,wake_up,3,[{file,“proc_lib.erl”},{line,251}]}]},{registered_name,},{status,running},{message_queue_len,0},{group_leader,<0.2440.0>},{priority,normal},{trap_exit,false},{reductions,9217945375},{last_calls,false},{catchlevel,1},{trace,0},{suspending,},{sequential_trace_token,},{error_handler,error_handler}]
1500个客户端,emqx每秒流入的消息条数是20000条/s
想咨询下,可以通过调整emqx配置解决次问题嘛

不能,单条tcp连接是有处理极限的,持续施压只会让他爆掉
用共享订阅分担一下压力