You can monitor Benerator using a JMX client, for example, JConsole.
The following properties can be monitored:
|The total number of generated data sets
|The number of data sets generated per second
|The number of currently open database connections
|The number of currently open database query result sets
|The number of currently open database statements
|The number of currently open prepared database statements
The first two properties, TotalGenerationCount and CurrentThroughput, are used for Benerator performance monitoring and optimization. If you suspect Benerator to be 'hanging', first check its CurrentThroughput.
The last four properties (Open...) for database resource monitoring and database resource leak detection.
Monitoring with JConsole
Start JConsole on the command line
Select a process
Choose the MBeans tab
In the left tree view, select
benerator – monitor – Attributes
Select the attribute TotalGenerationCount or CurrentThroughput and the value is displayed on the right
Double-clicking the number opens a chart that displays the value's evolution over time
For monitoring Benerator execution from a remote machine, you need to set some BENERATOR_OPTS. Here are only the simplest and basic settings.
Warning: The settings described here do not provide any security and thus are recommended only for evaluation! If you do want to monitor a sensitive system in a remote manner, you need to apply security settings as described in https://docs.oracle.com/en/java/javase/11/management/monitoring-and-management-using-jmx-technology.html!
These are server-side settings and are independent of the client you are using:
|Enable remote access
|Configures the port for remote access
|Enables anonymous and unsecure access (not recommended)