Introduction
In certain cases, the Event Snapshot can have a performance impact on an environment - especially when running in ColdFusion where the pages are being constantly recompiled. When Event Snapshots have been enabled, this causes the JVM to activate a special mode, allowing it to capture detailed variable scope information. Although generally no performance impact will be felt with this mode, it can cause some operations to become slow.
If you enable Event Snapshot, it is recommended that you also enable the "Save Classes" feature on ColdFusion servers to avoid recompilation. The "Save Classes" feature can be found in the ColdFusion admin console under Server Settings > Caching.
Enabling the Event Snapshot feature is known to heavily affect the compilation time of large files on ColdFusion and operations which throw a lot of exceptions (like javacc-based parsers).
Enabling Support for Event Snapshots
Event Snapshot (Exception) Support can be switched on by configuring the following system property in the JVM arguments file:
-Dfr.jvmti.enable.exceptions=true
You can modify your JVM arguments file by following the steps below:
- Navigate to the following directory;
- ColdFusion9:
- {ColdFusion_Home}/runtime/bin
## ColdFusion 10/11/2016/2018:
### {ColdFusion_Home}/cfusion/bin
- {ColdFusion_Home}/runtime/bin
- ColdFusion9:
- Locate and open the jvm.config file with a text editor of your preference.
- Add the system property at the end of the line after "# Arguments to VM". Please make sure that all the Java Arguments are on the same line.
- Save the changes made.
Issue Details
Type: | Technote |
---|---|
Issue Number: | FRS-457 |
Components: | |
Environment: | |
Resolution: | |
Last Updated: | Just now |
Affects Version: | |
Fixed Version: | new |
Server: | |
Platform: | |
Related Issues: |