Tomcat: Set Timezone & Other JVM / CATALINA Parameters

If you want to change the timezone in which a Tomcat instance is running, you have to add


-Duser.timezone=GMT

to JVM_OPTS environment variable or more specific (and better for most cases), to Tomcat's CATALINA_OPTS environment variable. You can do it on the command line or via Tomcat's Configure dialog:


This way you can also add other parameters to Tomcat's startup script.

Comments

Popular posts from this blog

Tuning ext4 for performance with emphasis on SSD usage

Java 8: Default Interface Implementations, The Diamond Problem, Multiple Inheritance, and Precedence

Tuning ext3 for performance without losing its data integrity potential