X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id B52FC3A48C8 for ; Mon, 15 Nov 2004 19:11:07 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 12688-08 for ; Mon, 15 Nov 2004 19:11:05 +0000 (GMT) Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [203.79.85.162]) by svr1.postgresql.org (Postfix) with ESMTP id 05E8F3A48C7 for ; Mon, 15 Nov 2004 19:11:04 +0000 (GMT) Received: from 203-79-104-60.cable.paradise.net.nz ([203.79.104.60] helo=[192.168.0.20]) by yass.opencloud.co.nz with asmtp (Exim 3.35 #1 (Debian)) id 1CTmFe-0005AS-00; Tue, 16 Nov 2004 08:10:58 +1300 Message-ID: <41990010.8020903@opencloud.com> Date: Tue, 16 Nov 2004 08:14:24 +1300 From: Oliver Jowett User-Agent: Mozilla Thunderbird 0.9 (X11/20041115) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Guido Fiala Cc: pgsql-jdbc@postgresql.org Subject: Re: Why is PGStream.flush() taking so much time? References: <200411151625.58422.guido.fiala@dka-gmbh.de> In-Reply-To: <200411151625.58422.guido.fiala@dka-gmbh.de> X-Enigmail-Version: 0.86.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200411/114 X-Sequence-Number: 11536 Guido Fiala wrote: > Due to performance problems profiling showed the PGStream.flush() - thats > pg_output buffered Stream - takes the most time although we do not really > send much sql-queries at that time, at least we get much more data than we > send. System and database is also almost idle at that time. Can you show us the whole profile? I can't see why flush() should be expensive at all. Are you sure that you are not counting time spent blocked in native code as busy time? (hprof likes to do that) -O