runtime options:
java -XX:+<gctype> -Xmx768m gctest.Main
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
at gctest.ListProducer.Fill(Main.java:40)
at gctest.Main.main(Main.java:9)
So despite handler defined for Main.java:40 exception terminates VM as unhandled one.
PS It may be hard to reproduce, i can't say exactly, but removing comments from additional output remove this problem in my case.
###@###.### 2005-07-08 11:46:42 GMT
java -XX:+<gctype> -Xmx768m gctest.Main
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
at gctest.ListProducer.Fill(Main.java:40)
at gctest.Main.main(Main.java:9)
So despite handler defined for Main.java:40 exception terminates VM as unhandled one.
PS It may be hard to reproduce, i can't say exactly, but removing comments from additional output remove this problem in my case.
###@###.### 2005-07-08 11:46:42 GMT
- relates to
-
JDK-6309516 OutOfMemoryError test silently exits with code 1 on linux
- Closed
-
JDK-6294930 GC memory overhead is too big
- Closed