Temporary memory peak

From: Marcel Ruff <mr(at)marcelruff(dot)info>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: Temporary memory peak
Date: 2003-02-17 21:07:47
Message-ID: 3E514F23.10107@marcelruff.info
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Hi,

i'm using the postgres JDBC driver to put a 2 MB blob into the database
(PostgreSQL 7.2.2).

I have tried an old release, the current stable (for JDK 1.2/1.3 and for
JDK 1.4) and the current snapshot for JDK 1.4 (2003 02 09) with the same
result.

When inserting a 2 MB blob (bytea) into Postgres the JDK memory
consumption reaches appr. 20 to 40 times the memory (40 MB).
Inserting a 5 MB blob exhausts my memory.

As a comparison:
The Oracle JDBC driver consumes temporary 5 times the size (~10MB)
which is still a lot.

Is there any workaround?

thanks

Marcel
http://www.xmlBlaster.org

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Tom Lane 2003-02-18 03:41:55 Re: Leftover processes on shutdown - Debian+JDBC
Previous Message Dirk Bromberg 2003-02-17 20:45:21 ConnectionPool howto??