Slow performance over network (Ubuntu)
Posted
by
Filipe Santos
on Server Fault
See other posts from Server Fault
or by Filipe Santos
Published on 2012-03-19T21:15:20Z
Indexed on
2012/03/19
23:31 UTC
Read the original article
Hit count: 327
ubuntu
|Performance
i did setup this NodeJs TCP Server and tested it with a message flooder. Just to see how the performance of the server is.
While the message throughput is great if i run the server and the message flooder on the same computer (ubuntu), the throughput dramaticaly decreases if i start the server on computer1(ubuntu1) and the message flooder on computer2(also ubuntu). Both PC are on the same network. In fact, they are directly connected to each other.
I started searching the internet for reasons and i suppose i need to tune TCP on both Ubuntu-pcs but until now i haven't been successfull at all.
Has anyone experienced such problems, or could someone help me out?
Thanks
Here the flooding code:
var net=require('net')
var client = net.createConnection(5000, "10.0.0.2")
client.addListener("connect", function(){
for(var i = 0; i < 1000; i++) {
client.write("message ");
}
})
© Server Fault or respective owner