How to identify what jvm.config a ColdFusion instance uses (and vice-versa)
Note: This blog post is from 2012. Some content may be outdated--though not necessarily. Same with links and subsequent comments from myself or others. Corrections are welcome, in the comments. And I may revise the content as necessary.If you run ColdFusion in its Multiserver mode (multiple instances), you may know that you can configure things so that different instances use different jvm.config files, otherwise by default, all instances share just one. (If you didn't know how to change that, particularly if running CF as Windows Services, I'll offer some references explaining more.)
But have you ever wondered which jvm.config is used by a given instance? Or perhaps found multiple jvm.configs in your [jrun4]\bin directory and wondered which instance each went with? The answer isn't as straightforward as it may seem, when you're running CF as Windows Services. There's no single CF feature that reports this, but I do offer a solution here.
The simple answer is that one can find the information in the registry. The longer answer, including how to find that, as well as how to get that info more easily from the command line if you may prefer, follows.
I'm happy to hear the JVM files in CF 10 are in their own instance bin directory, though.
Cheers,
Jose
Another way to determine which JVM file a Multiserver CF 9 instance is using on Windows2008 R2 is:
1) Open Task Manager
2) Go to 'Processes'
3) In the Menu: 'View' > 'Select Columns ...'
4) Select the 'Command Line' (checkbox)
5) 'OK'
6) Expand the 'Command Line' column
7) If you do not see '-config [custom_jvm_config]' then you're using the default, jvm.config.