Jim,
Depending on the rate that your SAP system generates IDOCs it might be unavoidable that some will be processed by the retry mechanism of SM58.
For example, if you system has 5 SAP app servers, running on different hosts and leveraging massive resources, all generating IDOCs using the same port/rfc, couple SAP adapters will not be enough for you.
However, I encourage you to upgrade to the just released ESAP4.2 SP6.
You can get it here in advantage.
It provides multithreaded ALES and ALEC adapters, performance optimizations, and run time logging based on log4j.
The first time you start it, the adapter will generate default log4j.properties files. You can edit those without restarting the adapter. Please read the documentation in the Readme for SP5/SP6.
You can view in the logs some performance numbers about the adapter if you set the line 18 of the log4j.properties as such:
log4j.logger.COM.activesw.adapter.sap=DEBUG
This should help you find possible bottlenecks in your set up.
You can still run multiple instances of the same adapter, but you can configure them to be multithreaded. By allocating the right amount of resources( memory, threads) you will not have any SM58 backing up issues any longer.
For any issues with the SP6 you can email to me at: vasilis@webmethods.com
#webMethods#Integration-Server-and-ESB#Adapters-and-E-Standards