• Home
  • WordPress
  • web Hosting
  • linux
  • mysql
  • nginx
  • apache2
  • devops

Raju Ginni

wordpress tutorials seo hosting etc

You are here: Home / tutorials / redis install ubuntu 20.04 with wordpress php redis mysql configuration / redis slowlog enable disable view logs keys examples

redis slowlog enable disable view logs keys examples

 

Table of Contents

Toggle
  • Enable Disable redis slow log
  • Restart redis server
  • Enable disable slow log in Redis  cli
  • Check slow log memory limit
    • Change redis slow log length
  • Check redis slow log status
  • Check slow logs in command line
  • Problem: Redis slow log: 150 – 400 ms in average load

Enable Disable redis slow log

 

nano /etc/redis/conf

slowlog-log-slower-than =1000

heck redis slow logs
slowlog-log-slower-than 10000
# There is no limit to this length. Just be aware that it will consume  memory.
# You can reclaim memory used by the slow log with SLOWLOG RESET.
slowlog-max-len 128
The following time is expressed in microseconds, so 1000000 is  equivalent
# to one second. Note that a negative number disables the slow log,  while
# a value of zero forces the logging of every command.
slowlog-log-slower-than 10000

 

Save files

>> redis performance tuning

Restart redis server

 

Service redis-server restart

 

Enable disable slow log in Redis  cli

127.0.0.1:6379> config set slowlog-log-slower-than 15000

OK

 

Check slow log memory limit

config get slowlog-max-len

127.0.0.1:6379> config get slowlog-max-len
1) “slowlog-max-len”
2) “128”

slowlog-max-len 128

Change redis slow log length

config set slowlog-max-len 64

127.0.0.1:6379> config set slowlog-max-len 64
OK

Check redis slow log status

config get slowlog-log-slower-than

127.0.0.1:6379> config get slowlog-log-slower-than
1) “slowlog-log-slower-than”
2) “10000”

Check slow logs in command line

slowlog get 2

127.0.0.1:6379> slowlog get 5
1) 1) (integer) 12
2) (integer) 1620823964
3) (integer) 10166
4) 1) “GET”
2) “w3tc_1554539083_lichelps.co.in_0_object_0optionsalloptions”
5) “127.0.0.1:6016”
6) “”
2) 1) (integer) 11
2) (integer) 1620811264
3) (integer) 27686
4) 1) “GET”
2) “raazwp_b3vaaca4kz:options:alloptions”
5) “127.0.0.1:16104”
6) “”
3) 1) (integer) 10
2) (integer) 1620738752
3) (integer) 22188
4) 1) “GET”
2) “raazwp_b3vaaca4kz:options:alloptions”
5) “127.0.0.1:57556”

 

1srt: unique ID

2: timestamp

3rdone: execution tome in microseconds  = 221ms ideal 100ms  Average should be 40ms.

good 20 ms depends query key size 512MB.

4: array of command type

5 Port

 

Problem: Redis slow log: 150 – 400 ms in average load

 

mitigating:

Disabled RDB , AoF  (50% reduced work)

Disable Slow logs (some benefit)

Key Size:  largest one  13143 bytes = 13/kB

No latency: local host

latency monitor also not given any bad result.

 

Reference:

how fast is redis

Redis latency

 

 

 

tutorials

  • Core Java Tutorial Free online
  • HTML & CSS Tutorials
  • Php tutorials
  • ubuntu tutorials installation download issues etc
  • redis install ubuntu 20.04 with wordpress php redis mysql configuration
    • redis config file location ubuntu config settings
    • redis wordpress (install, configure, tweak performance ) compared with memcached
    • redis slowlog enable disable view logs keys examples
  • [INTRO] Ethical hacking / cyber Security / Penetration testing Tutorial -{updates frequently}
  • Android Studio tutorials syllabus Topics Course details #AndroidApplicationDevelopment
  • AUdio Editing Background Noise removal (Audacity, Adobe Premiere Addition, Camtasia Filmora Windows Obs)
  • what is vpn vs proxy vs tor, http vs https, http2, tcp vs udp, kali linux sql source code injection
  • how to create a website free of cost on google
  • CCNA Syllabus pdf (CCNA / CCNP vs devops vs mcsa /MCSE)
  • Redis performance metrics & tuning for nginx apache ubuntu & debian
  • xampp tutorials 2021 installation errors fix wordpress phpmyadmin mysql apache
  • new relic installation linux (infrastructure agent , php, mysql , nginx)
  • new relic mysql install integration - 2 ways fix problems
  • new relic php agent install in 3 steps
  • aws load balancer tutorial
  • git branches merge fetch pull conflicts

hi i am raju ginni, primalry i manage wordpress websites on GCP cloud platform as a cloud engineer, and create content on passionate things.
you can follow me on youtbe

© 2025 - All Rights Reserved Disclaimer & Privacy Policy