https://bz.apache.org/bugzilla/show_bug.cgi?id=66327
Bug ID: 66327 Summary: Tomcat run as a windows service doesn't set the stack size accordingly Product: Tomcat 9 Version: 9.0.65 Hardware: PC Status: NEW Severity: major Priority: P2 Component: Catalina Assignee: dev@tomcat.apache.org Reporter: dragos.nego...@finastra.com Target Milestone: ----- Hello, We developed a webapp which has been running in Tomcat for some time. Recently, this application added a requirement of stack size increase which is well handled by editing catalina.bat with a new line: set "JAVA_OPTS=%JAVA_OPTS% -Xss3M" for the case of debugging and implementation. When the application is delivered and needs to be started as a windows service it will encounter an issue regarding the stack size. The application will crash with stack overflow exception, even if the stack size value is modified. I have attached the screenshots of the service. Tomcat used: is 9.0.65. JDK used: openlogic-openjdk-8u342-b07 (this one is for the latest test, some other versions were used during the investigation) Java Options: -Dcatalina.home=C:\tools\apache-tomcat-9.0.65 -Dcatalina.base=C:\tools\apache-tomcat-9.0.65 -Dignore.endorsed.dirs=C:\tools\apache-tomcat-9.0.65\endorsed -Djava.io.tmpdir=C:\tools\apache-tomcat-9.0.65\temp -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=C:\tools\apache-tomcat-9.0.65\conf\logging.properties I have attached also a sample application to be put in the webapp folder. It should list the numbers to 25000, through recursive calls. Can you, please, help with this situation? Regards, Dragos. -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org