You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I've been conducting load tests on my code on AWS EC2 instance. This piece of code is run on multiple threads. (it executes a ruby script written by me):
begin
Subprocess.check_call(['some','command'])
rescue Subprocess::NonZeroExit => e
p e.message
end
OS: Ubuntu No of threads: 15 AWS Instance: t2.2xlarge
After some amount of time, i start noticing that most of the processes go into S state and stay there
Following is the output of top command:
Note: I have ran my tests on the same code without using subprocess (i.e. only multithreading), it works fine without any issues. However there is a requirement that I use Subprocesses.
Could you please guide as to where I am going wrong.
Is it possible that the pipe buffer is being filled? I am not using pipe buffers for my std-in/out/err and the default behavior should not be using pipe.
Thanks,
Akhilesh
The text was updated successfully, but these errors were encountered:
Hello,
I've been conducting load tests on my code on AWS EC2 instance. This piece of code is run on multiple threads. (it executes a ruby script written by me):
OS: Ubuntu
No of threads: 15
AWS Instance: t2.2xlarge
After some amount of time, i start noticing that most of the processes go into

S
state and stay thereFollowing is the output of
top
command:Note: I have ran my tests on the same code without using subprocess (i.e. only multithreading), it works fine without any issues. However there is a requirement that I use Subprocesses.
Could you please guide as to where I am going wrong.
Is it possible that the pipe buffer is being filled? I am not using pipe buffers for my std-in/out/err and the default behavior should not be using pipe.
Thanks,
Akhilesh
The text was updated successfully, but these errors were encountered: