Posts

Showing posts from July, 2009

Art of Performance Testing.

Image
Performance tuning is a challenging task that requires in-depth understanding of the hardware, operating system, and application. If performance tuning were simple, the parameters would be hard-coded into the firmware or the operating system.    Art of Application Performance Testing   When is an application considered to be performing well? It is a matter of perception and usage scenario.   A "Performance Driven Organization" is that whose performance considerations have been taken into account at every stage of the application life cycle. Tool should provide single view of monitoring various mertics across servers. EUE->End User Experiece

perf-generics

Image
Frequency of collection of metric and display of collection. CPU count per CPU stats or aggregate stats Number of Queues waiting for CPU Time spent waiting for a CPU Swapped out threads User, System utilization and Ilde time of the cpu Load average Migration of threads  between processors Mutex contention events  on kernel. read/write lock contention events on kernel. system call rate Which process/thread/method is using the CPU

perf- CPU- Solaris

CPU The first line of metric is the summary since boot.Interval of collection is specified as 1st param along with command name. vmstat collects the aggregate stats of all the CPU's Saturation Number of queues waiting for CPU is run queue length or size. kthr:r of vmstat gives this value. sar -q 5 5 gives info on swapped out threads. It also gives runq-sz. Swapping out threads is a last resort for relieving memory pressure, so this field will be 0 unless there was memory shortage. Amount of time spent waiting for a CPU is measured using  the LAT latency value of command prstat -mL vmstat and sar(system activity reporter) also give the user,system utilization and ilde time of the cpu. Number of processors in the system and their speed psrinfo -vm Load average represents both CPU utilization and saturation. uptime and prstat give this info. A value equal to CPU count means 100% utilisation. 1-,5- and 15- minute averages are obtained. sar can capture historic data by enabling interval

perf resources

