Unix Technical Forum

out of memory error

This is a discussion on out of memory error within the pgsql Interfaces jdbc forums, part of the PostgreSQL category; --> I'm getting 'out of memory' errors when retrieving the entire contents of a reasonably large tables. I spent an ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Interfaces jdbc

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-16-2008, 12:34 AM
Wm.A.Stafford
 
Posts: n/a
Default out of memory error

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



---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-16-2008, 12:34 AM
Kris Jurka
 
Posts: n/a
Default Re: out of memory error



On Fri, 2 Feb 2007, Wm.A.Stafford wrote:

> 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.


Are you satisfying all of the constraints that are mentioned here:

http://jdbc.postgresql.org/documenta...ry-with-cursor

Kris Jurka


---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 08:34 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com