• Resolved americanoffroads

    (@americanoffroads)


    Hello, After website sitting for 12-24 hours clearing customer sessions or redis cache causes the site to crash and gives. Was happening on 2.3 and also on 2.4

    • Status: Connected
    • Client: PhpRedis (v5.3.7)
    • Drop-in: Valid
    • Disabled: No
    • Ping: 1
    • Errors: []
    • PhpRedis: 5.3.7
    • Relay: Not loaded
    • Predis: 2.1.2
    • Credis: Not loaded
    • PHP Version: 7.4.33
    • Plugin Version: 2.4.1
    • Redis Version: 6.0.6
    • Multisite: No
    • Metrics: Enabled
    • Metrics recorded: 2300
    • Filesystem: Working
    • Global Prefix: “wp_”
    • Blog Prefix: “wp_”
    • WP_REDIS_PREFIX: “eip2H_object_cache_americanoffroads.com”
    • WP_CACHE_KEY_SALT: “eip2H_object_cache_americanoffroads.com”
    • WP_REDIS_PLUGIN_PATH: “/var/www/americanoffroads.com/htdocs/wp-content/plugins/redis-cache”
    • WP_REDIS_SELECTIVE_FLUSH: true
    • Global Groups: [
    • “blog-details”,
    • “blog-id-cache”,
    • “blog-lookup”,
    • “global-posts”,
    • “networks”,
    • “rss”,
    • “sites”,
    • “site-details”,
    • “site-lookup”,
    • “site-options”,
    • “site-transient”,
    • “users”,
    • “useremail”,
    • “userlogins”,
    • “usermeta”,
    • “user_meta”,
    • “userslugs”,
    • “redis-cache”,
    • “blog_meta”
    • ]
    • Ignored Groups: [
    • “counts”,
    • “plugins”,
    • “themes”,
    • “theme_json”
    • ]
    • Unflushable Groups: []
    • Groups Types: {
    • “blog-details”: “global”,
    • “blog-id-cache”: “global”,
    • “blog-lookup”: “global”,
    • “global-posts”: “global”,
    • “networks”: “global”,
    • “rss”: “global”,
    • “sites”: “global”,
    • “site-details”: “global”,
    • “site-lookup”: “global”,
    • “site-options”: “global”,
    • “site-transient”: “global”,
    • “users”: “global”,
    • “useremail”: “global”,
    • “userlogins”: “global”,
    • “usermeta”: “global”,
    • “user_meta”: “global”,
    • “userslugs”: “global”,
    • “redis-cache”: “global”,
    • “counts”: “ignored”,
    • “plugins”: “ignored”,
    • “themes”: “ignored”,
    • “blog_meta”: “global”,
    • “theme_json”: “ignored”
    • }
    • Drop-ins: [
    • “advanced-cache.php v by “,
    • “Redis Object Cache Drop-In v2.4.1 by Till Krüss”
    • ]

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Till Krüss

    (@tillkruess)

    Thanks for reporting this. Are you monitoring your redis process? Does it run out of memory after 12-24 hours? Can you post your redis-cli INFO output?

    Thread Starter americanoffroads

    (@americanoffroads)

    Here is the output:

    redis_version:6.0.6
    redis_git_sha1:00000000
    redis_git_dirty:0
    redis_build_id:d463d609620685c0
    redis_mode:standalone
    os:Linux 5.4.0-148-generic x86_64
    arch_bits:64
    multiplexing_api:epoll
    atomicvar_api:atomic-builtin
    gcc_version:9.3.0
    process_id:3971162
    run_id:6bba9fbba1619469e0c5ff82373305de878295a9
    tcp_port:6379
    uptime_in_seconds:41906
    uptime_in_days:0
    hz:10
    configured_hz:10
    lru_clock:5583737
    executable:/usr/bin/redis-server
    config_file:/etc/redis/redis.conf # Clients
    connected_clients:5
    client_recent_max_input_buffer:2
    client_recent_max_output_buffer:0
    blocked_clients:0
    tracking_clients:0
    clients_in_timeout_table:0 # Memory
    used_memory:1540721576
    used_memory_human:1.43G
    used_memory_rss:1585147904
    used_memory_rss_human:1.48G
    used_memory_peak:1791419552
    used_memory_peak_human:1.67G
    used_memory_peak_perc:86.01%
    used_memory_overhead:31733074
    used_memory_startup:802040
    used_memory_dataset:1508988502
    used_memory_dataset_perc:97.99%
    allocator_allocated:1541096784
    allocator_active:1573212160
    allocator_resident:1600700416
    total_system_memory:16786857984
    total_system_memory_human:15.63G
    used_memory_lua:412672
    used_memory_lua_human:403.00K
    used_memory_scripts:944
    used_memory_scripts_human:944B
    number_of_cached_scripts:2
    maxmemory:1782579200
    maxmemory_human:1.66G
    maxmemory_policy:allkeys-lfu
    allocator_frag_ratio:1.02
    allocator_frag_bytes:32115376
    allocator_rss_ratio:1.02
    allocator_rss_bytes:27488256
    rss_overhead_ratio:0.99
    rss_overhead_bytes:-15552512
    mem_fragmentation_ratio:1.03
    mem_fragmentation_bytes:44468840
    mem_not_counted_for_evict:0
    mem_replication_backlog:0
    mem_clients_slaves:0
    mem_clients_normal:84930
    mem_aof_buffer:0
    mem_allocator:jemalloc-5.1.0
    active_defrag_running:0
    lazyfree_pending_objects:0 # Persistence
    loading:0
    rdb_changes_since_last_save:244
    rdb_bgsave_in_progress:0
    rdb_last_save_time:1683305048
    rdb_last_bgsave_status:ok
    rdb_last_bgsave_time_sec:6
    rdb_current_bgsave_time_sec:-1
    rdb_last_cow_size:2408448
    aof_enabled:0
    aof_rewrite_in_progress:0
    aof_rewrite_scheduled:0
    aof_last_rewrite_time_sec:-1
    aof_current_rewrite_time_sec:-1
    aof_last_bgrewrite_status:ok
    aof_last_write_status:ok
    aof_last_cow_size:0
    module_fork_in_progress:0
    module_fork_last_cow_size:0 # Stats
    total_connections_received:44260
    total_commands_processed:10335872
    instantaneous_ops_per_sec:0
    total_net_input_bytes:20478671506
    total_net_output_bytes:151765704163
    instantaneous_input_kbps:0.00
    instantaneous_output_kbps:0.00
    rejected_connections:0
    sync_full:0
    sync_partial_ok:0
    sync_partial_err:0
    expired_keys:519
    expired_stale_perc:0.00
    expired_time_cap_reached_count:0
    expire_cycle_cpu_milliseconds:3080
    evicted_keys:145423
    keyspace_hits:20061149
    keyspace_misses:805436
    pubsub_channels:0
    pubsub_patterns:0
    latest_fork_usec:36660
    migrate_cached_sockets:0
    slave_expires_tracked_keys:0
    active_defrag_hits:0
    active_defrag_misses:0
    active_defrag_key_hits:0
    active_defrag_key_misses:0
    tracking_total_keys:0
    tracking_total_items:0
    tracking_total_prefixes:0
    unexpected_error_replies:0 # Replication
    role:master
    connected_slaves:0
    master_replid:11b189e23a2581445004f581adfcf80ee7e9c43d
    master_replid2:0000000000000000000000000000000000000000
    master_repl_offset:0
    second_repl_offset:-1
    repl_backlog_active:0
    repl_backlog_size:1048576
    repl_backlog_first_byte_offset:0
    repl_backlog_histlen:0 # CPU
    used_cpu_sys:384.824559
    used_cpu_user:227.312600
    used_cpu_sys_children:82.795809
    used_cpu_user_children:650.217919 # Modules # Cluster
    cluster_enabled:0 # Keyspace
    db0:keys=543642,expires=18697,avg_ttl=3866585177
    Plugin Author Till Krüss

    (@tillkruess)

    maxmemory_policy:allkeys-lfu
    used_memory_dataset_perc:97.99%

    These two are standing out. You’re using near 100% of your Redis memory and using allkeys-lfu which will cause CPU load.

    I’d suggest allocating more memory to the Redis Server to ensure you don’t pressure it around 100%.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Socket Error On Read Socket’ is closed to new replies.