Sorry, but I canβt tell you what is happening, but I have a couple of comments ... First I would output sql, see if it has a lot of connections and / or hits a table (file) with a lot of records. If you really want to dig into your choice profiler (I use Ants Profiler) and try to find a profiler for 400 - see What server resources are, as well as the actual request after it passes through the odbc driver.
I have worked with asp.net and as400 several times, and the way I was most successful actually uses a SQL server with an associated server with AS400. I created a view to simplify the job of hiding the weird names of as400 names. In my scenario, it worked well, because the application in any case needed to retrieve information from the sql server.
I thought I mentioned this if that helps ... good luck.
Dave gorman
source share