Changed the number of threads in server to 1. Need concurrency control to increase the thread count.