Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Problem

flex.bi server gets very slow response times to from import or report queries. Sometimes this is visible as timeout of reportscauses a report execution timeouts, sometimes as error messages about not being able to lock records or other database related messages in queues log file.

Solution

  1. Enabling logging of slow queries might help to trace the cause of the problem if it is database configuration problem. Enter these commands in you mysql configuration (

...

  1. usually /etc/my.cnf file):

    Code Block
    long_query_time                = 10
    slow_query_log                 = 1
    slow_query_log_file            = /var/log/mysql/log-slow-queries.log

...


  1. Create the file /var/log/

...

  1. messages.log-slow-queries.log

...

  1.  and make sure it can be accessed by the system user running mysql - usually user mysql.
    For example:

    Code Block

...

  1. mkdir /var/log/mysql

...

  1. 
    touch /var/log/mysql/log-slow-queries.log

...

  1. 
    chown mysql:mysql /var/log/mysql/log-slow-queries.log


  2. Then restart mysql service and monitor the file.

Filter by label (Content by label)
showLabelsfalse
max5
spacesFSC
showSpacefalse
sortmodified
reversetrue
typepage
cqllabel in ("mysql","database") and type = "page" and space = "FSC"
labelsmysql database

...

hiddentrue

...

  1. Code Block
    systemctl restart mysqld