ITeye博客

我的垃圾箱

woxiangbo · 共 111 篇文章

读 properties

public class PropUtil { private static String getKey(String key){ Properties properties = new Properties(); InputStream inputStream = PropUtil.class.getClassLoader().getResourceAsStream("system.properties"); System.out.println(inputStream); try { properties.load(inputStream); } catch (IOException e…

2019-01-14 14:54 · 评论(0)

influxdb

重启 : influxdb sudo service influxdb restart

2018-10-30 12:58 · 评论(0)

linux shell 查询oracle数据库中的值 并返回

#!/bin/bash dbserver=10.21.2.152 port=1521 username=COLDB2 password=creditderivative sid=orcl select_sql="select count(*) as rowsCount from f3distcalccounter;" rowsCount=`sqlplus -s ${username}/${password}@${dbserver}:${port}/${sid} <<EOF set pagesize 0 heading off echo off termout off feedback off…

2017-09-11 17:36 · linux · 评论(0)

CPU 100%问题跟踪

主要参考了 http://www.blogjava.net/hankchen/archive/2012/05/09/377735.html 查找占用CPU最多的线程并排序 ps -To pcpu,tid -C java | sort -r -k1 | more

2017-08-01 16:30 · 评论(0)

java 读取properties文件

package com.fotree.yidong; import java.io.BufferedInputStream; import java.io.File; import java.io.FileInputStream; import java.io.InputStream; import java.util.Properties; import java.util.concurrent.TimeUnit; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.s…

2017-05-09 07:48 · 评论(0)

Selenium Webdriver重新使用已打开的浏览器实例(IE 版)

看了 http://blog.csdn.net/wwwqjpcom/article/details/51232302 这个的文章,照葫芦画瓢,弄了一个IE版本。 MyIEDriver.java import java.io.IOException; import java.net.MalformedURLException; import java.net.URL; import java.util.Map; import org.openqa.selenium.Capabilities; import org.openqa.selenium.Platform; import org.ope…

2017-05-04 19:37 · selenium · 评论(0)

Unsupported major.minor version 52.0 解决

java.lang.UnsupportedClassVersionError: org/openqa/selenium/WebDriver : Unsupported major.minor version 52.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:800) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) at …

2017-04-06 20:02 · selenium · 评论(0)

Zabbix简介及安装

Zabbix监控 监控重要性: 运维的一切工作都是需要监控 网络监控 监控网络延时 硬件监控 1 机房巡检 2 IPMI工具 智能平台管理接口 yum -y install OpenIPMI ipmitool -y 获取不到硬盘 工具 MegaCli攻击查看Raid磁盘整列 系统监控 CPU 内存 硬盘 网络 cpu指标 lscpu 显示cpu信息 uptime 显示cpu1 分钟 5分钟 10分钟平均负载 top cpu使用率 mpstat vmast 用户态 普通进程 内核态 如打开一个文件 了解监控对象 监控对象的指标 内存 free -m smokeping 推荐工具 使用rrdto…

2017-02-18 12:16 · zabbix · 评论(0)

Jmeter 获取当前目录并创建文件夹

import org.apache.jmeter.gui.GuiPackage; import org.apache.commons.io.FilenameUtils; import java.io.File; import java.io.IOException; String testPlanFileDir = FilenameUtils.getFullPathNoEndSeparator(GuiPackage.getInstance().getTestPlanFile()); testPlanFileDir = testPlanFileDir.replace("jmeter\\plan…

2016-10-13 15:33 · 评论(0)

performance test plan

refer the attachments

2016-09-09 11:04 · 评论(0)

Maven Ant Plugin in JMeter

I have post 2 essay in my blog: [JMeter Ant build]: http://howtesting.blogspot.com/2013/07/jmeter-ant-build.html [JMeter Maven Tutorial]: http://howtesting.blogspot.com/2013/07/jmeter-maven-tutorial-version-181.html Because Document of JMeter is very poor, If you like to make pom.xml, you should re…

2016-08-31 10:23 · 评论(0)

Referencing the Maven Classpaths

A property is set in the Ant build for each project dependency. Each property name uses the format groupId:artifactId:type[:classifier] . For example, to show the path to a jar dependency with groupId "org.apache" and artifactId "common-util", the following could be used. <echo message="${org.apach…

2016-08-31 09:16 · 评论(0)

SqlPlus 远程连接数据库

有两台机器A 和B ,B 上装的有数据库,现在想在A上直接用sqlplus 链接过去 1 : 把附件中的 oralce客户端放到 A 机器,解压缩,配777权限,并配置环境变量 2 :创建一个shell 类似下面 : DB_USER="username" DB_PASSWD=aaaaaaaa DB_SERVER=1.2.3.4:1521 DB_SID=pst4 select_sql="Select * from Databaseversion" sqlplus ${DB_USER}/${DB_PASSWD}@\"//${DB_SERVER}/${DB_SID}\" <<EOF `echo "…

2016-08-08 14:53 · 评论(0)

Jmeter json 提取字符串

{ "data": [ { "text":"aaaaaaaa", "value" : "1" }, { "text":"bbbbbbbbbbbbbb", "value" : "2" }, { "text":"ccccc", "value" : "3" } ] } 我想要提取 cccc 所对应的值 3 : $..data[?(@.text=='cccccc')].value 即可. 参考链接 : http://goessner.net/articles/JsonPath/index.html#e2

2016-07-28 16:06 · Jmeter · 评论(0)

用正则表达式替换的时候,同时保留原来的内容

Jack Chen ^(\d+) (.*)$ 10:37 AM \1abc \2 \1 表示第一个括号的内容 \2 表示第二个括号的内容

2016-04-28 10:38 · 评论(0)