09-25-2003 08:26 AM
Blog for (mostly LabVIEW) programmers: Tips And Tricks
09-26-2003 07:37 AM
09-26-2003 08:24 AM
In effect, that's what I'm doing - the slave opens a connection, writes to it, and closes it, checking for an error. If an error occurs, I attempt the operation again, some time later.
You may want to view which ports are open on your system.�
How can I best do that? I have used TCPView from SysInternals - it shows a lot of connections (to the ports I am using: 1100-1106) in the CLOSE_WAIT state - what does that mean? A lot of other connections are in the FIN_WAIT2 state - what does that mean?
Those go away (from the TCPView list) when I quit my program. However, there are a LOT of connections left in the TIME_WAIT state after I quit - what does that mean?
I just ran a job and aborted it - there were no errors in the log - everything worked fine. But the nature of the symptoms makes me think it's a resource being consumed.
I ran a full case last night - it completed OK, but the errors started after about four hours of running, and got more and more frequent as it progressed. I had changed all my CLOSE CONNECTION operations to NOT look at the ERROR IN cluster - it made no difference.
UPDATE: All the TIME_WAIT connections just turned red (in TCPView) and disappeared - about 5 minutes after my program stopped.
I am considering re-vamping the comm scheme to open a connection between a master and a slave and keep it open. That increases the amount of traffic for me, but reduces the number of open/closes.
Do you have any opinion on that?
The issues that I ran into were that the receiving device would eventually have no ports available to open up, or there was a physical problem with the hub or wiring."
Given that I'm sending from one process to another ON THE SAME MACHINE, I don't think a physical problem is it.
I actually don't understand the port usage, and why, when I ask for a connection on port 1101, the other end is at port 4357 or something.
Blog for (mostly LabVIEW) programmers: Tips And Tricks
09-26-2003 09:03 AM
Blog for (mostly LabVIEW) programmers: Tips And Tricks