摘要: 硬件概述:cpu:24,内存:20g,磁盘:10*2.7T。 写入性能:(不对ip进行添加geo信息)。 写入性能对比 速度 Commit耗时(秒) 500*1000条 Bulk耗时(秒) 1000条dns Bulk耗时(秒) 1000条tcpflow Bulk耗时(秒) 1000条weblog C 阅读全文
posted @ 2019-09-09 17:35 vsop_479 阅读(777) 评论(0) 推荐(0) 编辑
摘要: 写入对比每个路径下都只能有一个IndexWriter负责写入,通过writer.lock实现。不同:lucene可以多个线程共享一个IndexWriter,每个线程负责写一个segment,从addDocument到index都用es bulk线程。详见:https://www.cnblogs.co 阅读全文
posted @ 2019-09-03 18:26 vsop_479 阅读(531) 评论(0) 推荐(0) 编辑
摘要: 启动ServerBootstrap时,由main(启动线程)初始化bossGroup和childGroup,启动boss NioEventloop对应的thread,将NioServerSocketChannel(监听的端口)注册任务添加到该NioEventloop的taskQueue。线程启动后监 阅读全文
posted @ 2019-06-20 11:53 vsop_479 阅读(134) 评论(0) 推荐(0) 编辑
摘要: NioEventLoop.run select处理IO事件(boss/worker)流程:processSelectedKeysprocessSelectedKeysOptimizedprocessSelectedKey以read为例:unsafe.read()NioServerSocketChan 阅读全文
posted @ 2019-06-20 11:25 vsop_479 阅读(203) 评论(0) 推荐(0) 编辑
摘要: NioEventLoopGroup只传入nThreads即可,创建nThreads个NioEventLoop,boss为NioEventLoop注册建立的channel时,使用默认的ThreadPerTaskExecutor.execute为每个NioEventLoop一对一创建thread,Nio 阅读全文
posted @ 2019-06-19 18:21 vsop_479 阅读(549) 评论(0) 推荐(0) 编辑
摘要: 1:服务器执行nohup sh /usr/local/mat/ParseHeapDump.sh es9.bin org.eclipse.mat.api:suspects org.eclipse.mat.api:overview org.eclipse.mat.api:top_components > 阅读全文
posted @ 2019-05-29 18:35 vsop_479 阅读(347) 评论(0) 推荐(0) 编辑
摘要: pid:Unable to open socket file: target process not responding or HotSport VM not loadedThe -F option can be used when the target process is not respon 阅读全文
posted @ 2019-05-29 14:40 vsop_479 阅读(12453) 评论(0) 推荐(0) 编辑
摘要: 开发调式时,对程序生成dump文件:1:需要生成的时机,加Thread.sleep(600*1000)。2:打开jvisualvm找到该程序进程号。3:jmap。 阅读全文
posted @ 2019-05-16 18:54 vsop_479 阅读(210) 评论(0) 推荐(0) 编辑
摘要: breaker的估算,是根据语句以及上层的结果数,加上固定的值,不准确。 cache.size是cache到结果的size,准确。 所以,配置breaker不能拦截占用内存的聚合查询,而配置cache.size可以限制cache占用的内存。 keyword,ip等类型的聚合也会占用fielddata 阅读全文
posted @ 2019-04-09 18:03 vsop_479 阅读(224) 评论(0) 推荐(0) 编辑
摘要: safepoint: JIT编码时,会在代码中所有方法的返回之前,以及所有非counted loop的循环(无界循环)回跳之前放置一个safepoint(counted loop则没有放置safepoint)。GC 等操作时,需要所有线程达到safepoint。 UseCountedLoopSafe 阅读全文
posted @ 2019-02-15 15:34 vsop_479 阅读(1321) 评论(0) 推荐(0) 编辑