<P>Gustavo,</P>
<P>I tried to give more memory to Java Virtual Machine, It doesn't help. I think a JDBC driver should not depend on the size of a&nbsp;ResultSet, otherwise how I can fetch all the records from a huge database. I wrote a JDBC driver for a previous project before. Actually we have a buffer at the client side, each time&nbsp;only 256 records were downloaded from the&nbsp;server, when a user calls next() 256 times, we download another chunk&nbsp;records of 256 records into the&nbsp;buffer. So no matter how large the resultset is, it doesn't matter at the client side. At least no OutOfMemoryError unless the&nbsp;resultset has thousands columns, :).</P>
<P>In my case, each record contains only 1. I'm&nbsp;so confusing. &nbsp;how could it get OutOfMemoryError?&nbsp;&nbsp;&nbsp;&nbsp;<BR></P>
<P>Thank you again for your kind assistant.</P>
<P><BR>-- Kai</P>
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">----- Original Message ----- <BR>From: "Gustavo Henrique Sberze Ribas" <GRIBAS@CPQD.COM.BR><BR>To: "PostGIS Users Discussion" <POSTGIS-USERS@POSTGIS.REFRACTIONS.NET><BR>Subject: RE: [postgis-users] JDBC OutofMemoryError <BR>Date: Thu, 4 Aug 2005 08:02:08 -0300 <BR><BR>&gt; <BR>&gt; Hello, <BR>&gt; <BR>&gt; A few things to try out: <BR>&gt; <BR>&gt; - Narrow down your search (use WHERE); <BR>&gt; - Limit the number of rows returned (use LIMIT); <BR>&gt; - Give Java more memory: java -Xmx512M MyProgram <BR>&gt; <BR>&gt; <BR>&gt; -- <BR>&gt; Gustavo <BR>&gt; <BR>&gt; -----Original Message----- <BR>&gt; From: postgis-users-bounces@postgis.refractions.net <BR>&gt; [mailto:postgis-users-bounces@postgis.refractions.net]On Behalf Of <BR>&gt; Akira Komo <BR>&gt; Sent: Wednesday, August 03, 2005 5:28 PM <BR>&gt; To: postgis-users@postgis.refractions.net <BR>&gt; Subject: [postgis-users] JDBC OutofMemoryError <BR>&gt; <BR>&gt; <BR>&gt; Dear all, <BR>&gt; I have two small tables arizona_geo and colorado_geo in PostGIS <BR>&gt; which were converted from two shapefiles. Each of them has only <BR>&gt; several hundreds records. When I tried to issue a very simple query via <BR>&gt; JDBC connection, I always got an OutOfMemoryError. One example <BR>&gt; query is <BR>&gt; select 1 from arizona_geo X, colorado_geo Y <BR>&gt; I tried different postgresql JDBC driver with postgis extension, basically <BR>&gt; I got the same error. I am very appreciated if somebody can give me an <BR>&gt; idea to solve this problem. <BR>&gt; -- Kumo <BR>&gt; <BR>&gt; <BR>&gt; <BR>&gt; -- <BR>&gt; ___________________________________________________________ <BR>&gt; Sign-up for Ads Free at Mail.com <BR>&gt; http://www.mail.com/?sr=signup <BR>&gt; _______________________________________________ <BR>&gt; postgis-users mailing list <BR>&gt; postgis-users@postgis.refractions.net <BR>&gt; http://postgis.refractions.net/mailman/listinfo/postgis-users <BR></BLOCKQUOTE><BR>

-- 
<p>___________________________________________________________<br>Sign-up for Ads Free at Mail.com<br>
<a href="http://mail01.mail.com/scripts/payment/adtracking.cgi?bannercode=adsfreejump01" target="_blank">http://www.mail.com/?sr=signup</a></p>