View on GitHub

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.

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 use this component?

Procedure n°1:

Important

Requires version 20 R6 or higher

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

Note

  • The component will be present in the folder:
    • ~/Library/Caches/4D/Dependencies/.github/4d/4D_Info_Report/ (on Mac)
    • ~\AppData\Local\4D\Dependencies\.github\4d\4D_Info_Report\ (on Windows)

Procedure n°2:

Create a folder Components next to the structure or application file (if it does not already exist), copy the unarchived component, and restart your 4D or 4D Server.

Then you can directly execute the shared method: aa4D_NP_Report_Manage_Display from 4D Remote.

A dialog from the component will let you start the Stored procedure to create reports every N minutes on the Server.

You can also implement in your Host database, this small code in your On Server startup method to execute any of the shared methods (they all begins with aa4D_):

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

Procedure n°3:

You can just create one report using the shared method aa4D_NP_Util_CreateReport_Serv.

The created reports (text files) are stored in a created folder Folder_reports next to the data file.

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