Utilities in Adeptia Connect are built in features that help you find and troubleshoot a problem in the production environment. For example, some diagnostic utilities give you information about the Adeptia Connect and thread dump of Kernel and WebRunner. If any problem occurs in the production environment, you can use this information for troubleshooting and investigating the cause of an unexpected behavior.
Tracer Utility
This utility helps in gathering information of Adeptia Connect including that of Thread Dump.
The report generated by the Tracer Utility also contains the Usage Summary details for the last seven days.
Perform the following steps to run the tracer utility for gathering information:
For Windows:
Go to the <Adeptia-Installation-Folder>/ServerKernel/tracer folder.
Executeserver-info.bat file.
The zip folder, in the format server_info_<date>_<time>.zip, is created, in the tracer folder, containing all the required information.
For Linux:
Open the terminal.
Go to the <Adeptia-Installation-Folder >/ServerKernel/tracer folder.
Execute ./server-info.sh file. Make sure that file has execute permission.
The zip folder, in the format server_info_<date>_<time>.zip, is created, in the tracer folder, containing all the required information.
To gather information about Adeptia's files, folders, and databases
Go to the <Adeptia-Installation-Folder >/ServerKernel/tracer/etc folder.
Configure application.xml file.
Execute ./server-info.sh file or server-info.bat file.
Thread Dump
Thread Dump utility helps you to know threaddump information of Kernel and WebRunner. Before continuing further, you must be familiar with the following two terms:
Thread Dump: A thread dump is a list of all the Java threads that are currently active in a Java Virtual Machine.
Memory Dump: A memory dump is a process in which the contents of the memory are displayed and stored that helps to diagnose, identify and resolve the problem that led to the failure.
This section will let you know how to gather thread dump information of Kernel and WebRunner on Windows and Linux.
For Windows:
Go to the <Adeptia-Installation-Folder>/ServerKernel/diagnostic folder.
Execute either KernelDump.bat or WebRunnerDump.bat.
The console window appears prompting you with the options - Thread Dump or Memory Dump. Following files will be created in the diagnostic folder.
KernelDump.bat For Thread Dump, the file will be in the format: KN_Thread_Dump_Date_time.log For Memory Dump, the file will be in the format: KN_Memory_Dump_Date_time.hprof
WebRunnerDump.bat For Thread Dump, the file will be in the format: WB_Thread_Dump_Date_time.log For Memory Dump, the file will be in the format: WB_Memory_Dump_Date_time.hprof
You must have administrative rights to execute the steps mentioned above.
For Linux:
Go to the <Adeptia-Installation-Folder>/ServerKernel/diagnostic folder.
Execute either KernelDump.sh or WebRunnerDump.sh.
The console window appears prompting you with the options - Thread Dump or Memory Dump. Following files will be created in the diagnostic folder.
For KernelDump.sh For Thread Dump, the file will be in the format: KN_Thread_Dump_Date_time.log For Memory Dump, the file will be in the format: KN_Memory_Dump_Date_time.hprof
For WebRunnerDump.sh
For Thread Dump, the file will be in the format: WB_Thread_Dump_Date_time.log For Memory Dump, the file will be in the format: WB_Memory_Dump_Date_time.hprof
Adeptia Connect APIs also serve as utilities for users. To know more about Adeptia Connect APIs, click here.