Skip to content

Instantly share code, notes, and snippets.

View vaibhav-yb's full-sized avatar
🤙

Vaibhav Kushwaha vaibhav-yb

🤙
View GitHub Profile

Keybase proof

I hereby claim:

  • I am vaibhav-yb on github.
  • I am vaibhav_yb (https://keybase.io/vaibhav_yb) on keybase.
  • I have a public key ASAZPUSrnRD8u1jfTawIcFUxOd-b76VVY12ssaZzuEL_nwo

To claim this, I am signing this object:

@vaibhav-yb
vaibhav-yb / generate_heap_dump.md
Created July 13, 2023 08:52
Java program with step by step instructions on how to generate a heap dump

Generating a Heap Dump in Java

1. Create a Java program with the following contents

import java.util.ArrayList;
import java.util.List;

public class GenarateHeapDump {
 public static void main(String[] args) {