4D_Info_Report

The 4D_Info_Report component (formerly called Info Report) is a powerful tool for analyzing and monitoring a running 4D database and its environment, which can help to size the cache, check activated logs or diagnose technical problems such as memory leaks, server misconfigurations, etc.

View on GitHub

Version 4D version Downloads maintenance-status Maintainer
support mac support windows

info_report

About this component?

The component 4D_Info_Report provides a large number of information:


How to install this component?

There are 2 ways to install this component:

1/ Automatically

This method requires at least version 20 R6 of 4D

{
	"dependencies": {
		"4D_Info_Report": {
			"github": "4d/4D_Info_Report",
			"version": "20.*"
		}
	}
}

For your information, the component will be downloaded into the:

  • ~/Library/Caches/4D/Dependencies/.github/4d/4D_Info_Report/ (on Mac)
  • ~\AppData\Local\4D\Dependencies\.github\4d\4D_Info_Report\ (on Windows)

2/ Manually

This method works with all versions of 4D


How to use this component?

There are 2 ways to use this component:

Reports (text files) are created in a new Folder_reports folder next to the data file.

For each of them, you can use the component:

Both approaches have their advantages, depending on the context and monitoring needs of the application.

1/ Generate reports every N minutes

Without modifying the host code:

By modifying the host code:

var $NP : Integer
ARRAY TEXT($at_Components;0)
COMPONENT LIST($at_Components)
If(Find in array($at_Components;"4D_Info_Report@")>0)
  // to start the stored procedure creating report every 5 minutes
  $NP:=New process("aa4D_NP_Schedule_Reports_Server";0;"$4DIR_NP";5;0)
End if

2/ Generate a single report

Without modifying the host code:

By modifying the host code:

var $NP : Integer
ARRAY TEXT($at_Components;0)
COMPONENT LIST($at_Components)
If(Find in array($at_Components;"4D_Info_Report@")>0)
  // to create a single report in "Folder_reports" next to the Data file
  $NP:=New process("aa4D_NP_Util_CreateReport_Serv";0;"$4DIR_NP")
End if


How to analyze reports?

You can analyze these reports:


Download


Archives