• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Report generation: How to avoid "java.lang.OutOfMemoryError: Java heap space"?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Report generation: How to avoid "java.lang.OutOfMemoryError: Java heap space"?


  • Subject: Re: Report generation: How to avoid "java.lang.OutOfMemoryError: Java heap space"?
  • From: Andrew Lindesay <email@hidden>
  • Date: Sun, 30 Sep 2007 19:20:21 +1300

Hello Fabian;

What I tend to do is to raw-row fetch the PK's for the objects involved and then turn those into GID's. Then I loop through a hundred or so at a time with a new EC each time. On each loop, those GID's get turned into "proper enterprise objects" using one big fetch. I then manually assemble (no components) CSV from this. The CSV is then either streamed into a gz-compressed java.io.ByteArrayOutputStream or, in situations where where volumes are likely to exceed the virtual-machine's memory, I use a gz'ed blob- streaming system that I developed.

This seems to work ok for my situations. Can I ask what DB you are using?

cheers.

I'm trying to set up a simple reporting component, output of which is to be used in a statistical analysis. It's basically a WORepetition wrapped around about 40 WOStrings, supposed to render a long
...
Since I'm a bit lost right now, I hope someone can push me in the right direction...

___ Andrew Lindesay technology : www.lindesay.co.nz business : www.silvereye.co.nz


_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Report generation: How to avoid "java.lang.OutOfMemoryError: Java heap space"? (From: Fabian Peters <email@hidden>)

  • Prev by Date: Re: Xcode crash, project file corrupted?
  • Next by Date: I have a dream :-)
  • Previous by thread: Re: Report generation: How to avoid "java.lang.OutOfMemoryError: Java heap space"?
  • Next by thread: die terrible error message
  • Index(es):
    • Date
    • Thread