Java String intern: Performance impact

java.lang.String#intern() is an interesting function in Java. When used at the right place, it has potential to reduce overall memory consumption of your application by eliminating duplicate strings in your application. To learn how intern() function works, you may refer to this blog. In this post let's discuss the performance impact of using java.lang.String#intern() function... Continue Reading →

In which region intern strings are stored?

intern() is an interesting function in java.lang.String object. intern() function eliminates duplicate string objects from the application and has potential to reduce overall memory consumption of your application. To understand how string intern() function works you may refer to this interesting blog. Intern strings are stored in a string pool in the JVM memory. JVM... Continue Reading →

Java String intern(): Interesting Q & A

intern() is an interesting function in java.lang.String object. intern() function eliminates duplicate string objects from the application and has potential to reduce overall memory consumption of your application. In this post, let's learn more about this intern() function. 1. How does the String intern() function work?  In Java heap memory, a pool of string objects... Continue Reading →

JVM c1, c2 compiler thread – high CPU consumption?

c1, c2 compiler threads are created by Java virtual machine to optimize your application's performance. Occasionally these threads will tend to consume high CPU. In this post, let’s learn little more about c1, c2 compiler threads and how to address their high CPU consumption. After reading this post, terminologies like Hotspot JIT, c1 compiler threads,... Continue Reading →

“Learn yCrash” series

The industry has seen cutting-edge Application Performance Monitoring tools and infrastructure monitoring tools. These monitoring tools are great at answering the question: 'What is the problem?'' but not, Why does the problem happen? yCrash attempts to answer this question. It captures 360-degree artifacts from your technology stack such as Garbage collection logs, thread dumps, heap dumps,... Continue Reading →

Benefits of setting initial and maximum memory size to the same value

When we launch applications, we specify the initial memory size and maximum memory size. For the applications that run on JVM (Java Virtual Machine), initial and maximum memory size is specified through ‘-Xms’ and ‘-Xmx’ arguments. If Java applications are running on containers, it's specified through ‘-XX: InitialRAMPercentage’ and ‘-XX: MaxRAMPercentage’ arguments. Most enterprises set... Continue Reading →

Java UUID generation – Performance impact

Java developers tend to use 'java.util.UUID#randomUUID()' API, to generate a UUID (Universally Unique Identifier) number (i.e., 'b8bbcbed-ca07-490c-8711-5118ee0af2f9'). Under certain circumstances, using this API can affect your application’s availability. Let’s discuss this API in this post with a real-world example. How does  'java.util.UUID#randomUUID()' API works? java.util.UUID#randomUUID() API internally uses 'entropy' in the operating system to generate... Continue Reading →

Major Outages in Major Enterprises

JAX – Online conference is the meeting place for all Java and software architecture enthusiasts! This year also, they have conducted an online conference to exchange knowledge and ideas from speakers all over the world. They have invited our architect to conduct a webinar on the topic “Major Outages in Major Enterprises”. In this session, we... Continue Reading →

JVM Internals in 1 slide

JAX - Online conference is the meeting place for all the Java and software architecture enthusiasts! This year also, they have conducted the online conference to exchange the knowledge and ideas from the speakers all over the world. They have invited our architect to conduct a webinar on the topic "JVM Internals in 1 slide".... Continue Reading →

Powered by WordPress.com.

Up ↑