IPC: instructions per clock
CPI: cycles per instruction
1. 较高的内核/系统CPU使用率意味着程序可能有较激烈的资源竞争或者大量的IO交互。要尽可能地降低内核CPU占用率。
2. CPU utilization monitoring tools bundled with modern operating
systems report CPU utilization and do not report the percentage of CPU clock cycles
the CPU has been executing instructions. This means that the operating system tools
report a CPU as being utilized even though the CPU may be waiting for data to be
fetched from memory. This scenario is commonly referred to as a stall. Stalls occur
any time the CPU executes an instruction and the data being operated on by the
instruction is not readily available in a CPU register or cache.
3. Windows下监控性能的工具有perfmon和typeperf。Linux下有http://teasp.iteye.com/admin/blogs/1940837
4. A general guideline to follow is observing run queue depths over an extended
period of time greater than 1 times the number of virtual processors is something to
be concerned about but may not require urgent action. Run queue depths at 3 to 4
times, or greater, than the number of virtual processors over an extended time period
should be considered an observation that requires immediate attention or action.
5. A Java application or JVM that is swapping or utilizing virtual memory experiences
pronounced performance issues...The time it takes to page in any portion of the Java heap into memory can
dramatically increase the duration of a garbage collection.
6. 在Linux上安装小巧的sysstat可以得到这些:sar, iostat, sa1, sa2, sadf, mpstat, sadc, sysstat
7. 用pidstat可以查看进程主动和被动上下文切换的频率:cswch/s(主动) nvcswch/s(被动),这两者的值乘以80000就是上下文切换消耗掉的时钟周期。
8. nicstat(要安装)可以查看网络传输利用率,netstat只能知道单位时间传输的包数,而不能统计包的大小。
9. 用iostat -xm可以看磁盘IO使用率。
10. sar是个好工具。
相关推荐
Java_Performance.pdf java代码效率优化.docx Java内存模型的历史变迁.docx Java在游戏服务器开发中的应用.docx java基础总结大全.txt Java开发与技术挑战——关于技术的技术思考.docx Java框架研发思考.docx Java...
Java_Performance.pdf java代码效率优化.docx Java内存模型的历史变迁.docx Java在游戏服务器开发中的应用.docx java基础总结大全.txt Java开发与技术挑战——关于技术的技术思考.docx Java框架研发思考.docx Java...
Java_Performance.pdf java代码效率优化.docx Java内存模型的历史变迁.docx Java在游戏服务器开发中的应用.docx java基础总结大全.txt Java开发与技术挑战——关于技术的技术思考.docx Java框架研发思考.docx Java...
java-performance 介绍 书配套例子,Java系统性能优化实战 ,程序员的优化宝典。购买地址可以从。书中代码包含了关键注释和结论,也可以直接浏览代码获得知识 如果对SpringBoot技术有兴趣,可以购买或者电子版 大佬...
《Java性能优化权威指南》读书笔记(脑图) 原图,看不清楚可以下载这个
Performance Tips.md) [JDBC为什么要使用PreparedStatement而不是Statement](./note/java/Why use PreparedStatement in Java JDBC .md) [Java为什么需要Lambda表达式(-)](./note/java/Why W Need Lambda ...
ObjectBoxExamples 面向对象的超快速数据库Java和Kotlin示例。 基本示例是一个最小的笔记应用程序。 对于Android ,有: android-app:基于Java... java-performance:使用ObjectBox运行性能测试的命令行应用程序。
AI can be used for automating systems or processes to carry out complex tasks and functions in order to achieve optimal performance and productivity. Hands-On Artificial Intelligence with Java for ...
Android笔记.xmind App Store最新审核指南.xmind git 操作手册.xmind git菜单.pptx iOS证书&打包&上架.xmind Java 技术路线.xmind linux Web服务安全.xmind linux 环境部署.xmind linux常用命令.docx linux常用命令....
初级java 笔试题 这里主要记录CSAPP这本书每个章节自己的读书笔记,按章分开。 Chapter 1 It pays to understand how compilation systems work 就像原话说的,我们理解了汇编系统如何运作之后能带来巨大的好处。书...
java8 源码 Data Science / Engineering This repository records parts of notes and codes that I wrote when I taught myself coding and data science / Engineering. It was divided into three parts: Data ...
文件-clamav-cloud-performance 一组测试,用于在云中使用 clamav 测量文件(磁盘和内存)的性能。两种类型的测试带有 clamfs 的常规文件系统 - 所有对磁盘的访问都通过 clamav 对应用程序透明带有 clamavj 的 Java ...
1)Memory,GC,andPerformance众所周知,与C/C++需要通过手动编码来申请以及释放内存有所不同,Java拥有GC的机制。Android系统里面有一个GenerationalHeapMemory的模型,系统会根据内存中不同的内存数据类型分别执行...
Memcached和Lucene笔记 110 使用开源软件,设计高性能可扩展网站 110 面向高负载的架构Lighttpd+PHP(FastCGI)+Memcached+Squid 113 思考高并发高负载网站的系统架构 113 "我在SOHU这几年做的一些...
Essential .NET 读书笔记 [第一部分] NET FrameWork的Collections支持 .NET的反射在软件设计上的应用 关于跨程序集的反射 实现C#和VB.net之间的相互转换 深入剖析ASP.NET组件设计]一书第三章关于ASP.NET运行原理讲述...
Android技术笔记 这里主要记录日常的开发技巧,开发中遇到的技术重点,难点,各个知识点的总结。同时也会分享一些优质面试题,职业规划,读书心得,个人感悟等等。 :face_savoring_food: :full_moon_face: :waxing...