월간 인기 게시물

게시물 718건
   
memcached.conf
글쓴이 : 최고관리자 날짜 : 2017-09-26 (화) 13:12 조회 : 7035
                                
$ cat /etc/memcached.conf
-d
logfile /var/log/memcached.log
-m 64
-p 11211 
-u memcache
-l 172.XXX.XXX.XXX


-d     Run memcached as a daemon.
-m <num>  Use <num> MB memory max to use for object storage; the default is 64 megabytes.
-p <num>   Listen on TCP port <num>, the default is port 11211.
-u <username>  Assume the identity of <username> (only when run as root).
-l <addr>
Listen on <addr>; default to INADDR_ANY. <addr> may be specified as host:port.  If you don't specify a port number, the value you specified with -p or -U is used.  You  may  specify multiple  addresses  separated  by  comma  or  by using -l multiple times. This is an important option to consider as there is no other way to secure the installation. Binding to an internal or firewalled network interface is suggested.
-c <num>  Use <num> max simultaneous connections; the default is 1024.


# netstat -anlp |grep memcached  |grep ESTABL |wc -l
1087

-c 2048

#  echo stats | nc 172.16.217.1 11211 | grep curr_conn
STAT curr_connections 2997

#  echo stats | nc 172.16.217.1 11211 
STAT pid 16621
STAT uptime 2403870
STAT time 1526261275
STAT version 1.4.25 Ubuntu
STAT libevent 2.0.21-stable
STAT pointer_size 64
STAT rusage_user 1589.272000
STAT rusage_system 4029.416000
STAT curr_connections 2997
STAT total_connections 2793336
STAT connection_structures 3029
STAT reserved_fds 20
STAT cmd_get 52895614
STAT cmd_set 5799292
STAT cmd_flush 0
STAT cmd_touch 0
STAT get_hits 47096435
STAT get_misses 5799179
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 51083651966
STAT bytes_written 382018376333
STAT limit_maxbytes 67108864
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 malloc_fails 0
STAT bytes 6450149
STAT curr_items 791
STAT total_items 5799292
STAT expired_unfetched 2368431
STAT evicted_unfetched 0
STAT evictions 0
STAT reclaimed 2634587
STAT crawler_reclaimed 0
STAT crawler_items_checked 0
STAT lrutail_reflocked 0
END

# service memcached restart

이름 패스워드
스타일
굴림
10pt
<html> <body>
 
 
 
 
비밀글 (체크하면 글쓴이만 내용을 확인할 수 있습니다.)
왼쪽의 글자를 입력하세요.
   

 



 
사이트명 : 모지리네 | 대표 : 이경현 | 개인커뮤니티 : 랭키닷컴 운영체제(OS) | 경기도 성남시 분당구 | 전자우편 : mojily골뱅이chonnom.com Copyright ⓒ www.chonnom.com www.kyunghyun.net www.mojily.net. All rights reserved.