Halley
Halley

Reputation: 531

Identify JVM default timezone

Is there a way to identify the JVM's default time zone without running a Java program on it? Are there any commands available using which I can take a look at it?

Upvotes: 0

Views: 2756

Answers (1)

molok
molok

Reputation: 46

Yeah we all know what jvm is , but maybe author want to know what is a default timzeone of running jvm without restarting it and deploying code on it.

In such case you could maybe check command line of java process for properties (user.timezone) or connect to jvm via some tool like visual vm and check this property, I am not sure if there is some other way to do that.

If you have remote debugging enabled then it should be easier as you can connect via your favourite ide/tool and just evaluate default timezone.

Upvotes: 1

Related Questions