[Neo4j] Getting Started

Neo4j is a leading Graph database. In the first post of the series, we shall look at installation and running a Neo4j Server Download Neo4j Download Neo4j from http://neo4j.com/download/. We shall be using community edition. Once the download is completed, extract it in a location. We shall call this location as NEO4J_HOME. The folder structure […]

Continue reading


[Linux]How to get top directories/files based on disk usage

Getting the top disk usage files/directories is a common use case and we need to often use it to find them out. Here is a handy tip on how to find top 10 directories/files based on the disk usage Here is the syntax

Here we replace base folder to the location where we want […]

Continue reading


How to take Heap dumps

Heap dumps provide information about the contents of JVM Heap. They are very helpful to know which object are occupying memory and the their links to the root objects. Let’s see different options to take Heap dumps Using command line option on OOME This has been discussed in detail here Using jmap jmap is a […]

Continue reading


How to enable Garbage Collection logs

Monitoring GC activity is critical to Application performance monitoring. JVM provides a very low overhead solution to enable the GC logging. Lets see how to enable Garbage collection logs GC logs can be enabled by adding following flags while starting your Java application -verbose:gc -> enables verbose gc mode -XX:+PrintGCDetails -> prints the gc details […]

Continue reading


How to read Jar files in Java

Jar files are ways of packaging Java classes and sources at times. We might at times need to read the Jar files and process the contents. Let’s see how to read Jar Files in Java Let’s quickly see the code

To read a Jar file, we need to use JarInputStream. Each Entry within a […]

Continue reading