You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/reference/asciidoc/endpoint.adoc
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -517,6 +517,7 @@ public class TestConverter implements Converter<Boolean, Number> {
517
517
====
518
518
519
519
Alternately, you can use the `@Configuration` annotation, as the following example shows:
520
+
520
521
[source,java]
521
522
----
522
523
@Configuration
@@ -621,7 +622,7 @@ The preceding configuration demonstrates an out-of-tune configuration.
621
622
622
623
By default, the task executor has an unbounded task queue.
623
624
The poller keeps scheduling new tasks even though all the threads are blocked, waiting for either a new message to arrive or the timeout to expire.
624
-
Given that there are 20 threads executing tasks with a five-second timeout, they aree executed at a rate of 4 per second.
625
+
Given that there are 20 threads executing tasks with a five-second timeout, they are executed at a rate of 4 per second.
625
626
However, new tasks are being scheduled at a rate of 20 per second, so the internal queue in the task executor grows at a rate of 16 per second (while the process is idle), so we have a memory leak.
626
627
627
628
One of the ways to handle this is to set the `queue-capacity` attribute of the task executor.
0 commit comments