1. Micha Kops
  2. memory-analyzer-tutorial

Commits

hascode  committed 666bafa

Initial import

  • Participants
  • Branches default

Comments (0)

Files changed (2)

File demo/outofmemory.jar

Binary file added.

File src/com/hascode/tutorial/Main.java

View file
+package com.hascode.tutorial;
+
+import java.util.ArrayList;
+import java.util.List;
+
+public class Main {
+	public static void main(final String... args) {
+		System.out.println("start");
+		List<Integer> numbers = new ArrayList<Integer>();
+		for (int i = 0; i < Integer.MAX_VALUE; i++) { // going to fail
+			numbers.add(i);
+		}
+		System.out.println("stop");
+	}
+}