java - Blocking FixedThreadPool -
I have an application that uses a fixedTrappull with 10 threads to run database queries if a constant high It starts using significant amount of memory to query the number and begins to take more time to execute the questions.
Is there a way to create a FixedThreadPool block in all threads, or when the queue reaches a certain size so that I do not end up with this problem?
Comments
Post a Comment