Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #18794

Re: Exception - Java heap space

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 <ofrb58pjpqob6qu3lt3ub618d24p0h6jv7@4ax.com>
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 <k305t6$n8o$1@news.m-online.net> <ofrb58pjpqob6qu3lt3ub618d24p0h6jv7@4ax.com>
User-Agent G2/1.0
MIME-Version 1.0
Message-ID <934afd5a-c848-4598-b503-516260d90f7e@googlegroups.com> (permalink)
Subject Re: Exception - Java heap space
From Lew <lewbloch@gmail.com>
Cc Roedy Green <see_website@mindprod.com.invalid>
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

Show key headers only | View raw


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

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Exception - Java heap space Magnus Warker <magnux@mailinator.com> - 2012-09-14 23:01 +0200
  Re: Exception - Java heap space Robert Klemme <shortcutter@googlemail.com> - 2012-09-14 23:09 +0200
    Re: Exception - Java heap space Lew <lewbloch@gmail.com> - 2012-09-14 14:19 -0700
      Re: Exception - Java heap space Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2012-09-14 15:06 -0700
  Re: Exception - Java heap space Roedy Green <see_website@mindprod.com.invalid> - 2012-09-16 08:23 -0700
    Re: Exception - Java heap space Lew <lewbloch@gmail.com> - 2012-09-16 16:58 -0700
  Re: Exception - Java heap space Kevin McMurtrie <mcmurtrie@pixelmemory.us> - 2012-09-18 22:25 -0700

csiph-web