上一页 1 2 3 4 5 6 7 8 9 ··· 16 下一页
Native Memory Tracking java8给HotSpot VM引入了Native Memory Tracking (NMT)特性,可以用于追踪JVM的内部内存使用 使用 开启 -XX:NativeMemoryTracking=summary 使用-XX:NativeMemoryTra Read More
posted @ 2022-02-25 21:39 ck_2016 Views(180) Comments(0) Diggs(0)
(1)开启 GC 日志 java -XX:+PrintGCDetails -XX:+HeapDumpBeforeFullGC -XX:+PrintHeapAtGC 得如如下类似日志: [PSYoungGen: 611840K->992K(612352K)] 1260846K->650606K(130 Read More
posted @ 2022-02-25 21:33 ck_2016 Views(1044) Comments(0) Diggs(0)
一.JProfiler是什么 JProfiler是由ej-technologies GmbH公司开发的一款性能瓶颈分析工具(该公司还开发部署工具)。其特点: 使用方便 界面操作友好 对被分析的应用影响小 CPU,Thread,Memory分析功能尤其强大 支持对jdbc,noSql, jsp, se Read More
posted @ 2022-02-25 13:42 ck_2016 Views(1091) Comments(0) Diggs(0)
第一步:下载jprofiler压缩包到本地 jprofiler下载地址:https://www.ej-technologies.com/download/jprofiler/files 如下图所示,选择linux版本的压缩包,下载完后的文件名为:jprofiler_linux_11_1_2.tar. Read More
posted @ 2022-02-25 13:35 ck_2016 Views(810) Comments(0) Diggs(0)
转自:https://www.cnblogs.com/wade-luffy/p/6106054.html Read More
posted @ 2022-02-23 21:02 ck_2016 Views(26) Comments(0) Diggs(0)
ZGC(The Z Garbage Collector)是JDK 11中推出的一款低延迟垃圾回收器,它的设计目标包括: 停顿时间不超过10ms; 停顿时间不会随着堆的大小,或者活跃对象的大小而增加; 支持8MB~4TB级别的堆(未来支持16TB)。 从设计目标来看,我们知道ZGC适用于大内存低延迟服 Read More
posted @ 2022-02-14 18:37 ck_2016 Views(198) Comments(0) Diggs(0)
对象的创建和销毁在一定程度上会消耗系统的资源,虽然jvm的性能在近几年已经得到了很大的提高,对于多数对象来说,没有必要利用对象池技术来进行对象的创建和管理。但是对于有些对象来说,其创建的代价还是比较昂贵的,比如线程、tcp连接、rpc连接、数据库连接等对象,因此对象池技术还是有其存在的意义。Apac Read More
posted @ 2022-01-26 19:30 ck_2016 Views(386) Comments(0) Diggs(2)
一、目前应用比较普遍的java单元测试工具 junit4+Mock(Mockito /jmock / powermock)或Stub(用得较少,一般不推荐),由于junit3目前用得不多,基本升级到junit4了,所以就直接简单说下junit4。 问题一:为什么需要mock或stub?它与junit Read More
posted @ 2022-01-11 19:29 ck_2016 Views(2970) Comments(0) Diggs(0)
1. Common Opt $ git config --global -l //查看本地配置 $ git config --global user.name jack张三 //设置用户名 $ git config --global user.email jack@test.com //设置邮箱 $ Read More
posted @ 2021-12-09 11:02 ck_2016 Views(53) Comments(0) Diggs(0)
官网地址: https://github.com/jvm-profiling-tools/async-profiler 如果你经常遇到 Java 线上性能问题束手无策,看着线上服务 CPU 飙升一筹莫展,发现内存不断泄露满脸茫然。别慌,这里有一款低开销、自带火焰图、让你大呼好用的 Java 性能分析 Read More
posted @ 2021-12-08 18:07 ck_2016 Views(4691) Comments(0) Diggs(0)
上一页 1 2 3 4 5 6 7 8 9 ··· 16 下一页