willpower
willpower · 共 68 篇文章
关于java锁机制的优化
JVM 级别的锁机制的优化主要针对这两种情况: 1> 大多数情况不会存在竞争的锁. 2> 被频繁竞争的锁. 以下采用事例的方式加以说明. 前三种方法是针对情况1>, 最后一种是针对情况2>. lock elision public String getStoogeNames() { Vector v = new Vector(); v.add("Moe"); v.add("Larry"); v.add("Curly"); return v.toString(); } 我们知道Vector的实现是线程安全的,也就是加了synchronized. 但是在上面的这段代码中, 显然Vector v …
2008-10-21 17:14 · Performance Test/Analysis/Tuning 性能分析优化 · 评论(2)
关于哲学家就餐问题
你说这一帮哲学家聚到一起吃饭,还一人只有一根筷子,还要吃口饭,放下筷子思考一下。 当他们都拿起一根筷子时,发现还少根筷子,谁也不肯放下手中的筷子。结果是都只能饿死了。 哎。。。这样不行啊。 BTW, 这样吃饭好像很不卫生吧.
2008-10-21 13:45 · Others 杂文 · 评论(0)
ReentrantLock VS Synchronized
Here is a simple benchmark case for testing the performance between ReentrantLock and Synchronized. Machine: 2 phycial processors with hyperthreading enabled (4 logical processors) OS: windows server 2003 JVM version: 1.6 Threads Number: 4 Benchmark result: Synchronized - 25786ms ReentrantLock - 10…
2008-10-20 17:57 · Performance Test/Analysis/Tuning 性能分析优化 · 评论(0)
Performance test, more than test 性能测试, 不只是测试 (1)
Everytime, when people mention about performance test, some guys would stand out and say: aha, performance test, using loadrunner, collecting performance data, that's it. So, there are many docs talking about how to use loadrunner, and even more documents on loadrunner questions for performance tes…
2008-10-16 15:25 · Performance Test/Analysis/Tuning 性能分析优化 · 评论(0)
关于性能测试中一些计算方法(throughput, active user...)
我们知道最简单的情况下有如下公式: Throughput = 1 / responseTime (1) 现实情况是用户在提交一个请求后并不会立即发第二个请求,比如用户打开一个页面后,他可能会花些时间来浏览它,我们把这个时间叫思考时间:ThinkTime, 那么公式(1)则进化为: Throughput = 1 / (thinkTime + responseTime) (2) 以上公式是在单用户的情况下, 多用户下还要引入活动用户(active user)的概念,公式(2)进化为: Throughput = activeUserNumber / (thinkTime + responseTim…
2008-10-08 14:33 · Performance Test/Analysis/Tuning 性能分析优化 · 评论(0)
Scalability?
严格上讲,scalability还没有正式定义, 甚至有人觉得这样的词完全是带有商业味的。但我觉得以下的解释很直观: (from Steve Haines) performance measures the speed with which a single request can be executed, while scalability measures the ability of a request to maintain its performance under increasing load. For example, the performance of a request…
2008-10-07 14:07 · Study 学习 · 评论(0)
Something to say (for viewer)
All performance articles are only based on my experience. The purpose that I put them here is trying to collect and shape my thoughts. You may find something lose or wrong. Please leave me some notes. Then, I will be able to fix them. Thanks.
2008-07-01 11:32 · Performance Test/Analysis/Tuning 性能分析优化 · 评论(0)
Cray Reminiscences
Kirk Pepperdine's attendence of AMD's performance talk at JavaOne produced a cascade of fascinating memories about Cray optimizations. Here, Kirk relates some of the most interesting optimizations that helped make Cray's superfast - and how that relates to your Java programs. Published July 2007, A…
2007-08-29 15:54 · Study 学习 · 评论(0)
lock-free
1. http://www.ibm.com/developerworks/java/ library/j-jtp11234/ --------------------------------------- 2. wait free synchronization
2007-06-18 22:06 · Study 学习 · 评论(0)
解决java.lang.OutOfMemoryError: PermGen space(转帖)
解决方案就是:在启动服务器时加上指定PermGen区域的内存大小的配置.-XX:PermSize=128m -XX:MaxPermSize=256m 比如:nohup /usr/java/jdk1.5.0_08/bin/java -Dcom.sun.management.jmxremote -Xms512m -Xm x1024m -XX:=128m -XX:MaxPermSize=256m -jar oc4j.jar& HOHO,问题解决了,上网查了一个PermGen space是咋回事,原来: PermGen space的全称是Permanent Generation space,是指内存…
2007-06-05 18:07 · Study 学习 · 评论(0)
Performance...
« I used to work for... | Main | Usability for Programmers » Google TechTalk: Open Source Performance Testing Goranka Bjedov - Using Open Source Tools for Performance Testing, Google TechTalk, 8 September 2006. Goranka provides a great overview of how Google are doing performance testing "solving p…
2007-06-05 15:11 · Study 学习 · 评论(0)
a nice way to see google video
http://www.isaacmao.com/meta/2006/07/how-to-view-google-video-locally-in.html
2007-06-05 15:10 · Others 杂文 · 评论(0)
数据仓库
数据仓库 ,英文名称为 Data Warehouse ,可简写为 DW 。 数据仓库之父Bill Inmon在1991年出版的“Building the Data Warehouse”一书中所提出的定义被广泛接受——数据仓库(Data Warehouse)是一个面向主题的(Subject Oriented)、集成的(Integrated)、相对稳定的(Non-Volatile)、反映历史变化(Time Variant)的数据集合,用于支持管理决策(Decision Making Support)。 ◆面向主题:操作型数据库的数据组织面向事务处理任务,各个业务系统之间各自分离,而数据仓库中的数…
2007-04-18 10:38 · Study 学习 · 评论(0)
Expressions Transform
Expressions, Conversion and Evaluation with C (All you need to know about Expressions) In this tutorial, I will be writing in detail about an important programming concept i.e. Algebraic Expressions, different expression notations like Prefix, Postfix and Infix evaluation of the expressions, how to…
2007-04-13 11:13 · Study 学习 · 评论(0)