Investigating qRFC problems in SAP
SMQ1 for outbound
SMQ2 for inbound
SMQR for the inbound scheduler
It is possible to automatically reset the QRFC queues if safe in your installation.
You need to run RSQIWKEX periodically and also make sure that
MONITOR QRFC_RESTART_ALLOWED is set to 1 in sxmb_adm -> integration engine configuration
For entries with SMQ1 you need to use report RSQOWKEX
For entries with SM58 (tRFC)use RSARFCEX