Skip to content

Instantly share code, notes, and snippets.

@hikoz
Created March 19, 2013 07:49
Show Gist options
  • Save hikoz/5194373 to your computer and use it in GitHub Desktop.
Save hikoz/5194373 to your computer and use it in GitHub Desktop.
ヒープ領域余らせたままOutOfMemoryだせたよー
public class A {
public static void main(String[] args) {
while (true) {
new Thread(new Runnable() {
public void run() {
try {
Thread.sleep(10000L);
} catch (InterruptedException e) {
}
}
}).start();
}
}
}
@hikoz
Copy link
Author

hikoz commented Mar 19, 2013

(dotimes [i 10000] (.start (Thread. #(Thread/sleep 10000))))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment