摘要: <script type="text/javascript"> $(function(){ #foreach( $var in $entity.showConfigs ) $.each(qs, function(index,value){ var currentName = $(value).att 阅读全文
posted @ 2017-03-01 16:19 小N~ 阅读(4452) 评论(0) 推荐(0) 编辑
摘要: 随笔记录。 //创建一个ChannelFactory(客户端代码) ChannelFactory factory = new NioClientSocketChannelFactory( Executors.newCachedThreadPool(), Executors.newCachedThre 阅读全文
posted @ 2016-11-17 13:40 小N~ 阅读(1559) 评论(0) 推荐(0) 编辑
摘要: 只针对BIO模式,目标请求会sleep两秒再返回结果,通过jmeter测试工具进行并发测试 操作系统:windows && linux tomcat7测试: <Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000" ma 阅读全文
posted @ 2016-09-30 15:36 小N~ 阅读(10080) 评论(0) 推荐(1) 编辑
摘要: 版本说明: linux: 1.8.1 luajit:2.0.2(不要使用标准lua,应当使用luajit, 后者的效率比前者高很多) ngx_devel_kit: 0.2.18 lua-nginx-module: 0.9.8 (之前用了0.8.6版本,在编译nginx出现了一些方法变量未定义之类的问 阅读全文
posted @ 2016-07-28 15:37 小N~ 阅读(528) 评论(0) 推荐(0) 编辑
摘要: 类继承关系: NonfairSync => Sync => AbstractQueuedSynchronizer 类NonfairSync final void lock() { if (compareAndSetState(0, 1)) setExclusiveOwnerThread(Thread 阅读全文
posted @ 2016-07-01 17:37 小N~ 阅读(1215) 评论(0) 推荐(0) 编辑
摘要: 参考资料: http://blog.csdn.net/zgl_dm/article/details/6291984 http://blog.csdn.net/cywosp/article/details/23397179/ https://en.wikipedia.org/wiki/Vector_c 阅读全文
posted @ 2016-06-22 11:52 小N~ 阅读(499) 评论(0) 推荐(0) 编辑
摘要: 准备命令: //查看隔离级别 select @@global.tx_isolation, @@tx_isolation; //修改当前会话隔离级别 set session tx_isolation='read-uncommitted'; set session tx_isolation='read- 阅读全文
posted @ 2016-05-30 10:43 小N~ 阅读(214) 评论(0) 推荐(0) 编辑
摘要: window7安装module出现 Connot find module 'xxx' 解决办法: 添加环境变量命名为:NODE_PATH 设置值为:%AppData%\npm\node_modules (windowXP为%USERPROFILE%\Application Data\npm\node 阅读全文
posted @ 2016-05-12 16:54 小N~ 阅读(2887) 评论(0) 推荐(0) 编辑
摘要: 官方文档: https://www.elastic.co/guide/en/logstash/current/plugins-filters-grok.html 基本语法: %{SYNTAX:SEMANTIC} SYNTAX:定义的正则表达式名字(系统插件自带的默认位置:$HOME/vendor/b 阅读全文
posted @ 2016-03-30 14:36 小N~ 阅读(18467) 评论(1) 推荐(0) 编辑
摘要: 下载地址: https://www.elastic.co/downloads 版本:logstash-2.2.2 两台linux虚拟机,一台windows宿主机 shipper: 192.168.220.128 (centos7) indexer: 192.168.220.129 (centos7) 阅读全文
posted @ 2016-03-30 09:22 小N~ 阅读(562) 评论(0) 推荐(0) 编辑