From: Wm.A.Stafford <stafford@marine.rutgers.edu>
To: pgsql-jdbc@postgresql.org
Subject: out of memory error
Date: Fri, 02 Feb 2007 14:30:02 -0500
Message-ID: <45C3913A.40607@marine.rutgers.edu> (raw)
I'm getting 'out of memory' errors when retrieving the entire contents
of a reasonably large tables. I spent an hour or so trying all the
remedies that showed up via Google search for 'postgresql out of memory'
and nothing seemed to work. The two most often recommended were
increasing Java heap size (I went up to 128m) and
Statement.setFetchSize(1). I saw no significant difference with either
of these.
Is there a way to eliminate these errors? I'm working on an application
that is reading a table and writing it out to a text file after
removing unprintable characters. So my program logic is dead simple:
select * from table
while ( rs.next() )
process and write;
My driver is postgresql-8.1-407.jdbc3.jar
Thanks,
-=bill
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: stafford@marine.rutgers.edu
Subject: Re: out of memory error
In-Reply-To: <45C3913A.40607@marine.rutgers.edu>
References: <45C3913A.40607@marine.rutgers.edu>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox