79572409

Date: 2025-04-14 05:52:55
Score: 2
Natty:
Report link

I found for Tomcat on Windows, the following worked.

If the Tomcat AppServer is configured as a Windows Service, you need to run the tomcatw.exe command and then enter the values in the fields as per below:

enter image description here

Restart Tomcat and check the Catalina log. You should see something like this:

enter image description here

If the Tomcat AppServer is NOT configured as a Windows Service, you need to create file setenv.bat in the Tomcat bin folder and add the following entries:

set JAVA_OPTS=%JAVA_OPTS% -Dfile.encoding=UTF-8 -server -Xms512m -Xmx2g -Xss4m

You should see something like this in the catalina.log

enter image description here

Reasons:
  • Blacklisted phrase (1): enter image description here
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: ZoranI