javajerseygrizzly

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


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?


Solution

  • 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?