Skip to main content
Skip table of contents

SQL Profiling 1.0.0

The SQL Profiling plugin is used to store profiling data into a relational SQL database. To do so, you need to connect the SQL Profiling plugin to a relational SQL database. The plugin is available in <server_directory>\wildfly\modules\de\softproject\x4\plugins but has to be activated in the module.xml file in the <server_directory>\wildfly\modules\de\softproject\plugins\main folder.

Warning

The first start of the profiling must be executed by a database user who has the permission to create database tables. After all tables required have been created, a user with fewer permissions can take over.

When you enable the SQL Profiling, the default profiling in the memory is turned off.

How to configure SQL Profiling

  1. In the <server_directory>/configurations folder, create the sql_profiling_config.xml file.

  2. Insert the following content.

    XML
    <?xml version="1.0"?>
    <Configuration>
      <DatabaseConfiguration>
    	<ConnectionString></ConnectionString>
    	<UserName></UserName>
    	<Password></Password>
      </DatabaseConfiguration>
    	<WriteCycle>
    		<Duration></Duration>
    		<TimeUnit></TimeUnit>
    	</WriteCycle>
    	<KeepLogs>
    		<Duration></Duration>
    		<TimeUnit></TimeUnit>
    	</KeepLogs>
    	<KeepCrashedProcessLogs>
    		<Duration></Duration>
    		<TimeUnit></TimeUnit>
    	</KeepCrashedProcessLogs>
    	<RunCleanUp>
    		<Duration></Duration>
    		<TimeUnit></TimeUnit>
    	</RunCleanUp>
    </Configuration>
    
    

  3. Enter the required values in the sql_profiling_config.xml file.

DatabaseConfiguration

Element

Description

Possible values

ConnectionString

JDBC connection string for the connection to the database

For more information, see the official JDBC database documentation.


  • Connection URL for the JDBC database

UserName

User name for the login to the database

  • Any string

Password

Password for the login to the database

  • Any string

WriteCycle

Specifies the cycles in which data is written to the SQL database.

The element contains the following elements:

  • Duration

  • TimeUnit

KeepLogs

Specifies how long entries are stored before they are cleared automatically.

The element contains the following elements:

  • Duration

  • TimeUnit

KeepCrashedProcessLogs

Sets the period of time for which entries for crashed processes are stored before they will be cleared automatically.

Crashed processes are not covered by the KeepLogs element.


The element contains the following elements:

  • Duration

  • TimeUnit

RunCleanUp

Sets the cycles in which the automatic cleanup is performed.

The element contains the following elements:

  • Duration

  • TimeUnit

WriteCycle

Element

Description

Possible values

Duration

Time span

  • Integer

TimeUnit

Unit of the time span

  • SECONDS

  • MINUTES

  • HOURS

  • DAYS

KeepLogs

Element

Description

Possible values

Duration

Time span

  • Integer

TimeUnit

Unit of the time span

  • SECONDS

  • MINUTES

  • HOURS

  • DAYS

KeepCrashedProcessLogs

Element

Description

Possible values

Duration

Time span

  • Integer

TimeUnit

Unit of the time span

  • SECONDS

  • MINUTES

  • HOURS

  • DAYS

RunCleanUp

Element

Description

Possible values

Duration

Time span

  • Integer

TimeUnit

Unit of the time span

  • SECONDS

  • MINUTES

  • HOURS

  • DAYS

How to install the plugin

  1. Open the module.xml file in the <Serververzeichnis>\wildfly\modules\de\softproject\x4\plugins\sql-profiling\main folder.

  2. Copy the plugin name specified in line 2:

    image2022-8-22_14-26-11.png

  3. Open the module.xml file in the <server_directory>\wildfly\modules\de\softproject\plugins\main folder.

  4. Add the following line to the module.xml file:

    <module name="de.softproject.x4.plugins.sql-profiling" export="true"/>

    The file content should look like this:

    image2024-3-20_15-29-50.png

  5. Restart the X4 Server.
    After restarting the X4 Server, the plugin will be available.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.