-
Couldn't load subscription status.
- Fork 41.6k
Provide a configuration property for configuring Tomcat's processor cache #15054
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
1cd39dd
11d0b1d
24fc4b5
dc5eb3d
272fe58
87955a1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -56,6 +56,7 @@ | |
| * @author Brian Clozel | ||
| * @author Olivier Lamy | ||
| * @author Chentao Qu | ||
| * @author Artsiom Yudovin | ||
| */ | ||
| @ConfigurationProperties(prefix = "server", ignoreUnknownFields = true) | ||
| public class ServerProperties { | ||
|
|
@@ -381,6 +382,19 @@ public static class Tomcat { | |
| */ | ||
| private final Resource resource = new Resource(); | ||
|
|
||
| /** | ||
| * Configuring processor cache. | ||
| */ | ||
| private int processorCache = 200; | ||
|
||
|
|
||
| public int getProcessorCache() { | ||
|
||
| return this.processorCache; | ||
| } | ||
|
|
||
| public void setProcessorCache(int processorCache) { | ||
| this.processorCache = processorCache; | ||
| } | ||
|
|
||
| public int getMaxThreads() { | ||
| return this.maxThreads; | ||
| } | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -280,6 +280,12 @@ public void testCustomizeMinSpareThreads() { | |
| assertThat(this.serverProperties.getTomcat().getMinSpareThreads()).isEqualTo(10); | ||
| } | ||
|
|
||
| @Test | ||
|
||
| public void testCustomizeProcessorCache() { | ||
| bind("server.tomcat.processor-cache=100"); | ||
| assertThat(this.serverProperties.getTomcat().getProcessorCache()).isEqualTo(100); | ||
| } | ||
|
|
||
| @Test | ||
| public void accessLogBufferingCanBeDisabled() { | ||
| bind("server.tomcat.accesslog.enabled=true", | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -284,6 +284,7 @@ content into your application. Rather, pick only the properties that you need. | |
| server.tomcat.resource.cache-ttl= # Time-to-live of the static resource cache. | ||
| server.tomcat.uri-encoding=UTF-8 # Character encoding to use to decode the URI. | ||
| server.tomcat.use-relative-redirects= # Whether HTTP 1.1 and later location headers generated by a call to sendRedirect will use relative or absolute redirects. | ||
| server.tomcat.processor-cache= # Custom value for Tomcat's processor cache. | ||
|
||
| server.undertow.accesslog.dir= # Undertow access log directory. | ||
| server.undertow.accesslog.enabled=false # Whether to enable the access log. | ||
| server.undertow.accesslog.pattern=common # Format pattern for access logs. | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please polish the property description?