0

This question is related to this one:

If I have a heap dump report that a 95% of threads are left in wait or parked state, and that there is arround 750MB free heap memory available how is it possible to get an java.lang.OutOfMemoryError?
Since there seems to be free heap according to the report this seems weird to me!
Can anyone help me interpret this?

9
  • 3
    Show the whole error message...
    – beny23
    Jul 27, 2012 at 8:04
  • @beny23:Everything is in the post I link to
    – Jim
    Jul 27, 2012 at 8:07
  • 1
    possible duplicate of How to detect the cause of OutofMemoryError?
    – beny23
    Jul 27, 2012 at 8:18
  • @beny23:But it is not the same question.Why is it a duplicate?
    – Jim
    Jul 27, 2012 at 8:21
  • you said that "everything is in the post that you linked to", so it would be easier to edit the original question. In any case, I think that existing 695 threads is the likely reason it fails, because it just can't create any more.
    – beny23
    Jul 27, 2012 at 8:25

2 Answers 2

1

What kind of OS are you using? Is it 32 Bit oder 64 Bit? Is your JDK 32 Bit oder 64 Bit? How much heap space do you need in total? Try to run your program with more maximum heap space. I had the same problem while I wanted to transform a XML-file. You just to set following parameters:

In your shell:

java -Xmx1024m -jar yourfile.jar
1
  • could you just accept the working answer? did anything work for you? Jul 27, 2012 at 11:12
1

OOME can be raised by Heap overflow or Stack overflow. So if you can sure heap is enough, I recommend to check stack size.

3

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.