Fix the connection number and use long value for msg/s and bytes/s in
dynamic partition algorithm