Question: how to set xmx for java in linux?
Answer: Open the catalina. bat file (TomcatInstallDirectory/bin/catalina. bat). Add the following line: set JAVA_OPTS=%JAVA_OPTS% -Xms1024m -Xmx1024m. where: Xms is the initial (start) memory pool. Xmx is the maximum memory pool.