Solution : https://service.sap.com/sap/support/notes/527481 (SAP Service marketplace login required)
Summary : 
      SAP Note addresses issues where qRFC and tRFC calls are not processed correctly due to misconfigured profile parameters, leading to various symptoms across SAP transactions such as SMQ1, SMQ2, and SM58. Key solutions involve checking and adjusting the configuration of dialog work processes, specifically ensuring that sufficient free dialog work processes are available for qRFC/tRFC processing. Additionally, it advises on setting profile parameters like 'rdisp/rfc_min_wait_dia_wp' and 'rdisp/rfc_max_own_used_wp' in transaction RZ12 to manage the distribution and processing of RFC calls effectively. Other corrective actions include registration of RFC destinations and adjustment of parameters to handle maximum connections and system resources.
Key words : 
customer component bc-mid-rfc rfc priority recommendations / additional info category consulting validity, optimizing ale distribution performance 311930   rfc resource check returns incorrect result 142419   resource distribution, processing idocs immediately 311930   rfc resource check returns incorrect result 399271   cua, optimizing ale distribution performance 142419   resource distribution, 'rdisp/wp_no_dia' minus 'rdisp/rfc_min_wait_dia_wp' dialog work processes, processing idocs immediately 1118297   xi runtime, 50 dia  000 100 bwremote r4  7 delete session 001, trfc/qrfc configuration 400330   outbound scheduler/qout scheduler, serial idoc processing 1118297   xi runtime, operating system call recv failed
Related Notes : 
       
| 1333417 | Performance problems when processing IDocs immediately | 
| 1118297 | XI runtime: QRFC processing of messages | 
| 888279 | Regulating/distributing the workflow load | 
| 830576 | Parameter recommendations for Oracle 10g | 
| 804548 | Transaction recorded in SM58 in connection with SAP DB | 
| 737241 | ARFCRESERV column in ARFCSTATE table is blank | 
| 557610 | |
| 484753 | Importance of entry categories in SMQS | 
| 400330 | Outbound Scheduler/qOUT Scheduler | 
| 399271 | |
| 311930 | RFC resource check returns incorrect result | 
| 142419 | Resource distribution for RFC and tRFC/qRFC configuration |