#!/usr/bin/envpython#-*-coding:utf-8-*-importsysfromthreadingimportThreadimportsubprocessfromQueueimportQueuenum_threads=3ips=[‘127.0.0.1‘,‘192.168.20.140‘]q=Queue()defpingme(i,queue):whileTrue:ip=queue.get()print‘Thread%spinging%s‘%(i,ip)ret=subprocess.cal..
分类:
编程语言 时间:
2015-09-22 14:45:14
阅读次数:
341
之前是cacti监控的mysql,很多参数监控的不是特别明白,想着就找zabbix监控。写好监控MYSQL的配置文件UserParameter=mysql.Ping,mysqladmin-uroot-p123456ping|grepalive|wc-l
UserParameter=mysql.Threads,mysqladmin-uroot-p123456status|cut-f3-d":"|cut-f1-d"Q"
UserParame..
分类:
数据库 时间:
2015-09-21 19:44:12
阅读次数:
305
遇到一个奇怪的问题使用命令查看最大连接数 show status like ‘%connect%‘; Max_used_connections 和?Threads_connected 始终无法突破101, mysql默认设置是100最大连接数+1, 已经修改了max_connections=1000为什...
分类:
数据库 时间:
2015-09-21 12:37:29
阅读次数:
164
[root@lvhuizhen?eredis]#?erl?-pa?ebin/
Erlang/OTP?17?[erts-6.0]?[source]?[64-bit]?[smp:2:2]?[async-threads:10]?[hipe]?[kernel-poll:false]
Eshell?V6.0??(abort?with?^G)
4>?{ok,?C...
分类:
其他好文 时间:
2015-09-18 18:59:34
阅读次数:
237
原文地址:http://www.ruanyifeng.com/blog/2013/04/processes_and_threads.html进程(process)和线程(thread)是操作系统的基本概念,但是它们比较抽象,不容易掌握。最近,我读到一篇材料,发现有一个很好的类比,可以把它们解释地清晰...
分类:
编程语言 时间:
2015-09-16 15:55:04
阅读次数:
100
1 运行create_xml.c时遇到的问题 2 3 jason@ubuntu:~/Desktop/mxml-2.9$ ./configure --enable-threads 4 jason@ubuntu:~/Desktop/mxml-2.9$ make 5 jason@ubuntu:~/De.....
分类:
其他好文 时间:
2015-09-15 19:51:58
阅读次数:
147
document:CountDownLatch: A synchronization aid that allows one or more threads to wait until a set of operations being performed in ot...
分类:
其他好文 时间:
2015-09-14 13:54:31
阅读次数:
216
Immutable objects have many advantages, including:Safe for use by untrusted libraries.Thread-safe: can be used by many threads with no risk of race co...
分类:
其他好文 时间:
2015-09-14 11:52:42
阅读次数:
196
memcached 线程可分为两种,一是负责事件处理(主线程)和内存管理等的线程, 二是负责负责连接请求处理的线程即 worker threads 。这里只对 worker threads 进行讨论。从 main 函数开始分析:int main(int argc, char* argv[]) { /...
分类:
编程语言 时间:
2015-09-13 18:33:27
阅读次数:
200
程序发生了崩溃,我抓了一个mini Dump,Mini dump 有一个优点就是非常的小。比full dump 要小很多。 0:020> .loadby sos clr //首先加载sos 0:020> !threads The version of SOS does not...
分类:
数据库 时间:
2015-09-10 16:13:36
阅读次数:
1171