Re: setting packetSize for ajp connector in embedded tomcat via commandline system property
On Tue, Aug 22, 2017 at 7:06 PM, Christopher Schultz < ch...@christopherschultz.net> wrote: > If you are using Spring Boot, then you might want to ask the Spring > Boot community. Perhaps someone here can answer your question, but > most of us (myself included) can't. > The idea of that framework is to take over the Tomcat configuration. So then, they have to replicate the entire thing, which isn't going to happen. Using Spring Boot, if you have "complex" needs, is going to be much more difficult than writing code yourself to use Tomcat embedded. Actually, I'm pretty sure SpringB offers an extension point to write your class to access their Tomcat embedded instance. But most definitely, you have to forget about the "configuration" SB provides, it's simply a gimmick. Rémy
Re: setting packetSize for ajp connector in embedded tomcat via commandline system property
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Jim, On 8/22/17 2:03 PM, Johnson, Jim wrote: >> What led you to believe that there was a particular system >> property that had any effect? > > Because I've seen other properties such as: > > server.tomcat.connector.max-post-size= > server.max-http-header-size=XX server.use-forward-headers=true > server.ajp.port= Those aren't anything that Tomcat itself understands. Those must be Spring Boot configuration settings. > And I guess honestly, I was hoping that perhaps there was some > standard that if it's a configurable option in an AJP Connector > stanza, then there's a corresponding command line system property > that can be used instead. This line of thinking of course would > require that Spring Boot was using some "official" embedded Tomcat > code that had a zillion options all ready to be used but as I read > through your response, it's dawning on me that my line of thinking > is completely off. It was a reasonable assumption... it just happens to be incorrect :) > That it's really up to the developer of the spring boot app I'm > using to put into their code whatever options or settings that they > need tomcat to use. Correct. One of the problems with properties like those you describe is that they suppose that there is only *one* configuration for e.g. a connector. Tomcat can support an arbitrary number of connectors, each with separate port numbers, AJP header sizes, etc. so to properly-support Tomcat's full capabilities, you'd need to have properties like: server.tomcat.connector.1.max-post-size=XXX server.tomcat.connector.1.max-http-header-size=x etc. > If their code doesn’t use AJP or do anything with server.ajp.port, > then no matter how hard I try, I'll never get an AJP connector to > work. Exactly. > I think I get it now. My apologies, this is my first stint doing > sysadmin work with embed and I've been treating it like a full > blown Tomcat instance that comes with everything turned off, but > still included, thinking I need to supply all these different > arguments to turn stuff on. It's more like it's available but not > included - the developer needs to supply the code to turn on the > tomcat feature. Correct. If Spring Boot is being used, then SB needs to supply the configuration details to Tomcat, and their documentation should tell you how to specify them. It's possible a particular setting isn't supported (yet) and needs to be added to Spring Boot. Hope that helps, - -chris -BEGIN PGP SIGNATURE- Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCAAGBQJZnIcjAAoJEBzwKT+lPKRYGeIQAKLnJnlwZGzXNVuNIGLuUaL7 JL6tgRJ99yX2yClERWTzPPjhLNkNRORFbwQuAOTXOhpeOnAOnqPdcYLVKNi3bx51 zxH/DwK/vnIj4MfkKRD+h6SeaApeb0mZUuqn7Ds1cE0Gspkj3935X7yQwLWUQgM6 bTw/DpAXOzL/COjQK6wAxxYHqNKVGGOliJcLpi7URjjUE8nqLt7/Sx33xs/X8rt5 nL/o+LhVcJM3DjUpF9Y/VbwglltUgZCvoOKyDAdB2uKP24qniipNwt3XHA7jtTSg n8biWkod3ksPbWJvt/gRUkIbgQioW7xU3xTr47U48eOFtEKrgUm1o2KWwJrfIwVT zoyqWfyFxuPJPVK+JcmCxwxCwyII/psG7LK2ui82SVy8Hn1wuC53HQI0bGuHvi0B Si2hRaSXWzqueS8Ji8SFgrhz6i9J6Yac1Twj4tuhaTmdKfu8XYeRmCHS/JUWM/T7 pzavMTlekV3nvGJ/Gtp0DDuW8K1xCm0yZIbxBpzYXj79SSawzMy8cmlQDyPfzGCI RIxn7ePhB7EpDlIbvhqos1Ajv7suy3lV4RXeVIrdvUgmvJpITJ/HUJIDwaDEG1P6 fEWm6pe8AdnSmyK/wng2Psvabj5tDUHV/faVGeC1uSaw7/oWpMdX+DwufhSDfGhY GdPuTP4dCBaiIfb0KnLU =cux+ -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: setting packetSize for ajp connector in embedded tomcat via commandline system property
Hi Chris, > What led you to believe that there was a particular system property that had > any effect? Because I've seen other properties such as: server.tomcat.connector.max-post-size= server.max-http-header-size=XX server.use-forward-headers=true server.ajp.port= And I guess honestly, I was hoping that perhaps there was some standard that if it's a configurable option in an AJP Connector stanza, then there's a corresponding command line system property that can be used instead. This line of thinking of course would require that Spring Boot was using some "official" embedded Tomcat code that had a zillion options all ready to be used but as I read through your response, it's dawning on me that my line of thinking is completely off. That it's really up to the developer of the spring boot app I'm using to put into their code whatever options or settings that they need tomcat to use. If their code doesn’t use AJP or do anything with server.ajp.port, then no matter how hard I try, I'll never get an AJP connector to work. I think I get it now. My apologies, this is my first stint doing sysadmin work with embed and I've been treating it like a full blown Tomcat instance that comes with everything turned off, but still included, thinking I need to supply all these different arguments to turn stuff on. It's more like it's available but not included - the developer needs to supply the code to turn on the tomcat feature. Have I got it right now? Thanks! - Jim -Original Message- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent: Tuesday, August 22, 2017 1:06 PM To: users@tomcat.apache.org Subject: Re: setting packetSize for ajp connector in embedded tomcat via commandline system property This message originated outside of Unum. Use caution when opening attachments, clicking links or responding to requests for information. -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Him, On 8/22/17 11:57 AM, Johnson, Jim wrote: > I'm trying to set packetSize for an embedded Tomcat 8.5.4 AJP > connector using a command line property and I am failing. Does anyone > know what the correct property might be? What led you to believe that there was a particular system property that had any effect? > These are some settings that I know which work that I've found in the > Spring Boot Reference guide but that's not a complete reference. It's also specific to Spring Boot. > I'm thinking it should be something like > > -Dserver.tomcat.connector.packet-size=65536 > > Or something close to that - but there's no consistency that I've been > able to find in naming conventions at the server or server.tomcat or > server.tomcat.connector level. And after many hours of guessing I'm > turning to you all in hopes that someone may know the correct setting. If you are using Spring Boot, then you might want to ask the Spring Boot community. Perhaps someone here can answer your question, but most of us (myself included) can't. If you are using Tomcat embedded directly (i.e. you have written your own Java code to launch Tomcat) then you can use whatever system property you want... you just have to write your code to use it. > Can anyone provide the correct syntax? Or is packetSize for the AJP > connector not even supported through command line for embedded Tomcat? Embedded Tomcat does whatever you tell it to do. But it cannot read your mind. - -chris -BEGIN PGP SIGNATURE- Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCAAGBQJZnGSMAAoJEBzwKT+lPKRYPcUQAJ5poBQj19xiz5utBKQ3RL90 klMHNmAzZ45/afwTwj/G6JnSZCjRO30r33tKvTvzbf7WvDP1SL32f1Jl0b/LDXW8 o/8huECuKVhCjMsZWCM3HIxqlnR4bfhXXVOdbs3anWnO60/jrH58Km6xDLZnEVHG C6tTqOEMqYqLS/WKUC+x9P9zHqQX1I9WpZ9yr17KEvS6xIDTXzipnCbN8J3ujrzE o35BY7lj/ukCl2ZhqDszV21CuamdL2AW21FytIqBto7+CfnA/ftHllxPl6nUnpvg /wyKJ6mM8/gS4fcUKO+crj5QgTkor4LYi6vbog1U1gigRhZSx3d+l8mrNX2Sdn7D MhuM59jfzL6Q8IfkHHPrZVtQZVuKzASL79rupI025pSn7bqPFiqRv91/SrF6RT+v tF6CsrTOrp6HM/anTyESUjnHvsyTJBhLDGOHfTptNekGIOMtk4uEfN3gAM6wLU6G kK9Dd/7DOrtCN/6gNNp6/vVLwaJLqqJWPvfUdvYI6l2wwvBPfgKvNh/h0PVWmRu1 7JZQ89LgXZZYaUn4VqhsAEL60+RIjejK5d8ri3ZnM7OJOGOKb+VRSF6lA2pzHfM8 GuuDRxO1gVA9RhBEenObGO6445VrODW08uoe19mmw+NIqNuegnvoB6ZECP6TfPNv kJuLdC1rUZCEieFJUGBC =Zxsd -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: setting packetSize for ajp connector in embedded tomcat via commandline system property
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Him, On 8/22/17 11:57 AM, Johnson, Jim wrote: > I'm trying to set packetSize for an embedded Tomcat 8.5.4 AJP > connector using a command line property and I am failing. Does > anyone know what the correct property might be? What led you to believe that there was a particular system property that had any effect? > These are some settings that I know which work that I've found in > the Spring Boot Reference guide but that's not a complete > reference. It's also specific to Spring Boot. > I'm thinking it should be something like > > -Dserver.tomcat.connector.packet-size=65536 > > Or something close to that - but there's no consistency that I've > been able to find in naming conventions at the server or > server.tomcat or server.tomcat.connector level. And after many > hours of guessing I'm turning to you all in hopes that someone may > know the correct setting. If you are using Spring Boot, then you might want to ask the Spring Boot community. Perhaps someone here can answer your question, but most of us (myself included) can't. If you are using Tomcat embedded directly (i.e. you have written your own Java code to launch Tomcat) then you can use whatever system property you want... you just have to write your code to use it. > Can anyone provide the correct syntax? Or is packetSize for the > AJP connector not even supported through command line for embedded > Tomcat? Embedded Tomcat does whatever you tell it to do. But it cannot read your mind. - -chris -BEGIN PGP SIGNATURE- Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCAAGBQJZnGSMAAoJEBzwKT+lPKRYPcUQAJ5poBQj19xiz5utBKQ3RL90 klMHNmAzZ45/afwTwj/G6JnSZCjRO30r33tKvTvzbf7WvDP1SL32f1Jl0b/LDXW8 o/8huECuKVhCjMsZWCM3HIxqlnR4bfhXXVOdbs3anWnO60/jrH58Km6xDLZnEVHG C6tTqOEMqYqLS/WKUC+x9P9zHqQX1I9WpZ9yr17KEvS6xIDTXzipnCbN8J3ujrzE o35BY7lj/ukCl2ZhqDszV21CuamdL2AW21FytIqBto7+CfnA/ftHllxPl6nUnpvg /wyKJ6mM8/gS4fcUKO+crj5QgTkor4LYi6vbog1U1gigRhZSx3d+l8mrNX2Sdn7D MhuM59jfzL6Q8IfkHHPrZVtQZVuKzASL79rupI025pSn7bqPFiqRv91/SrF6RT+v tF6CsrTOrp6HM/anTyESUjnHvsyTJBhLDGOHfTptNekGIOMtk4uEfN3gAM6wLU6G kK9Dd/7DOrtCN/6gNNp6/vVLwaJLqqJWPvfUdvYI6l2wwvBPfgKvNh/h0PVWmRu1 7JZQ89LgXZZYaUn4VqhsAEL60+RIjejK5d8ri3ZnM7OJOGOKb+VRSF6lA2pzHfM8 GuuDRxO1gVA9RhBEenObGO6445VrODW08uoe19mmw+NIqNuegnvoB6ZECP6TfPNv kJuLdC1rUZCEieFJUGBC =Zxsd -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
setting packetSize for ajp connector in embedded tomcat via commandline system property
Hello, I'm trying to set packetSize for an embedded Tomcat 8.5.4 AJP connector using a command line property and I am failing. Does anyone know what the correct property might be? These are some settings that I know which work that I've found in the Spring Boot Reference guide but that's not a complete reference. I'm thinking it should be something like -Dserver.tomcat.connector.packet-size=65536 Or something close to that - but there's no consistency that I've been able to find in naming conventions at the server or server.tomcat or server.tomcat.connector level. And after many hours of guessing I'm turning to you all in hopes that someone may know the correct setting. Can anyone provide the correct syntax? Or is packetSize for the AJP connector not even supported through command line for embedded Tomcat? Thanks! - Jim