I am running a tornado client-side application on AWS EC2 with a Linux t2.micro instance which includes 1 vCPU and 1 GiB of RAM. I have noticed that I the application performance and speed slows after 75 simultaneous HTTP connections.
Considering that tornado runs on a single process-thread (using an event loop asynchronous architecture) - I am wondering if upgrading to an AWS t2.medium instance with 2 vCPU's would actually help.
In theory, can a single process with a single thread be run on two CPU's? Or is Amazon's vCPU not a real CPU and just a measurement of processing power?
topcommand and I see that the process is using 72% memory. That is the optimal usage that I know from profiling my code with timestamps - and also looking at throughput which is optimal at that point with 75 HTTP connections. I am also not doing any processing that would take up any more memory at all. But I just want to know if having a second vCPU would help or not considering that tornado is a single process/thread framework. Or if having more RAM would help. - etayluz