Improving database performanceImproving database performanceYou can improve Database Server performance in the following ways:
Customizing memory size and limits for the Database ServerAn integration build analysis error like the following may indicate a need to customize memory parameters: kwloaddb - Klocwork Project Database Creation Utility Error: at com.klocwork.database.Agent.processSQLError(Unknown Source) at com.klocwork.database.Agent.doCommand(Unknown Source) Error occurred while loading database: Database error occurred: The table 'tmp_metrics_from' is full in SQL statement 'insert into my_project__shared.' To customize memory size and limits for the Database Server:
Next: Resume the integration build analysis. See C/C++ | Java | C# Kwmysql.ini parametersIf your projects are large, and you want to improve the performance of theKlocwork database, you can customize the kwmysql.ini file, located at <Server_install>/config/kwmysql.ini. Remember to restart the Klocwork Servers after you modify the file. Suggested changes to default parameters
Suggested additional parametersYou may also want to add these new parameters and values to the file. See the example file that follows.
Example customized kwmysql.ini fileHere's a kwmysql.ini file that's been customized for a deployment based on a machine with 4 GB of RAM, dedicated to running the Klocwork Servers. Changes or additions to the default file are in italics. [mysqld] # character_set_server=utf8 # console # innodb_file_per_table innodb_fast_shutdown=0 # innodb_data_file_path=ibdata1:10M:autoextend # key_buffer_size = 200M # innodb_buffer_pool_size = 1G innodb_log_file_size = 100M innodb_log_files_in_group = 2 # binlog_cache_size = 32K # read_buffer_size = 2M read_rnd_buffer_size = 2M sort_buffer_size = 4M join_buffer_size = 1M bulk_insert_buffer_size = 10M # skip-external-locking default-storage-engine = MYISAM max_connect_errors=999999999 lower_case_table_names=1 # query_cache_size = 128M query_cache_limit = 2M query_cache_type = 1 # myisam_max_sort_file_size = 4G myisam_sort_buffer_size = 8M tmp_table_size = 256M max_heap_table_size = 256M table_open_cache=300 open_files_limit=2048 Use the following formula when setting your memory values: innodb_buffer_pool_size + key_buffer_size + query_cache_size + (join_buffer_size + sort_buffer_size) * max_connections < accessible RAM Note: The amount of accessible RAM for a 32-bit process is only 2 GB.
|