I am working on java web application. I calling servlet by using web services from android device. When i tried to call servlet using web service from 10 to 15 devices at a time, just 2-3 devices got response remaining all applications on device are crashed. Because my servlet is by default multithreaded its failed to process all requests.
For this i tried implementing SingleThreadModel this will work successfully with 10-15 devices, but for small number of requests it ok. But for 1000 to 10000 devices its not practical to implement SingleThreadModel because it process only single request at a time meanwhile all remaining requests must have to wait in queue.
So any one suggest me any other solution other than implementing SingleThreadModel which will degrade performance of my application.