3 Replies Latest reply: Dec 27, 2006 3:58 AM by 807607 RSS

    Exception in thread "Thread-1" java.lang.OutOfMemoryError: Java heap space

    800713
      Hello all,

      When I executed my code , I got following error

      Exception in thread "Thread-1" java.lang.OutOfMemoryError: Java heap space

      Yes, I know whatever I m doing is quiet large requires lot of memory.. I want to know how can I increse heap memory?
      Note : In Netbeans every time it gives same error.
      and If I execute the program at command line, some times it gets executed completely, but some times gives above error.

      Kindly reply if you have any idea
      Regards

      Nikhil