...
The -Xmx and –Xms settings can be set for a particular Fiorano component as part of the JVM_PARAMS runtime parameters attributes as illustrated in Figure 1. Multiple JVM runtime parameters can be added and separated with a space as a delimiter. The Heap Size setting should be set in the following format: –Xmx[value][[optional]mem_char]. By default, all specified values are measured in bytes. You can append the letter `k' or `K' to the value to indicate kilobytes, `m' or `M' to indicate megabytes, and `g' or `G' to indicate gigabytes. This attribute is a common attribute for all service components.
Figure 1: Setting the JVM _PARAMS attributes of a Component Instance
...
- Run the Netbeans Profiler Calibration
- Configure the Netbeans profiler
- The Profiler task should be to analyzing memory usage
- It is recommended that the Profiler is setup on a different machine than the machine on which the Fiorano Peer Server is installed, because profiling in itself is a CPU-intensive, memory consuming task.
- Netbeans provides the runtime arguments to be added to the external application on launch. Copy the parameters as specified and as required into a text editor.
- Configure the Fiorano component runtime parameters. Add the copied runtime arguments from step 2 (c) above to the service component JVM_PARAMS runtime argument as shown in figure 2
Figure 2: Adding the profiler settings to the JVM_PARAMS - Launch the component / application. Note: the component will not start until the Profiler is attached to the Java process.
- Attach the Netbeans Profiler. The profiler should start collecting the statistics on heap memory usage together with the garbage collection statistics. Switching to VM telemetry view is needed.
...