I am running an application (over and over again in a for loop) which is very heavyweight. I attempt to start the application via a python script.
Sometimes when I do that, I get a ERR_CONNECTION_REFUSED. Note: I am also running this on a grid machine which has several users with several processes running. If I run this application on my local machine (several times) I do not get this error.
My instinct is telling me that since the application is heavyweight, the "server" side of the application which should start right after the client is not starting on time and is being delayed.
Another hint which also points me to this direction is that I measure the time it takes for the application to start, it varies between 10 to 32 seconds.
Is there any suggestion of how I can prove that this is actually the scenario which is happening? Any tracing/process tools I can use for this?