High Performance Client/Server, Chris Loosley and Frank Douglas ( John Wiley & Sons) Inside the Java 2 Virtual Machine, Bill Venners (McGraw-Hill) (see http://www.artima.com/insidejvm/resources/) Introduction to Computer Performance Analysis with Mathematica, Arnold O. Allen (Academic Press) Performance Engineering of Software Systems, Connie Smith (Addison Wesley) Sun Performance and Tuning, Adrian Cockcroft and Richard Pettit (Prentice Hall) System Performance Tuning, Mike Loukides (O'Reilly) Windows NT Applications: Measuring and Optimizing Performance, Paul Hinsberg (MacMillan Technical Publishing) Windows NT Performance Monitoring, Benchmarking, and Tuning, Mark T. Edmead and Paul Hinsberg (New Riders) IBM Systems Journal (http://www.research.ibm.com/journal/ ) (see Volume 39, No. 1, 2000 — Java Performance) Jack Shirazi's Java Performance Tuning web site (http://www.JavaPerformanceTuning.com) Vladimir Bulatov's HyperProf (http://www.physics.orst.edu/~bulatov/Hyper

Java Performance Tuning - contd.

Two standard optimization techniques for reducing I/O overhead are buffering and caching. Some techniques to improve I/O performance: Execute I/O in the background. Avoid executing I/O in loops. Using System.outor System.err, for logging,purposes can affect performance. Using any logging framework like log4j, can allieviate this to some extent. Check Readers are InputStreams performance. Readers may be better. Use a separate thread to monitor the application. multithreading issues- race conditions and deadlocks. Performance tuning is frequently a matter of tradeoffs. Tuning can be a lengthy process simply because it must be iterative. Performance problem created (or left uncorrected) in one phase requires roughly five times as much effort to correct in the following development phase. Performance tuning should be done after the code is functionally correct. Typically, 80% of the application time is spent in less than 20% of the code. When designing the application to run activities in

Java Performance tuning-contd..

One can choose a JDK version(vendor) for compilation and another JRE version(vendor) for execution. Understand the GC pattern of the application.Adjust GC interval and -Xmx if it helps, after looking at the pattern. Use trial and error to set this values. Casting is an overhead. If all the list objects are one type, they better be declared as a collection of that type.Casts(not resolvable at compile time-using instanceof operator) have runtime memory cost. Is the development VM same as the production VM? JIT compiler, compiles bytecode into machine native code on first execution. Bytecode interpretor executes by decoding,converting into native code and then executing. Shared libraries can be loaded into system memory even before application startup to application reduce startup time. Some compilers have the optimise option (-O) meant to compile such that execution optimisations can be applied. You could compile to native machine code directly. -J and -target options exist during compil

tasks

wash house electricity payment restructuring payment rent house driving license -avinash driving license -radhika birth certificate-Veda apply passport - Veda make address change - avi, rads passport- change photo. income tax filing

Java Performance Tuning 2nd edition - Jack Shirazi

Identification of the cause of the performance bottleneck is a science, not an art. Measure/Profile current system in terms of     Response time/TPS     Memory     Disk I/O     CPU     Concurrency      per layer and end to end for transactions identified by business in the descending order of risk or target volume per unit interval Freeze them so that they can be served as reference at any point of time. This version of the software at any time should be installable to demostrate the effect of the changes made later. Get to know the benchmark figures of performance of the software/hardware platform from industry. What are the SLA the application has to conform to? Define them if they do not exist already and strive to achieve them. Agreeing on targets before tuning makes everything clear to everyone. Follow a top-down approach, come up with observations and take direction from management on proceeding with the next set of efforts. Document all such decisions. Suggest not based on gut-f

please visit my uru

its a nice uru where air is pure u cultured for sure u dussera celebrations joru tourists throng silk, u will long sandalwood  smells strong eating paka and bonda along listen to the maharaja song in this learning hub, right or wrong? take a tanga do ashtanga go sriranga anargalangaa when u pass-by this uru making a tour u, please ensure u, to visit us, ondu chooru please visit my uru its mysuru. uru            =    town joru              =    intense (telugu/kannada) tanga           = a horse driven carriage(hindi) anargalangaa         =    non-stop (telugu) ondu chooru         =    once (kannda)

How to Sell Anything to Anybody

Salesmen are made,not born.- Joe Girard. Joe in his 15 year selling career sold 13001 cars. Time,Money,Effort,Passion,Responsibility When a salesman sells, there are no losers. Both the buyer and the seller win. The process that leads to victory should start long before you ever see your prospect and goes on after the customer signs and leaves with his purchase. ATANA->All Talk And No Action Understand whom you are dealing with and what they really want to hear. Its no fun being turned down. But i soon found out that the more people i talked to, the more sales i made. Broom, thats the word we used for getting fired. About Land. In my youth, i did'nt know that you're supposed to believe anything unless you see it in writing. Recapitulating about, what i was trying to say,what i should say and what the listener wants to hear helps know and improve myself. Know what you want. Some customers are interested but scared of the sales person. Attitude matters. Know who is your prospe

Rich Dad, Poor Dad by Robert Kiyosaki

Richness is not about money. It is about the thought. Be aware of everything around you. You must know the difference between an asset and a liability. Dont work for money, let money work for you. Be smart and you wont be pushed around as much. We learn by making mistakes. While learning to walk, we fall down also. Education is more valuable than money,in the long run. Life is like going to the gym. The most difficult part is deciding to go. The more specialised you become, the more trapped and dependant on that speciality. Know a little about everything, and everything about a little. To be truly rich, we need to be able to give as well as recieve. One of the wonders of the world is the power of compounding interest. Whats your investment portfolio? The human spirit is very powerful. It can do anything. Invest first in the education of investing. Dont listen to poor or frightened people. Self-Discipline is needed and without it, everything earned is lost in a second.

Dollar Bahu

Last week i've been to landmark book shop and while browsing through the books,saw this one written by Sudha Murthy ( http://en.wikipedia.org/wiki/Sudha_Murthy ).As i have never read any of her books and the title "Dollar Bahu" seemed interesting, have taken this book. She handles relations of various characters very softly in this book. The potray of sensitivity  in the relationship between Chandru (the dollar guy) and Vinutha (the poor lady from Dharwad village) on whom Chandru  has a crush and who later becomes his brother's wife is very good. The same can also be seen when Shamanna(the father-in-law) of Vinutha, suggests that Girish(Vinutha's husband) and she move back to Dharwad to lead an independent life away from the day-to-day comparisons that will be brought about by Gowramma(mother-in-law) who will be back from the US. There are few references to the bakula flower here. There is another book she wrote called bakula flower. The frustration about Vinutha

You are the best.

http://www.youtube.com/watch?v=YjZAPXQI_Hs http://www.youtube.com/watch?v=SgVge831fYY&feature=related

Performance Testing Certifications

Performance Test Management Expert - Focus of this certification is on SilkPerformer, SilkCentral Test Manager and SilkCentral Issue Manager. IBM Rational Performance Tester (RPT) AIS HP Performance Center v9 and ASE HP Performance Center v9