Memcache Connection Rejections Despite Available Space

86 views
Skip to first unread message

Ahmet Faruk Dereli

unread,
Sep 4, 2023, 4:14:25 PM9/4/23
to memcached
Hello,

We've been using Memcached for our Drupal/CiviCRM site setups, and recently, I started encountering Memcache connection errors on the PHP side. Upon checking, Memcache seems to be running fine, and there are no issues with Memory, CPU, or Disk space. Additionally, Memcached is not reaching its memory limits.

However, when I run in debug mode, I observe connection rejections. There appears to be sufficient space available.

I'm looking for guidance on what else I can check to identify and resolve this issue. Any insights or suggestions would be greatly appreciated.

Thank you in advance.

Best regards,
Ahmet,

dormando

unread,
Sep 4, 2023, 4:53:10 PM9/4/23
to memc...@googlegroups.com
Hey,

Can you include the output from "stats"?

Connections have nothing to do with CPU/memory/disk space(??). There's a connection limit (-c) you're running into. The stats output will list the connection limit and if connections have been rejected because of it.

On Sep 4, 2023, at 1:14 PM, Ahmet Faruk Dereli <ahmet....@skvare.com> wrote:

Hello,
--

---
You received this message because you are subscribed to the Google Groups "memcached" group.
To unsubscribe from this group and stop receiving emails from it, send an email to memcached+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/memcached/d3b41b66-69de-4648-85c2-390be0447543n%40googlegroups.com.

Ahmet Faruk Dereli

unread,
Sep 4, 2023, 5:07:16 PM9/4/23
to memcached

Here is the output of Stats and Max Connection is default 1024.

STAT pid 4864

STAT uptime 2998936

STAT time 1693861446

STAT version 1.6.14

STAT libevent 2.1.12-stable

STAT pointer_size 64

STAT rusage_user 13987.394262

STAT rusage_system 82532.203530

STAT max_connections 1024

STAT curr_connections 17

STAT total_connections 20596143

STAT rejected_connections 0

STAT connection_structures 396

STAT response_obj_oom 0

STAT response_obj_count 1

STAT response_obj_bytes 65536

STAT read_buf_count 404

STAT read_buf_bytes 6619136

STAT read_buf_bytes_free 6537216

STAT read_buf_oom 0

STAT reserved_fds 20

STAT cmd_get 631330051

STAT cmd_set 8023749

STAT cmd_flush 0

STAT cmd_touch 0

STAT cmd_meta 0

STAT get_hits 611286014

STAT get_misses 20044037

STAT get_expired 242694

STAT get_flushed 0

STAT delete_misses 3121717

STAT delete_hits 497387

STAT incr_misses 0

STAT incr_hits 0

STAT decr_misses 0

STAT decr_hits 0

STAT cas_misses 0

STAT cas_hits 0

STAT cas_badval 0

STAT touch_hits 0

STAT touch_misses 0

STAT store_too_large 117

STAT store_no_memory 0

STAT auth_cmds 0

STAT auth_errors 0

STAT bytes_read 76408019517

STAT bytes_written 2220920094426

STAT limit_maxbytes 13958643712

STAT accepting_conns 1

STAT listen_disabled_num 0

STAT time_in_listen_disabled_us 0

STAT threads 4

STAT conn_yields 0

STAT hash_power_level 20

STAT hash_bytes 8388608

STAT hash_is_expanding 0

STAT slab_reassign_rescues 6085

STAT slab_reassign_chunk_rescues 0

STAT slab_reassign_evictions_nomem 0

STAT slab_reassign_inline_reclaim 5

STAT slab_reassign_busy_items 0

STAT slab_reassign_busy_deletes 0

STAT slab_reassign_running 0

STAT slabs_moved 45

STAT lru_crawler_running 0

STAT lru_crawler_starts 659029

STAT lru_maintainer_juggles 122729387

STAT malloc_fails 0

STAT log_worker_dropped 0

STAT log_worker_written 0

STAT log_watcher_skipped 0

STAT log_watcher_sent 0

STAT log_watchers 0

STAT unexpected_napi_ids 0

STAT round_robin_fallback 0

STAT bytes 3098827518

STAT curr_items 1027764

STAT total_items 8026776

STAT slab_global_page_pool 0

STAT expired_unfetched 589680

STAT evicted_unfetched 0

STAT evicted_active 0

STAT evictions 0

STAT reclaimed 81428

STAT crawler_reclaimed 1162226

STAT crawler_items_checked 5028977899

STAT lrutail_reflocked 8635

STAT moves_to_cold 5373497

STAT moves_to_warm 4364867

STAT moves_within_lru 3173096

STAT direct_reclaims 0

STAT lru_bumps_dropped 0

END

dormando

unread,
Sep 4, 2023, 6:01:05 PM9/4/23
to memc...@googlegroups.com
Looks like it isn't memcached rejecting your connections.

You should try a drupal support community instead. Please include the _exact_ error you are seeing. Copy/paste or a screenshot, so they can help you properly.

On Sep 4, 2023, at 2:07 PM, Ahmet Faruk Dereli <ahmet....@skvare.com> wrote:


Reply all
Reply to author
Forward
0 new messages