I have a vb.net 2003 program that makes an ODBC connection to an AS400 then it performs an insert query to put a single record in a table.
In testing it works perfectly. But in production from time to time it hangs up. I believe it may have something to do with the state of the AS400. When it hangs up I believe that the AS400 has really high CPU usage. Probably at or near 100%.
As you can imagine this is difficult to test. I was just wondering if there is anything I can do from VB side to further validate the connection?
If there really is no connection, then it fails in 30 seconds. However, in this high cpu state I believe it is making connection but the 400 won't process the query, becuase of this it may persist for 30 minutes or more. In some cases it has eventually gone thru. Most of the time it is assumed it is hung up and the program is manually ended. Is there way to regulate the timing of the connection?
Thanks for any ideas?
Simi
In testing it works perfectly. But in production from time to time it hangs up. I believe it may have something to do with the state of the AS400. When it hangs up I believe that the AS400 has really high CPU usage. Probably at or near 100%.
As you can imagine this is difficult to test. I was just wondering if there is anything I can do from VB side to further validate the connection?
If there really is no connection, then it fails in 30 seconds. However, in this high cpu state I believe it is making connection but the 400 won't process the query, becuase of this it may persist for 30 minutes or more. In some cases it has eventually gone thru. Most of the time it is assumed it is hung up and the program is manually ended. Is there way to regulate the timing of the connection?
Thanks for any ideas?
Simi