Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In which file do the export JAVA_OPTS="" Parameters go?

Tags:

java

jvm

tomcat

When I do the following command:

root@starwars:/# export JAVA_OPTS="-Xms756m -Xmx756m -Xss128m -Xmn512m"

In which file will the values "-Xms756m -Xmx756m -Xss128m -Xmn512m" be written?

like image 610
flhe Avatar asked Nov 28 '22 22:11

flhe


1 Answers

The startup scripts of tomcat will run a setenv.sh file if it exists. Create it (in the tomcat bin/ ) directory and write your customization there, e.g. that file can just contain the line:

export JAVA_OPTS="-Xms756m -Xmx756m -Xss128m -Xmn512m"
like image 133
nos Avatar answered Dec 05 '22 11:12

nos