RE: Tomcat 8.x JvmOptions parameter length restrictions?
Yes, thanks folks. It does appear to be some syntax validation Notepad++ is doing with .bat files. If you create a test.bat and add 1100 characters and save it, from the entire line would be selected in blue. If you put REM in front of the characters, then position 1025 and forward are in blue. Not sure the significant of it but that's what my testing turned out. At least there are no hard fast limits restricting jvm options to 1024 characters only, which is what I was hoping was the case. Regards, Steve Mekkelsen Madden | Systems Engineer Fellow / DBA / Certified Scrum Master | GCS | PMF Operations Support | Pegasystems Inc. Office: (617) 866.6023 | Mobile: (828) 729.9948 | Email: steve.mekkelsen.mad...@pega.com | www.pega.com -Original Message- From: Terence M. Bandoian [mailto:tere...@tmbsw.com] Sent: Monday, August 29, 2016 10:48 PM To: Tomcat Users List Subject: Re: Tomcat 8.x JvmOptions parameter length restrictions? On 8/29/2016 8:34 AM, Mekkelsen Madden, Steve wrote: > I've setup Tomcat 8.5.3 as a Windows Service (configured the service.bat > file) and everything appears to be working fine. I'm trying to find out if > there are any restrictions to the overall length of the parameters which can > be used in the service.bat for --JvmOptions " " ^ line. This isn't specific > to Tomcat 8.5.3 as I saw the same in 8.0.x versions as well. So it may just > be NotePad++ doing something funky. > > What I'm seeing when using NotePad++, is at column 1024 the text looks > fine. But for 16 characters after that, the text appears in light > blue and the remaining line looks okay. I can't tell if there is a > setting in NotePad++ that is simply identifying the first 1024 > characters or if the validate for the service.bat file is catching > something I should be aware of. Since this email is text only, it is > hard to show it, so I've taken a screen shot and pasted it here: > https://postimg.org/image/gv29etcdf/ > > I don't have any good way to verify if all the parameters did in fact load > properly, so reaching out to others to see if they have the same issue and/or > know how to resolve it. > > Thanks, > Steve Mekkelsen Madden > The Tomcat Service Manager GUI may be used to set Tomcat system properties. The Tomcat 32-bit/64-bit Windows Service Installer creates a shortcut to the GUI in the Windows start menu named "Configure Tomcat". The executable for the service manager GUI is located in the Tomcat bin directory and named Tomcatw.exe. It is also included in the 32-bit and 64-bit Windows zip downloads. In addition, system properties may be set in catalina.properties which is located in the Tomcat conf directory. Hope that helps. -Terence Bandoian http://www.tmbsw.com/ - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat 8.x JvmOptions parameter length restrictions?
On 8/29/2016 8:34 AM, Mekkelsen Madden, Steve wrote: I've setup Tomcat 8.5.3 as a Windows Service (configured the service.bat file) and everything appears to be working fine. I'm trying to find out if there are any restrictions to the overall length of the parameters which can be used in the service.bat for --JvmOptions " " ^ line. This isn't specific to Tomcat 8.5.3 as I saw the same in 8.0.x versions as well. So it may just be NotePad++ doing something funky. What I'm seeing when using NotePad++, is at column 1024 the text looks fine. But for 16 characters after that, the text appears in light blue and the remaining line looks okay. I can't tell if there is a setting in NotePad++ that is simply identifying the first 1024 characters or if the validate for the service.bat file is catching something I should be aware of. Since this email is text only, it is hard to show it, so I've taken a screen shot and pasted it here: https://postimg.org/image/gv29etcdf/ I don't have any good way to verify if all the parameters did in fact load properly, so reaching out to others to see if they have the same issue and/or know how to resolve it. Thanks, Steve Mekkelsen Madden The Tomcat Service Manager GUI may be used to set Tomcat system properties. The Tomcat 32-bit/64-bit Windows Service Installer creates a shortcut to the GUI in the Windows start menu named "Configure Tomcat". The executable for the service manager GUI is located in the Tomcat bin directory and named Tomcatw.exe. It is also included in the 32-bit and 64-bit Windows zip downloads. In addition, system properties may be set in catalina.properties which is located in the Tomcat conf directory. Hope that helps. -Terence Bandoian http://www.tmbsw.com/ - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat 8.x JvmOptions parameter length restrictions?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Steve, On 8/29/16 9:34 AM, Mekkelsen Madden, Steve wrote: > I've setup Tomcat 8.5.3 as a Windows Service (configured the > service.bat file) and everything appears to be working fine. I'm > trying to find out if there are any restrictions to the overall > length of the parameters which can be used in the service.bat for > --JvmOptions " " ^ line. This isn't specific to Tomcat 8.5.3 as I > saw the same in 8.0.x versions as well. So it may just be > NotePad++ doing something funky. This SO post[1] says that batch files truncate lines after 127 bytes, but I'm fairly certain it's not the least bit true. > What I'm seeing when using NotePad++, is at column 1024 the text > looks fine. But for 16 characters after that, the text appears in > light blue and the remaining line looks okay. I can't tell if > there is a setting in NotePad++ that is simply identifying the > first 1024 characters or if the validate for the service.bat file > is catching something I should be aware of. Since this email is > text only, it is hard to show it, so I've taken a screen shot and > pasted it here: https://postimg.org/image/gv29etcdf/ I wouldn't read too much into what Notepad++ tells you. If you are worried about line length, feel free to build-up the value in an environment variable and try that. > I don't have any good way to verify if all the parameters did in > fact load properly, so reaching out to others to see if they have > the same issue and/or know how to resolve it. The service.bat script just builds a Windows Service. Use tomcat8w.exe[2] to check-out the options that were saved to the registry. Use the //ES// switch to check it all out. - -chris [1] http://stackoverflow.com/questions/1217134/file-size-and-line-length-lim its-for-windows-batch-files [2] http://tomcat.apache.org/tomcat-8.5-doc/windows-service-howto.html#Tomca t_monitor_application -BEGIN PGP SIGNATURE- Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCAAGBQJXxGnCAAoJEBzwKT+lPKRYjJkP+gMLiEjdMWvKZvAapDCOcelA J+y8yA78KUWr5hP8bnL+KHxNOyfm8VPGPfIJPwrqd17OzcHFqBl/UnvvpzWi9Q+r XXCAQMbP1h5UseFCP5SIAjmT163sEiBIMgU6MPCEBAAmGllrAv8N9LCFX1fxDbWJ P2z6o4N9H9GvuIDIsY9G9N07fJYSQJSl6ZWYJa+ljcySKOPFyizkcnG3TD2ZJ5j6 Wyd5FFnaOXsgdiyk74OHVq/gxlOxqV4i6UpfAvQTQPnMTopPP8wHcR4oPHlG2q4y zwBwJzd8Ehh2zmeenSHf3DKgRygYTtX1/pKQaIaaf5bXGqdl4KejAO8BpXZT0y0B aACIEN8zYmeWCeFnG/d6ikudijgGc0VDqgjGQQoSl6smVenkaG9ym3Nhna9loUbn gyavu4XJSc3gKIfhe9ojhY0bbWIUyessDGk0FZne0jP+Hc4Vyodo7EQ885673v0R 9Bf4EIxnHKyqPw+2DyDp9hhe7NZ+eq2SPvidut1PbxuEb9rf8T6d8xMmLCBAIoas PJ13KX4J4EVbglZ913C6LRigZi95mQsqnRU7K8hQG7GAf+6ybv8Ztp5Zpo+dv+Ax LqT0cgHbo5Juq/Ozh/nGM5LEPrkzdMkZvsr5aFbvQ75iOAA25IhbdExOooM7hw4e qw1mHAv5WiRrv0iiruyC =CehL -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Tomcat 8.x JvmOptions parameter length restrictions?
I've setup Tomcat 8.5.3 as a Windows Service (configured the service.bat file) and everything appears to be working fine. I'm trying to find out if there are any restrictions to the overall length of the parameters which can be used in the service.bat for --JvmOptions " " ^ line. This isn't specific to Tomcat 8.5.3 as I saw the same in 8.0.x versions as well. So it may just be NotePad++ doing something funky. What I'm seeing when using NotePad++, is at column 1024 the text looks fine. But for 16 characters after that, the text appears in light blue and the remaining line looks okay. I can't tell if there is a setting in NotePad++ that is simply identifying the first 1024 characters or if the validate for the service.bat file is catching something I should be aware of. Since this email is text only, it is hard to show it, so I've taken a screen shot and pasted it here: https://postimg.org/image/gv29etcdf/ I don't have any good way to verify if all the parameters did in fact load properly, so reaching out to others to see if they have the same issue and/or know how to resolve it. Thanks, Steve Mekkelsen Madden - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org