Performance Tuning

How to increase Java speed of execution (Performance)?

Java speed: Any software product developed should have three features. 1. Should execute on less RAM 2. Should have high performance 3. Should be user friendly Java speed or Performance of a program execution is very important, especially in OLTP (OnLine Transaction Processing) operations. In OLTP, the customer will be waiting across the counter before …

How to increase Java speed of execution (Performance)? Read More »

Java Performance Tuning 2

1.0 Introduction 2.0 Algorithm Analysis 3.0 Data Structures 3.1 Sets and SortedSets 3.2 Lists 3.3 Maps and Sorted Maps 4.0 Summary 5.0 JVM Tuning 5.1 Server Mode 5.2 Sizing the Heap 5.3 GC Monitoring & Tuning 6.0 I/O Buffering6.1 Tuning with 1.0 Introduction Java Performance Tuning emphasizes techniques that provide big performance gains with minimal …

Java Performance Tuning 2 Read More »

Java Performance Tips 1

1. Introduction 2. When to think of Performance 3. JVM’s and JIT Compilers 4. Default constructors 5. Constructor Hierarchies 6. Instance variables Vs Class(static) variables 7. Recycling Objects 8. Methods 8.1 Inlining Methods 8.2 Final Methods 9. Thread Synchronization 10. Inner classes 11. String and StringBuffer 11.1 Accumulating data Using char[] Arrays 11.2 Using = …

Java Performance Tips 1 Read More »

Servlets JSP Performance Tuning Tips

Servlets JSP Performance The following pages describe performance-tuning techniques (PTT) for developing high performance and scalable JSP (JavaServer Pages) pages and servlets. This means building applications that are reasonably and consistently fair. 1. Use the HttpServlet init() method for caching data The server calls the servlet’s init() method after the server constructs the servlet instance …

Servlets JSP Performance Tuning Tips Read More »

JDBC Performance Tuning

1.0 Introduction 1.1 Connection Pooling 2.0 Auto-Commit 3.0 Closing JDBC objects 4.0 Optimization with Statement 4.1 Choose right Statement interface 4.2 Do batch update 4.3 Do batch retrieval using Statement 4.4 Close Statement when finished 5.0 Optimization with ResultSet 5.1 Do batch retrieval using ResultSet 5.2 Setup proper direction of processing rows 5.3 Use proper …

JDBC Performance Tuning Read More »