Received: by 10.224.52.195 with SMTP id j3mr791997qag.0.1347839889885; Sun, 16 Sep 2012 16:58:09 -0700 (PDT) Received: by 10.236.201.134 with SMTP id b6mr1432028yho.15.1347839889859; Sun, 16 Sep 2012 16:58:09 -0700 (PDT) Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!v8no3964994qap.0!news-out.google.com!t12ni8qak.0!nntp.google.com!v8no3964990qap.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.java.programmer Date: Sun, 16 Sep 2012 16:58:09 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=173.164.137.214; posting-account=CP-lKQoAAAAGtB5diOuGlDQk0jIwmH0T NNTP-Posting-Host: 173.164.137.214 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <934afd5a-c848-4598-b503-516260d90f7e@googlegroups.com> Subject: Re: Exception - Java heap space From: Lew Cc: Roedy Green Injection-Date: Sun, 16 Sep 2012 23:58:09 +0000 Content-Type: text/plain; charset=ISO-8859-1 X-Received-Bytes: 2156 Xref: csiph.com comp.lang.java.programmer:18794 Roedy Green wrote: > Magnus Warker wrote, quoted or indirectly quoted someone who said : >>OutOfMemoryError > > I presume you have no problem understanding what "out of memory" > means. You want to know WHY this happened. > > 1. perhaps your problem is too big for the amount of RAM. Change the > memory assignments on the java.exe command line. See > http://mindprod.com/jgloss/javaexe.html > > 2. Perhaps you are packratting, holding on to objects you don't really > need. See http://mindprod.com/jgloss/packratting.html > > 3. You need a tool to figure out what is happening, letting you > monitor how many objects there are of various types. see > http://mindprod.com/jgloss/profiler.html Useful standard tools for memory woes: http://docs.oracle.com/javase/7/docs/technotes/tools/index.html#monitor http://docs.oracle.com/javase/7/docs/technotes/tools/share/jstat.html http://docs.oracle.com/javase/7/docs/technotes/tools/share/jhat.html -- Lew