上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 40 下一页
摘要: jstack `jps|grep Bootstrap|awk '{print $1}'`|grep "java.lang.Thread.State:"|awk '{print $2}'|sort|uniq -c|awk '{print $2 ":" $1}' # RUNNABLE:19 # 可运行线程的线程状态。 # TIMED_WAITING:98 # 具有指定等... 阅读全文
posted @ 2019-11-07 14:39 chenzechao 阅读(808) 评论(0) 推荐(0)
摘要: # 注意点: # 项目运行的用户 # 使用的jdk版本下的jstack去查看 /opt/jdk1.8.0_191/bin/jmap -dump:format=b,file=/webser/www/`date +%Y%m%d`.zip `ps -ef |grep tomcat |grep -v "grep"|awk '{print $2}'` 阅读全文
posted @ 2019-11-07 14:31 chenzechao 阅读(265) 评论(0) 推荐(0)
摘要: # 1. 查看主进程占用cpu高 top # 1647 java # 2. 按照线程占用cpu由高到低进行排查: ps -mp 1647 -o THREAD,tid,time | sort -rn |head -6 # USER %CPU PRI SCNT WCHAN USER SYSTEM TID TIME # root 1.6 - - - - - - 00:02:07 # root 0.1 1 阅读全文
posted @ 2019-11-07 14:30 chenzechao 阅读(1338) 评论(0) 推荐(0)
摘要: 从过去的行为预测未来,是一种提问技巧。 情景 : Situation 当时怎么了 当时你所在团队主要销售任务是什么目标 : Task 你要干什么 当时你的销售业绩是多少行动 : Action 你都干了什么 你都做了什么销售动作结果 : Result 最后成了没 你的销售成绩怎么样,在团队中的排名怎么 阅读全文
posted @ 2019-11-06 15:35 chenzechao 阅读(2725) 评论(0) 推荐(0)
摘要: wget -b -r -np -L -p https://dev.mysql.com/doc/refman/5.6/en/ 在下载时。有用到外部域名的图片或连接。如果需要同时下载就要用-H参数。 wget -np -nH -r –span-hosts www.xianren.org/pub/path/ -c 断点续传 -r 递归下载,下载指定网页某一目录下(包括子目录)的所有文件 -n... 阅读全文
posted @ 2019-10-14 10:11 chenzechao 阅读(376) 评论(0) 推荐(0)
摘要: ### 1. 查看系统是否支持中文 locale -a ### 2. 如不支持需安装中文包 apt-get install language-pack-zh-hans -y ### 3. 添加中文支持 locale-gen zh_CN.UTF-8 locale ### 4. 修改配置 cat >>/etc/bash.bashrc <<'EOF' export LC_ALL='zh_CN.UTF-8 阅读全文
posted @ 2019-10-07 22:01 chenzechao 阅读(1419) 评论(0) 推荐(0)
摘要: https://hub.docker.com/r/9fevrier/oracle-11g Informations Oracle directory : /opt/oracle Data directory : /app/oracle/data SID : orcl Login/password : 阅读全文
posted @ 2019-09-27 18:15 chenzechao 阅读(449) 评论(0) 推荐(0)
摘要: /** * 去右空格 * @param str * @return */ public String trimRight(String str) { if (str == null || str.equals("")) { return str; } else { return str.replaceAll("[ ]+$", ""); } } /** * 去左空格 * @param str * @ 阅读全文
posted @ 2019-09-26 17:42 chenzechao 阅读(4276) 评论(0) 推荐(0)
摘要: select t1.table_schema ,t1.table_name ,t1.table_comment ,t2.ordinal_position ,t2.column_name ,t2.data_type ,t2.character_maximum_length ,t2.column_typ 阅读全文
posted @ 2019-09-18 09:54 chenzechao 阅读(1635) 评论(0) 推荐(0)
摘要: ### 启动后不退出容器 docker run -d --name JD-DailyBonus -v "$PWD":/usr/src/app node:latest /bin/bash -c "while true;do echo hello docker;sleep 1d;done" ### 查找 阅读全文
posted @ 2019-09-15 11:43 chenzechao 阅读(230) 评论(0) 推荐(0)
上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 40 下一页