Getting JVM Info

ColdFusion Add comments
Sometimes we may change the default JVM for ColdFusion depending on our needs. This would be useful to get some new features etc. When we need to detect current JVM that we are using in ColdFusion server, we can check the ColdFusion Administrator settings page. But there is also another way of detecting via following code and it would be useful when you do not have any CF admin access on a shared platform etc.

<cfset CF_JVM = CreateObject("java", "java.lang.System").properties>
<cfoutput>
<cfloop collection="#CF_JVM#" item="loopid">
<strong>#loopid#</strong>: #CF_JVM[loopid]#<br />
</cfloop>
</cfoutput>


1 response to “Getting JVM Info”

  1. radek Says:
    In econd scenario you will ot have probably access to createObject("java",...).

Leave a Reply





Powered by Mango Blog. Design and Icons by N.Design Studio