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=XXXXXXXX
server.max-http-header-size=XXXXXX
server.use-forward-headers=true
server.ajp.port=XXXX

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

Reply via email to