I have an app that launches, sends data to a server, then shutdowns. Around 25% of the time that process takes double the amount of time to complete. The network is closed off, and when I do similar tests with other software, the transfers always complete within a very short timeframe of each other, so I'm pretty confident it's an issue with my software.
I've done many, many captures with Performance Monitor and nothing stands out, other than everything just being slower. For example, during a "normal" transfer, "% Processor Time" is around 7%. During a slowwer transfer, it drops to ~4%. Similarly, transfer speed is 55MB/sec when normal, and 30MB/sec when slow.
It seems like I've analyzed all data and I just can't seem to figure out what the root cause of the slowdown is.
Any suggestions, or tools that I might try to help narrow down the cause?
(The app is C++; runs on Windows 2008 and Windows 7, with the same problem apparent on both.)
Thanks!