How to determine the installed bitness of ColdFusion

How to determine if an installed ColdFusion 32 or 64 bit server is installed?

I would really like to see an answer that solves my problem both from entering the server and programmatically from CFML code.

+6
source share
1 answer

Well, not as straightforward as I thought, but there is information.

Program access

In all three CFML machines, you can programmatically access JVM information through a server area using Server.Os.Arch . This contains a value such as amd64 for 64-bit and i386 or x86 for 32-bit systems.

On Railo (but not ACF / OBD) there is also Server.Os.ArchModel , which simply contains 64 or 32 , if necessary.

For all three engines, you can get this 64/32 value with: createObject('java','java.lang.System').getProperty("sun.arch.data.model")

Server admin

In CF Manager, if you go to Server Settings> Summary of Settings, you can find the Java Virtual Machine Name, which contains the Java HotSpot(TM) 64-Bit Server VM (or equiv for 32 bits).

In the OpenBD administrator, choose Server> System Information, and the third option contains Operating System, which includes amd64 on a 64-bit system, as well as a link to β€œJVM Properties,” where you can find β€œjava.vm. name "and" sun.arch.data.model "containing values ​​for the architecture name and bits.

The Railo administrator on the Overview page (when you log in) has an Information section that includes fields for the OS and JVM, each of which has either 64bit or 32bit after the version information.

+11
source

Source: https://habr.com/ru/post/924132/


All Articles