Sent many requests asynchonized to http server but it only serves a few request at a time

133 Views Asked by At

I'm facing to this issue: I have a grizzly embedded http server running. By sending 200 asynchronous requests to the server (using ExecutorService in java), I thought it would serve all these request at a time but I release that the server only serves 8 request in a time and no error thrown. Please give me an explaination for this. Do I misunderstanding anything?

1

There are 1 best solutions below

4
chunlong wang On BEST ANSWER

Are you sure that all requests have arrived at the server? Do you release resources after the program is processed? If you send multiple requests at the same time and exceed the program's tolerance limit, you will wait. Have you done all these controls?