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

Popular posts from this blog

c# - SignalR: "Protocol error: Unknown transport." when navigating to hub -

class - Kivy: how to instantiate a dynamic classes in python -

java - Algorithm negotiation fail SSH in Jenkins -