最近用IDEA开发一个SpringBoot项目,启动时发现耗时很久,IDEA提示说macOS里面需要配置hosts 经过百度发现这个https://www.cnblogs.com/549294286/p/8515351.html解决了我的问题,不过该博主言简意赅,忽略一些细节 我整理之后,比较明细 Read More
posted @ 2020-09-06 22:12 Mosicol Views(389) Comments(0) Diggs(0) Edit
#!/bin/bash ms=`date +%-H%M` if ((10#$1 <= 10#$ms));then echo "future time,please" exit 0 fi while ((10#$1 != 10#$ms)) do ms=`date +%H%M` if ((10#$1-1 Read More
posted @ 2020-06-30 19:59 Mosicol Views(341) Comments(0) Diggs(0) Edit
1.监视Redis实例 ./redis-cli --stat data load - child - keys mem clients blocked requests connections 8 1.47M 3 0 29938813 (+0) 2816 8 1.47M 3 0 29940663 ( Read More
posted @ 2020-06-03 09:25 Mosicol Views(152) Comments(0) Diggs(0) Edit
查看启动进程数量限制 [root@iZwz9h7vaitskfg8a0mnflZ ~]# ulimit -u 15076 查看进程启动线程的数量限制 [root@iZwz9h7vaitskfg8a0mnflZ ~]# ulimit -n 65535 修改很简单,在对应的命令后面添加数字即可 [roo Read More
posted @ 2020-06-02 14:35 Mosicol Views(420) Comments(0) Diggs(0) Edit
需求: 同时打印出:请求体(json)和响应体(json) 先给大家看结果: 如下图:可见请求体和返回体同时打印出来了 实现代码: BeanShell PreProcessor import org.json.*; import org.apache.jmeter.config.*; Argumen Read More
posted @ 2020-05-23 00:00 Mosicol Views(270) Comments(0) Diggs(0) Edit
1.安装依赖 yum install zlib-devel gcc make git autoconf autogen automake pkgconfig 2.安装netdata mkdir netdata cd netdata/ wget http://firehol.org/download/ Read More
posted @ 2020-05-13 18:09 Mosicol Views(240) Comments(0) Diggs(0) Edit
1.安装expect yum install expect 2.编写脚本 #!/usr/bin/expect set timeout 10 set username [lindex $argv 0] set host [lindex $argv 1] #{}包起来密码,因为密码中有个“[”会报错,或 Read More
posted @ 2020-05-09 16:59 Mosicol Views(1122) Comments(0) Diggs(0) Edit
Linux系统下生成TPS,ResponseTime曲线图 1.背景 经常在Linux服务器执行压测,结束之后,将压测数据文件导出到Windows的jmeter桌面版本进行处理,有时传输文件较慢。因此有了在Linux系统下处理数据生成png图片的形式,到时统一导出png结果图片。 2.搭建环境 安装 Read More
posted @ 2020-05-09 14:29 Mosicol Views(613) Comments(0) Diggs(0) Edit
之前一直分不清left join join(inner join) right join这三种join分别代表怎样的含义,现在记录一下方便以后查阅 先看一条SQL select * from table1 [left,right] join table2 on table1.id = table2. Read More
posted @ 2020-05-06 09:21 Mosicol Views(263) Comments(0) Diggs(0) Edit
// md5import org.apache.commons.codec.digest.DigestUtils; String str = "${appid}" + "${appkey}" + "${salt}"; String sign = DigestUtils.md5Hex(str); va Read More
posted @ 2020-04-22 17:16 Mosicol Views(596) Comments(0) Diggs(0) Edit