Design a stack that supports push, pop, top, and retrieving the minimum element in constant time.
push(x) – Push element x onto stack.
pop() – Removes the element on top of the stack.
top() – Get the t...
分类:
其他好文 时间:
2015-07-10 23:45:14
阅读次数:
157
场景1:db内存1.5G,业务很少,平时qps不到10,每天凌晨5点到9点内存使用飙升到100%,内存100%时qps有个激增到20,cpu使用率也有激增
解决方法
1 查看缓冲池大小是900M
mysql> show variables like '%innodb_buffer_pool_size%';
+-------------------------+-----------...
分类:
其他好文 时间:
2015-07-10 15:27:27
阅读次数:
183
pool.ntp.org是一组授时服务器虚拟集群,在全球有3000多台服务器,只需要这样写就行了,具体哪台服务器提供服务无需关心。time.windows.com 微软asia.pool.ntp.org 台湾time.nist.gov 美国ntp.fudan.edu.cn 复旦timekeeper....
分类:
其他好文 时间:
2015-07-10 10:54:26
阅读次数:
462
setautocommit=0;createtablet(idint);insertintotvalues(1);第二个敞口:setautocommit=1;select*fromt;没有记录第一个窗口。commit;第二个敞口:select*fromt;有数据。select@@innodb_buffer_pool_size/1024/1024;单位:字节降低磁盘IO。默认是8MB。缓存读信息。select@@inno..
分类:
数据库 时间:
2015-07-09 14:55:26
阅读次数:
393
OSSIM5.0Debain6-x64位系统:sudoapt-getinstallbuild-essential#wgethttp://repo.zabbix.com/zabbix/2.2/debian/pool/main/z/zabbix-release/zabbix-release_2.2-1+squeeze_all.deb#dpkg-izabbix-release_2.2-1+squeeze_all.deb#apt-getupdate#apt-getinstallzabbix-server-my..
分类:
其他好文 时间:
2015-07-08 14:59:21
阅读次数:
214
前几天因为要用到cc.pool,所以就换了v3.1版本,结果连生成apk的出错(cocoscodeide),log显示为:error: relocation overflow in R_ARM_THM_CALL查阅了各种资料是已解决:把下面的语句LOCAL_ARM_MODE := arm加到下面2个...
分类:
Web程序 时间:
2015-07-08 12:34:45
阅读次数:
272
连接字符串1:Data Source=localhost,1433;User ID=sa;Password=123;Initial Catalog=test;Min Pool Size=1;Max Pool Size = 512;连接字符串2:Data Source=localhost;User I...
分类:
数据库 时间:
2015-07-08 09:27:54
阅读次数:
223
Given a constant K and a singly linked list L, you are supposed to reverse the links of every K elements on L. For example, given L being 1→2→3→4→5→6,...
分类:
其他好文 时间:
2015-07-07 11:02:57
阅读次数:
359
1 #-*- coding:utf-8 -*- 2 from multiprocessing import Pool 3 import os,time,random 4 5 def long_time_task(name): 6 print 'Run task name %s and p...
分类:
编程语言 时间:
2015-07-07 10:50:03
阅读次数:
128
Design a stack that supports push, pop, top, and retrieving the minimum element in constant time.push(x) -- Push element x onto stack.pop() -- Removes...
分类:
其他好文 时间:
2015-07-06 23:17:01
阅读次数:
129