How can I determine if the installed ColdFusion server is 32 or 64 bit?
I would love to see an answer that solves my problem both from being logged in on the server and programmatically from CFML code.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Ok, not quite as straight-forward as I thought, but the information is there.
Programmatic Access
In all three CFML engines, you can programmatically access the JVM information via the server scope with
Server.Os.Arch. This contains a value such asamd64for 64-bit, andi386orx86for 32-bit systems.On Railo (but not ACF/OBD) there is also
Server.Os.ArchModelwhich simply contains64or32as appropriate.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 administrator, if you go to “Server Settings” > “Settings Summary” you can find the “Java VM Name” which contains
Java HotSpot(TM) 64-Bit Server VM(or equiv for 32 bit).In OpenBD administrator, select “Server” > “System Info” and the third option contains “Operating System”, which includes
amd64on a 64-bit system, along with a link to “JVM properties”, where you can find “java.vm.name” and “sun.arch.data.model” containing values for architecture name and bitness.In Railo administrator, the “Overview” page (when you login) has an “Info” section which includes fields for both OS and JVM, each with either
64bitor32bitafter the version info.