Monitoring, Logging & Profiling #86297/HEAD / v4310 |
Monitoring, Logging & ProfilingTable of Contents
iSQL: Built-in Interactive SQL ConsoleThe interactive SQL console enables users to query the database, besides exporting the results in a variety of formats. The iSQL console is available by default, however System Administrators can limit the accessibility of the console by configuring the appropriate environment variable. For more information, see:
Figure: Example Interactive SQL Query and Results
iSQL: Test PerformanceTo test the performance of the database, use the [Test Performance] button, the Number of runs the test makes can be modified.
Figure: Example Test Performance and Results
Configuring System Loggingcodebeamer uses Apache Log4j
Administrators can now change these log4j settings without restarting their codebeamer server by clicking on the System Admin ► Logging Configuration link.
Figure: Change Logging Configuration
UsageTo change the log4j settings of some classes or packages, paste the new log settings in the Logging changes textbox, using the same syntax as found in the installdir/tomcat/common/classes/log4j.properties file.Do not modify the log4j.properties file. The logging levels are to be changed only through System Admin ► Logging Configuration. For example: log4j.logger.com.intland.codebeamer.controller.admin.LoggingConfiguratorController=INFO
This configuration parameter will change the LoggingConfigurationController's logger to INFO level. Multiple log4j settings can be changed at once by putting them in multiple lines, similarly to the log4j.properties file.
Important notes:
RolloverRollover archives the log files and creates new ones to continue logging. See more details here Configuring Groove Script Loggingcodebeamer uses Apache Log4j 1. Once the logging is enabled in the custom Groovy Script either with INFO or DEBUG level, the log messages will appear in the cb.txt logfile.
2020-05-07 06:24.21,021 INFO event.impl.CustomScriptExecutor - responsible user found BOUJMIG [WorkflowActionManager-79] [2424] {} 2020-05-07 06:24.21,022 INFO event.impl.CustomScriptExecutor - end of custom action <starc_cust_act_map_System_resp.groovy> [WorkflowActionManager-79] [2424] {}
2. Now, enable Custom Script DEBUG Logging on codebeamer side as well. Go to System Admin ► Logging Configuration page and add the following to the Logging Configuration:
log4j.logger.com.intland.codebeamer.event.impl.CustomScriptExecutor=DEBUG
3. Reproduce the issue and capture the necessary logs. Once all done do not forget to reset Custom Script Logging level back to INFO by entering:
log4j.logger.com.intland.codebeamer.event.impl.CustomScriptExecutor=INFO Monitoring Server Resources: Memory Usage, Thread Count and Database ConnectionsSince codebeamer release 9.3, a Warning Emails About Low Available Disk Spacecodebeamer has a built in functionality that periodically checks the free disk space where the codebeamer instance is running. If the disk space goes low, it sends an email to System Administrators. The goal is to avoid running out of disk space since it can cause serious problems and data loss.
The periodic low disk check works as follows:
diskSpaceVolumes (codebeamer 10.0)Multiple disk volumes can be monitored with this property. It has to be used together with warnLowDiskSpace.
The attributes of the diskSpaceVolumes section are:
Example for Windows"diskSpaceVolumes" : [ { "name" : "diskC", "path" : "C:\\", "threshold" : 10240 }, { "name" : "diskE", "path" : "E:\\", "threshold" : 20480 }, { "name" : "diskF", "path" : "F:\\" } ], Example for Linux"diskSpaceVolumes" : [ { "name" : "disk1", "path" : "/dev/sda1", "threshold" : 10240 }, { "name" : "disk2", "path" : "/dev/sda2", "threshold" : 20480 }, { "name" : "disk3", "path" : "/dev/sda3" } ], |
Fast Links
![]() codebeamer Overview codebeamer Knowledge Base Services by Intland Software |
This website stores cookies on your computer. These cookies are used to improve your browsing experience, constantly optimize the functionality and content of our website, and help us understand your interests and provide more personalized services to you, both on this website and through other media. With your permission, we and our partners may use precise geolocation data and identification through device scanning. You may click accept to consent to our and our partners’ processing as described above. Please be aware that some processing of your personal data may not require your consent, but you have a right to object to such processing. By using our website, you acknowledge this notice of our cookie practices. By accepting and continuing to browse this site, you agree to this use. Your preferences will apply to this website only.
Note that user-behavior analytics are being captured on this server to improve the Codebeamer user experience.