puniverse / comsat

Fibers and actors for web development
docs.paralleluniverse.co/comsat
Other
598 stars 103 forks source link

FiberHttpClient(ApacheHttpClient) with Spring Boot integration test get Error `java.net.SocketException: Too many open files` #79

Closed tigerMoon closed 8 years ago

tigerMoon commented 8 years ago

Here is the detail code in Github

tigerMoon commented 8 years ago

@circlespainter can you help me .thank you.

pron commented 8 years ago

Hi. Are the requests even running inside fibers? You can test by calling Fiber.currentFiber() from within requests. It seems like you haven't enabled fibers in your application at all. See the documentation for how to do it.

tigerMoon commented 8 years ago

than you pron. this is the bug of my configuration of HttpClient. i had set a large IO thread number . @Value("${fiber.http.client.io.thread:1000}") . which occupies the system resource.

I have used Comsat and Quasar in our production for concurrency http request. it`s so cool.

pron commented 8 years ago

Glad you've solved this.