JVM Garbage Collection and Optimizations

Image
Overview When troubleshooting systems for performance-related issues, memory optimizations are a place that needs a deep analysis of what each system stores in the memory, how long those are stored, and access patterns. This post is to keep a note on the background information and valuable points to note in such an effort, specific to Java-based implementations as a deep understanding of the JVM behaviors is very beneficial in the process.

Java language provides much convenience to the developers by taking care of the memory management to a great extent letting the focus be on the rest of the logic. Still having a good understanding of how Java does this underneath, rationalize several best practices we follow in Java implementations and help design the programs better and think seriously on some aspects that can later lead to memory leaks and system stability in the long run. Java Garbage Collector has a big role in this been responsible for freeing up memory by removing memory gar…

Useful Commands to Deal with SVN

The commands I came across with, while working with svn in Linux.
  • Find and remove all the .svn folders inside a folder - This is useful when we have checkout the code from a svn repo and want to remove it from version control.
find . -name .svn | xargs rm -rf
  • Add a new folder to version control - When we have a folder that is already under version control and want to add a new one inside it.
svn add
  • Commit the made changes
svn ci -m "a useful message about the commit"
  • Remove some specific folders like target and IDE specific data from version control, but keep the data in our local machine.
svn delete --keep-local <file name> 
  • Check out a particular revision of from SVN when we know the revision number 
svn co -r <revision no.> <path for the checking out folder or file>
  • Save the difference of code to a file
svn diff > <filepath> 

Comments

Popular posts from this blog

Signing SOAP Messages - Generation of Enveloped XML Signatures

OPA for HTTP Authorization

How to Write a Custom User Store Manager - WSO2 Identity Server 4.5.0