长连接(也叫持久连接)是啥? 对于PHP来讲,如果是运行在web模式,每次请求完成,php会回收所有需要的申请 …
作者存档:phpor
关于docker daemon占用大量内存的问题
问题现象: 问题环境:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 |
# docker info Containers: 5 Running: 3 Paused: 0 Stopped: 2 Images: 6 Server Version: 1.12.1 Storage Driver: devicemapper Pool Name: data-docker_thinpool Pool Blocksize: 524.3 kB Base Device Size: 21.47 GB Backing Filesystem: xfs Data file: Metadata file: Data Space Used: 5.911 GB Data Space Total: 42.95 GB Data Space Available: 37.04 GB Metadata Space Used: 1.122 MB Metadata Space Total: 2.147 GB Metadata Space Available: 2.146 GB Thin Pool Minimum Free Space: 4.295 GB Udev Sync Supported: true Deferred Removal Enabled: true Deferred Deletion Enabled: false Deferred Deleted Device Count: 0 Library Version: 1.02.107-RHEL7 (2016-06-09) Logging Driver: json-file Cgroup Driver: cgroupfs Plugins: Volume: local Network: bridge null overlay host Swarm: inactive Runtimes: runc Default Runtime: runc Security Options: seccomp Kernel Version: 3.10.0-327.el7.x86_64 Operating System: CentOS Linux 7 (Core) OSType: linux Architecture: x86_64 CPUs: 4 Total Memory: 7.389 GiB Name: iZbp10zkx5pckci8f8gzalZ ID: NRZQ:4DNU:U4LN:M4K2:TOKQ:Q7HP:ZI7A:Q6UT:RGLR:OS5G:5VDS:AYOH Docker Root Dir: /data3/docker Debug Mode (client): false Debug Mode (server): false Registry: https://index.docker.io/v1/ WARNING: bridge-nf-call-iptables is disabled WARNING: bridge-nf-call-ip6tables is disabled Insecure Registries: docker-registry.i.beebank.com:5000 127.0.0.0/8 |
dockerd 打开 …
shell 点滴 之 printf
关于tcp代理与keepalive
关于tcp代理涉及3个实体: c: client p: proxy s: server c & …
代理之mitmproxy
偶然一次又发现一个不错的代理: mitmproxy 官方地址: https://mitmproxy.org …
关于http_proxy 与https_proxy
很多程序会自动识别HTTP_PROXY , HTTPS_PROXY 环境变量,然后决定是否走代理,那么,这两个 …
优雅切换软连接的方法
对于大访问量的网站,上线代码时一般有两种方式: 直接覆盖代码目录 上传新代码目录,然后重新创建软连接 对于第一 …
PHP5 升级到PHP7时curl注意事项
(从大量的CLOSE_WAIT发现的问题) 脚本: [crayon-67442dc08c58c5 …
HTTP之Connection
HTTP的Connection头是在HTTP/1.1中添加的
tinyproxy源码学习
解析request_line 时,使用sscanf (php中也有该函数) upstream可以设置upstr …