Jmeter集群压测架构图 其中Jmeter Controller是作为master(在jmeter是client端)用于发布压测用例和回收压测结果。 而其他的slave(在jmeter是server端)用于分布式压测。 配置SLAVE server_port=24001 server.rmi.localhostname=10.8.39.120 server.rmi.localport=26001 启动SLAVE 命令 %JMETER_HOME%\bin\jmeter-server.bat -Djava.rmi.server.hostname=10.8.39.114 java.rmi.ser…
2016-08-03 16:20 · 压力测试
参考地址: https://www.getpostman.com/docs/capture 1、安装postman代理,需要使用到python2.7或python3.4的版本; 2、安装pip工具,先将该文件下载下来: get-pip.py 。然后执行以下命令安装; python get-pip.py 3、再通过pip安装postman proxy(window环境下) python -m pip install PostmanProxy
2016-08-01 11:35 · postman
问题场景:在未通过nginx代理情况下所有业务逻辑正常,但是经常nginx代理后某些业务就报空指针错误。 报错提示: java.lang.NullPointerException at org.springframework.web.util.WebUtils.isSameOrigin(WebUtils.java:816) at org.springframework.web.cors.DefaultCorsProcessor.processRequest(DefaultCorsProcessor.java:76) at org.springframework.web.servlet.han…
2016-07-18 16:32 · nginx
统计示例: 引用自: http://icoon22.tistory.com/319 spring-data-mongodb语法: BasicDBObject cmdBody = new BasicDBObject("aggregate", "productHistory"); ArrayList<BasicDBObject> pipeline = new ArrayList<BasicDBObject>(); String fmt = "yyyyMMddHHmmss"; Date fromDate = Utils.strToDate(StringUtils.defaultString("20…
2016-07-03 13:50 · DB/Mongodb
转自: http://dannyyuan.blog.51cto.com/212520/118351 项目需要用https与服务器进行连接,获取系统需要的一些配置参数。以前是用http进行连接的,客户端代码比较简单,直接使用URL类进行连接并获取输入流即可。试着在浏览器中输入相应的https连接地址,提示证书确认,确认以后就访问到内容了。 改成https以后碰到了一些问题。原以为Java可能已经封装好了,所以把直接把原来的http连接改成https,结果抛出异常:java.lang.UnsupportedClassVersionError: test/url/URLTest (Unsuppor…
2016-05-11 17:13 · Java/Security、Spring Security/OAuth2 · 安全、网络等概念
转自: http://blog.csdn.net/faye0412/article/details/6883879 这两天在twitter服务器上忽然遇到这样的异常: e: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target 经过检查确认,完整的异常信息应该如下: ja…
2016-05-11 17:11 · Java/Security、Spring Security/OAuth2 · 安全、网络等概念
自定义WhitelabelApprovalEndpoint的/oauth/confirm_access页面内容有两种方法: 通过在@Controller注解的类下再添加@SessionAttributes("authorizationRequest")注解. import javax.servlet.http.HttpServletRequest; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org…
2016-05-06 17:48 · Java/Security、Spring Security/OAuth2