There are scopes of variable in Java programming language: a. Local variable b. Member variable (aka instance variable) c. Static variable (aka class variable) In this post, let's discuss an interesting type of variable: ThreadLocal and how it differs from the other variable types. Video: To see the visual walk-through of this post, click below: https://youtu.be/qHehLjo1aNk... Continue Reading →
Clear details on Java collection ‘Clear()’ API
Several of us might be familiar with the clear () API in Java collections framework. In this post, let's discuss what is the purpose of this clear() API? What is the performance impact of using this API? What happens under the JVM when this API is invoked? Video: To see the visual walk-through of this post,... Continue Reading →
JVM arguments master sheet
This is a master sheet with most of the JVM arguments: JVM ArgumentDescription-XbatchDisables background compilation so that compilation of all methods proceeds as a foreground task until completed. To learn more click here.-Xbootclasspath:<paths>Specifies a list of directories, JAR files, and ZIP archives separated by colons (:) in Unix and semicolons (;) in Windows to search for... Continue Reading →
Java Semaphore – easy introduction
Coming soon...
Java Thread Local – easy introduction
Coming soon...
Data captured & analyzed by yCrash!
Due to the heat of the moment, most SRE engineers restart the application without capturing the right data to debug the problem. Without the right data, debugging the production problem can be hard. yCrash data script captures below mentioned 360-degree data that too at the right moment. These artifacts will be highly useful to troubleshoot... Continue Reading →
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. Video: To see the visual walk-through of this post, click below: https://youtu.be/HiL2634pZaA 1. How does the String... Continue Reading →
Inspect the contents of the Java Metaspace region
JVM Memory has following regions: a. Young Generation b. Old Generation c. Metaspace d. Others region Fig: JVM memory regions To see what objects are stored in what region, you may refer to this video clip. Sometimes your application might run into 'java.lang.OutOfMemoryError: Metaspace' as discussed in this post. In such circumstances you might want... Continue Reading →