Created
March 19, 2013 07:49
-
-
Save hikoz/5194373 to your computer and use it in GitHub Desktop.
ヒープ領域余らせたままOutOfMemoryだせたよー
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | |
} | |
} | |
} |
Author
hikoz
commented
Mar 19, 2013
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment