上一页 1 2 3 4 5 6 ··· 54 下一页
摘要: 1、使用git log 2、使用gitstats 这个生成html统计页面,很方便看。还有个类似的产品是git_stats 提交次数git shortlog --numbered --summary查看所有的commit数git log --oneline | wc -l提交删除行数git log 阅读全文
posted @ 2019-11-14 10:36 凌度 阅读(5145) 评论(0) 推荐(0) 编辑
摘要: 测硬盘的读写速度可以用以下命令:dd if=/dev/zero of=file bs=1M count=1024 测内存读写速度可以使用以下命令: dd if=/dev/zero of=/dev/null bs=1M count=1024 阅读全文
posted @ 2019-10-23 15:41 凌度 阅读(3840) 评论(0) 推荐(0) 编辑
摘要: 先说标准概念: TPS:Transactions Per Second(每秒传输的事物处理个数),即服务器每秒处理的事务数。TPS包括一条消息入和一条消息出,加上一次用户数据库访问。(业务TPS = CAPS × 每个呼叫平均TPS) QPS:每秒查询率QPS是对一个特定的查询服务器在规定时间内所处 阅读全文
posted @ 2019-10-16 16:23 凌度 阅读(4395) 评论(1) 推荐(0) 编辑
摘要: #coding: utf-8 ''' Author: Time: Target: ''' import logging import logging.handlers import os import json import tornado.httpserver import tornado.ioloop import tornado.web from tornado.option... 阅读全文
posted @ 2019-09-26 10:43 凌度 阅读(977) 评论(0) 推荐(0) 编辑
摘要: 下载地址:https://pypy.org/download.html wget https://files.pythonhosted.org/packages/44/39/6bcb83cae0095a31b6be4511707fdf2009d3e29903a55a0494d3a9a2fac0/Py 阅读全文
posted @ 2019-09-20 17:22 凌度 阅读(733) 评论(0) 推荐(0) 编辑
摘要: 1、top -p 进程ID 常用的命令: P:按%CPU使用率排行 T:按MITE+排行 M:按%MEM排行 2、cat /proc/进程ID/status VmRSS对应的值就是物理内存占用 3、ps aux|grep 进程名 或者查看内存占用排名前十的:ps aux | sort -k4,4nr 阅读全文
posted @ 2019-09-17 11:07 凌度 阅读(8078) 评论(0) 推荐(0) 编辑
摘要: ps -ef|grep "c.py"|grep -v grep|awk '{print $2}' ps -ef|grep "c.py"|grep -v grep|awk '{print $2}'|xargs kill -9 kill -s 9 `ps aux|grep "python3" | awk 阅读全文
posted @ 2019-09-16 17:10 凌度 阅读(1451) 评论(0) 推荐(0) 编辑
摘要: i /etc/sysctl.conf 编辑文件,加入以下内容:net.ipv4.tcp_syncookies = 1net.ipv4.tcp_tw_reuse = 1net.ipv4.tcp_tw_recycle = 1net.ipv4.tcp_fin_timeout = 30 然后执行/sbin/ 阅读全文
posted @ 2019-09-16 16:06 凌度 阅读(1616) 评论(0) 推荐(0) 编辑
摘要: jdbc加了rewriteBatchedStatements=true就可以提升很多倍, 阅读全文
posted @ 2019-09-10 11:40 凌度 阅读(355) 评论(0) 推荐(0) 编辑
摘要: # CPU的执行时间start = time.clock()#end = time.clock()print(end-start) # 程序执行时间:start = datetime.datetime.now() #end = datetime.datetime.now()print(end-beg 阅读全文
posted @ 2019-09-09 12:29 凌度 阅读(10552) 评论(0) 推荐(1) 编辑
上一页 1 2 3 4 5 6 ··· 54 下一页