Home » Tag Archives: Performance (page 5)

Tag Archives: Performance

JVM Performance Magic Tricks

java-logo

HotSpot, the JVM we all know and love, is the brain in which our Java and Scala juices flow. Over the years, it’s been improved and tweaked by more than a handful of engineers, and with every iteration, the speed and efficiency of its code execution is nearing that of native compiled code. At its core lies the JIT (“Just-In-Time”) ...

Read More »

Improve Performance by caching and compression

devops-logo

Web page designs are becoming innovative with rich interface which involve extra code such as java scripts, css, and images etc. Most of the end-user response time tied-up in downloading these components.Optimizations of number of http requests and response size are the key parameters to improve the web application performance. This article explains about caching filter and compression filter that ...

Read More »

HotSpot GC Thread CPU footprint on Linux

java-logo

The following question will test your knowledge on garbage collection and high CPU troubleshooting for Java applications running on Linux OS. This troubleshooting technique is especially crucial when investigating excessive GC and / or CPU utilization. It will assume that you do not have access to advanced monitoring tools such as Compuware dynaTrace or even JVisualVM. Future tutorials using such ...

Read More »

Arrays.sort versus Arrays.parallelSort

java-logo

We all have used Arrays.sort to sort objects and primitive arrays. This API used merge sort OR Tim Sort underneath to sort the contents as shown below:                   public static void sort(Object[] a) { if (LegacyMergeSort.userRequested) legacyMergeSort(a); else ComparableTimSort.sort(a); } This is all done sequentially, even though merge sort uses divide and ...

Read More »

Java StringBuilder myth debunked

java-logo

The myth Concatenating two Strings with the plus operator is the source of all evil — Anonymous Java dev NOTE: The source code for the tests discussed here can be found on Github It’s from university time that I learned to regard String concatenation in Java using the ‘+’ plus operator as a deadly performance sin. Recently there has been ...

Read More »

OpenJPA: Memory Leak Case Study

apache-openjpa-logo

This article will provide the complete root cause analysis details and resolution of a Java heap memory leak (Apache OpenJPA leak) affecting an Oracle Weblogic server 10.0 production environment. This post will also demonstrate the importance to follow the Java Persistence API best practices when managing the javax.persistence.EntityManagerFactory lifecycle.             Environment specifications Java EE server: ...

Read More »

Adding Turbochargers to JEE Apps

akka-logo

One of the key roles, I play is evangelizing Akka within my local community. As part of the discussions, the question/doubt usually in people’s mind is how can Akka provide better scalability and concurrency against a well written Java/JEE application. Since the underlying hardware/JVM remains the same, how can the actor model ooze out more power than the traditional JEE ...

Read More »

Scaling Scala vs Java

scala-logo

In my previous post I showed how it makes no sense to benchmark Scala against Java, and concluded by saying that when it comes to performance, the question you should be asking is ‘How will Scala help me when my servers are falling over from unanticipated load?’ In this post I will seek to answer that, and show that indeed ...

Read More »

Benchmarking Scala against Java

scala-logo

A question recently came up at work about benchmarks between Java and Scala. Maybe you came across my blog post because you too are wanting to know which is faster, Java or Scala. Well I’m sorry to say this, but if that is you, you are asking the wrong question. In this post, I will show you that Scala is ...

Read More »

Performance Analysis of REST/HTTP Services with JMeter and Yourkit

apache-jmeter-logo

My last post described how to accomplish stress- or load-testing of asynchronous REST/HTTP services with JMeter. However, running such tests often reveals that the system under test does not deal well with increasing load. The question is now how to find the bottleneck? Having an in-depth look at the code to detect suspicious parts could be one alternative. But considering ...

Read More »
Do you want to know how to develop your skillset and become a ...

Subscribe to our newsletter to start Rocking right now!

To get you started we give you our best selling eBooks for FREE!
Get ready to Rock!
To download the books, please verify your email address by following the instructions found on the email we just sent you.

THANK YOU!

Close