About this component?
The component 4D_Info_Report
provides a large number of information:
-
about the operating system, the computer and the 4D Application
-
on the database: description of the structure, data file, size, settings, etc.
-
while the server is running, variation of memory, cache usage, connected users, processes, etc.
How to use this component?
Procedure n°1:
Important
Requires version 20 R6 or higher
-
Create a
dependencies.json
file in the/Project/Sources/
folder -
Copy and paste the text below into the
dependencies.json
file
{
"dependencies": {
"4D_Info_Report": {
"github": "4d/4D_Info_Report",
"version": "20.*"
}
}
}
- The component will load automatically after reopening your 4D project
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:
-
from a remote 4D by executing the
aa4D_NP_Report_Export_Display
method -
from a single-user 4D by opening the component and clicking on the
File / Local reports compare
menu
Download
-
reference of the component: 4D_Info_Report_v4_80_Ref_v40.pdf
-
host database (4D 19) with some host shared methods example (please add the component in the “Components” folder for your test: 4D_Info_Report_Host_T_v9_19.zip
-
component for version 4D 20 R6 (also compiled for Apple Silicon processor): 4D_Info_Report_20R6
-
component for version 4D 20 LTS (also compiled for Apple Silicon processor): 4D_Info_Report_20
-
component for version 4D 19 R6 (only compiled for Intel/AMD processor): 4D_Info_Report_v4_83_I_19R6.zip
-
component for version 4D 19 R6 (also compiled for Apple Silicon processor): 4D_Info_Report_v4_83_IS_19R6.zip
-
component for version 4D 19 (only compiled for Intel/AMD processor): 4D_Info_Report_v4_83_I_19.zip
-
component for version 4D 19 (also compiled for Apple Silicon processor): 4D_Info_Report_v4_83_IS_19.zip
Archives
-
component for version 4D 18: 4D_Info_Report_v4_65_v18.zip
-
component for version 4D 17 (only compiled for 64-bit): 4D_Info_Report_v4_33_64-bit_v17.zip
-
component for version 4D 17 (also compiled for 64-bit): 4D_Info_Report_v4_33_v17.zip
-
host database (4D 17) with some host shared methods example (please add the component in the “Components” folder for your test: 4D_Info_Report_Host_T_v8_v17.zip
-
component for version 4D 16 (also compiled for 64-bit): 4D_Info_Report_v4_9rZC_v16_rev3.zip
-
component for version 4D 15 (also compiled for 64-bit): 4D_Info_Report_v4_9rZ8_v15_rev2.zip
-
component for version 4D 14 (also compiled for 64-bit): 4D_Info_Report_v4_9rZ2_v14_rev1.zip
-
component for version 4D 13 (also compiled for 64-bit): 4D_Info_Report_v4_9rZ2_v13_rev1.zip
-
component for version 4D 12 (also compiled for 64-bit): 4D_Info_Report_v4_9rZ_v12.zip
-
host database (4D 12) with some host shared methods example (please add the component in the “Components” folder for your test: 4D_Info_Report_Host_T_v6_v12.zip