Learn about Centmin Mod LEMP Stack today
Become a Member

Memcached Memcached not using more than 3.9gb ram

Discussion in 'Other Centmin Mod Installed software' started by Maester Aemon, Mar 28, 2016.

  1. Maester Aemon

    Maester Aemon New Member

    20
    3
    3
    Mar 24, 2016
    Ratings:
    +5
    Local Time:
    11:12 PM
    1.9.12
    Hi,

    For some reason memcached wont use more than 3.9gb ram.
    I have given it 5gb ram but it gets stuck at 3.9.

    Is it possibly running in 32bit instead of 64bit?


    And do anyone know how I can fix it?

    (sorry if this is wrong forum for it)
     
  2. eva2000

    eva2000 Administrator Staff Member

    54,358
    12,198
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,763
    Local Time:
    8:12 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    how are you confirming and determining memcached server memory allocation ? what commands ?
     
  3. Maester Aemon

    Maester Aemon New Member

    20
    3
    3
    Mar 24, 2016
    Ratings:
    +5
    Local Time:
    11:12 PM
    1.9.12
    I am using the website page.
    Here are the statistics
    [​IMG]

    And it won't increase.
     
  4. eva2000

    eva2000 Administrator Staff Member

    54,358
    12,198
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,763
    Local Time:
    8:12 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    could be bug in the web site page confirm using SSH command below
    Code (Text):
    echo stats | nc 127.0.0.1 11211

    as per Memcached Server - CentminMod.com LEMP Nginx web stack for CentOS i set /etc/init.d/memcached memory limit to MEMSIZE=5120 for 5GB and restart memcached server service and confirm it's working for me via stats variable limit_maxbytes
    Code (Text):
    STAT limit_maxbytes 5368709120

    full stats output from the SSH command with 5GB memory allocated to memcached server
    Code (Text):
    echo stats | nc 127.0.0.1 11211
    STAT pid 16924
    STAT uptime 6
    STAT time 1459166785
    STAT version 1.4.25
    STAT libevent 2.0.22-stable
    STAT pointer_size 64
    STAT rusage_user 0.004074
    STAT rusage_system 0.000000
    STAT curr_connections 5
    STAT total_connections 6
    STAT rejected_connections 0
    STAT connection_structures 6
    STAT reserved_fds 20
    STAT cmd_get 0
    STAT cmd_set 0
    STAT cmd_flush 0
    STAT cmd_touch 0
    STAT get_hits 0
    STAT get_misses 0
    STAT delete_misses 0
    STAT delete_hits 0
    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 auth_cmds 0
    STAT auth_errors 0
    STAT bytes_read 6
    STAT bytes_written 0
    STAT limit_maxbytes 5368709120
    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 16
    STAT hash_bytes 524288
    STAT hash_is_expanding 0
    STAT slab_reassign_rescues 0
    STAT slab_reassign_evictions_nomem 0
    STAT slab_reassign_inline_reclaim 0
    STAT slab_reassign_busy_items 0
    STAT slab_reassign_running 0
    STAT slabs_moved 0
    STAT lru_crawler_running 0
    STAT lru_crawler_starts 0
    STAT lru_maintainer_juggles 95
    STAT malloc_fails 0
    STAT bytes 0
    STAT curr_items 0
    STAT total_items 0
    STAT slab_global_page_pool 0
    STAT expired_unfetched 0
    STAT evicted_unfetched 0
    STAT evictions 0
    STAT reclaimed 0
    STAT crawler_reclaimed 0
    STAT crawler_items_checked 0
    STAT lrutail_reflocked 0
    STAT moves_to_cold 0
    STAT moves_to_warm 0
    STAT moves_within_lru 0
    STAT direct_reclaims 0
    END
     
  5. eva2000

    eva2000 Administrator Staff Member

    54,358
    12,198
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,763
    Local Time:
    8:12 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Also memcached web stats page shows 5GB too

    upload_2016-3-28_22-16-49.png
     
  6. eva2000

    eva2000 Administrator Staff Member

    54,358
    12,198
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,763
    Local Time:
    8:12 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    oh i see you have 1.1 used + 3.9 free = 5.0 GB total so reports correctly !
     
  7. Maester Aemon

    Maester Aemon New Member

    20
    3
    3
    Mar 24, 2016
    Ratings:
    +5
    Local Time:
    11:12 PM
    1.9.12
    Yeah it has 5gb, I get this in ssh output
    STAT limit_maxbytes 5368709120

    But it won't go over 3.9 used and 1.1 free :/
     
  8. eva2000

    eva2000 Administrator Staff Member

    54,358
    12,198
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,763
    Local Time:
    8:12 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    that's probably cause your web apps don't use more than 3.9GB
     
  9. Maester Aemon

    Maester Aemon New Member

    20
    3
    3
    Mar 24, 2016
    Ratings:
    +5
    Local Time:
    11:12 PM
    1.9.12
    It wants to use more than 3.9 but it can't its for some reason locked at 3.9gb.
     
  10. eva2000

    eva2000 Administrator Staff Member

    54,358
    12,198
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,763
    Local Time:
    8:12 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    if you think it's a bug, you'd best submit a report on official memcached bug issues tracker at Issues · memcached/memcached · GitHub
     
  11. Maester Aemon

    Maester Aemon New Member

    20
    3
    3
    Mar 24, 2016
    Ratings:
    +5
    Local Time:
    11:12 PM
    1.9.12
    I think the problem is that its running in 32bit, which is why I asked here to know if centminmod runs 32bit for it or 64bit and if I can change it from 32 to 64.
     
  12. eva2000

    eva2000 Administrator Staff Member

    54,358
    12,198
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,763
    Local Time:
    8:12 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    type
    Code (Text):
    uname -m
    echo stats | nc 127.0.0.1 11211
    

    if 1st command is x86_64 = 64bit system and 2nd command look for pointer_size is 64 = 64bit if 32 = 32bit memcached install
     
  13. Maester Aemon

    Maester Aemon New Member

    20
    3
    3
    Mar 24, 2016
    Ratings:
    +5
    Local Time:
    11:12 PM
    1.9.12
    Ok seems like it is 64bit.
    Very weird.

    Thank you.