background picture of the home page

Hi,Friend

如何使用go pprof定位内存泄露

go pprof基本知识关于Go的内存泄露有这么一句话不知道你听过没有:10次内存泄露,有9次是 goroutine 泄露。定位 goroutine 泄露会使用到 pprof,pprof 是Go的性能工具,在开始介绍内存泄露前,先简单介绍下 pprof 的基本使用,更详细的使用给大家推荐了资料。什么

thumbnail of the cover of the post

深入了解硬件-内存篇

快速读懂内存条标签内存标签需要了解的参数8GB1Rx4PC3-2400RRC1-10DDR4 内存速度RANK 和 BANKRank就是每次CPU取的位宽,比如CPU是64位的,那么一个Rank也是64位的,但是内存颗粒没那么大的位宽,通常就是组合成64位,上图就是8个8bit的颗粒一起组成64bi

thumbnail of the cover of the post

GO编程模式

切片,接口,时间和性能Slicetype slice struct { array unsafe.Pointer //指向存放数据的数组指针 len int //长度有多大 cap int //容量有多大}foo = make([

thumbnail of the cover of the post

Markdown表格合并单元格

实例<table><tr> <th>属性</th> <th>属性值</th> <th>描述</th> </tr ><tr > <td rowspan

thumbnail of the cover of the post

Nginx 在 CentOS 中调优

操作系统调优配置扩展文件描述符目的在Nginx环境中,需要配置最大打开文件数为102400,否则在测试过程中可能会导致软件最大打开文件数被限制在1024,影响服务器性能。方法1、打开limits.conf文件。vim /etc/security/limits.conf2、在文件中写入以下配置后,保存

thumbnail of the cover of the post

运维常用命令 pidstat

pidstat 命令详解概述pidstat是sysstat工具的一个命令,用于监控全部或指定进程的cpu、内存、线程、设备IO等系统资源的占用情况。pidstat首次运行时显示自系统启动开始的各项统计信息,之后运行pidstat将显示自上次运行该命令以后的统计信息。用户可以通过指定统计的次数和时间来

thumbnail of the cover of the post

运维常用脚本

监控SSL证书过期check_cert.sh#! /bin/shhost=$1port=$2end_date=`openssl s_client -host $host -port $port -showcerts </dev/null 2>/dev/null | se

thumbnail of the cover of the post