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

python - Strange behavior using PyQt4's 'pyqtSlot' decorator before another decorator -

c# - UnhandledExceptionMode.ThrowException for AppDomain.UnhandledException -

c# - Process.Kill() returns access denied -