The Java hotspot vpm can be run with -client or -server argument. If neither is specified then it chooses one according to some rules.
Is it possible to tell whether a running VM is running in client or server mode when the mode is not specified on command line? I need this on a Windows box outside the running process.
I realize this is not a programming question, but I hope it is ok because it is programming related. Thanks in advance.
In Java, you could check this with this code:
But this will be highly vendor specific.
From the command line, you could use jinfo (used to check a value of a given HotSpot VM option)
Since:
[x86 -server: 8; x86 -client: 12]12 means “Client”.