Tool `4D_Info_Report`

About this component?
(version 4.9rZF)
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:
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_):
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
EXECUTE METHOD(`aa4D_NP_Schedule_Reports_Server`;*;5;0)
End if
Procedure n°2:
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.
In both cases, you should create a new shared method aa4D_Host_GetDBParam with the code below:
// Method name: aa4D_Host_GetDBParam (must be shared with components)
C_LONGINT($1) // selector
C_REAL($0)
$0:=-1 // Error, no parameter
If(Count parameters>0)
$0:=Get database parameter($1)
End if
How to analyze reports?
You can analyze these reports:
-
from a remote 4D by executing the
aa4D_NP_Report_Manage_Displaymethod, -
from a single-user 4D by opening the component and clicking on the
File / Local reports comparemenu.
Download
-
host database (v15) with some host shared methods example (please add the component in the
Componentsfolder for your test) -
component for version 4D v17 (only compiled for 64-bit)
-
component for version 4D v17 (also compiled for 64-bit)
Archives
-
component for version 4D v16 (also compiled for 64-bit)
-
component for version 4D v15 (also compiled for 64-bit)
-
component for version 4D v14 (also compiled for 64-bit)
-
component for version 4D v13 (also compiled for 64-bit)
-
component for version 4D v12 (also compiled for 64-bit)
-
host database (v12) with some host shared methods example (please add the component in the
Componentsfolder for your test
Wiki 4D