Java Out of memory error
-
Hello Guys,
I have the following problem, while using my program in windows to load aprox 1 mio records it works, it will use about 250 mb Ram, on the other hand on Unix i get the following Problem on a AIX machine. Is there some Java Setting which needs to be adjusted in order to get no out of memory exception? The memory the machine has free ist 5 GB still, so it can't be a true output. It seems to have some other problem.
Has Somebody a hint? Googling didn't turn out useful.
Thanks,
Alcatros
JVMDUMP006I Processing dump event "systhrow", detail "java/lang/OutOfMemoryError" - please wait. JVMDUMP032I JVM requested Snap dump using '/opt/Snap.20101028.144829.2867416.0001.trc' in response to an event JVMDUMP010I Snap dump written to /opt/falcon/anon/Snap.20101028.144829.2867416.0001.trc JVMDUMP032I JVM requested Heap dump using '/opt/heapdump.20101028.144829.2867416.0002.phd' in response to an event JVMDUMP010I Heap dump written to /opt/heapdump.20101028.144829.2867416.0002.phd JVMDUMP032I JVM requested Java dump using '/opt/javacore.20101028.144829.2867416.0003.txt' in response to an event JVMDUMP010I Java dump written to /opt/javacore.20101028.144829.2867416.0003.txt JVMDUMP013I Processed dump event "systhrow", detail "java/lang/OutOfMemoryError". Exception in thread "main" java.lang.OutOfMemoryError at java.nio.HeapCharBuffer.<init>(HeapCharBuffer.java:54) at java.nio.CharBuffer.allocate(CharBuffer.java:327) at java.util.Scanner.<init>(Scanner.java:573) at java.util.Scanner.<init>(Scanner.java:676) at MyProg.Loader.loadIntoTree(Loader.java:56) at MyProg.Loader.<init>(Loader.java:40) at MyProgBig.Main.main(Main.java:23)
-
Which JVM implementation are you using? If you are using the Sun/Oracle JVM you can define memory options on application startup via -Xmx (I think).
All HotSpot options can be found here: http://www.oracle.com/technetwork/java/javase/tech/vmoptions-jsp-140102.html
Best regards,
SideWinder
-
Eh kleine Nebenfrage, warum versuchst du in einem deutschen Forum englisch zu sprechen, wenn du's nichtmal kannst...
-
..und noch vor ein paar monaten auf deutsch gefragt hast, wie alle anderen in einem deutschen forum auch..