Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d2kPn-0005kC-Mq for pgsql-jdbc@arkaria.postgresql.org; Mon, 24 Apr 2017 20:16:55 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1d2kPn-0002tV-9P for pgsql-jdbc@arkaria.postgresql.org; Mon, 24 Apr 2017 20:16:55 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1d2kPm-0002oR-8K for pgsql-jdbc@postgresql.org; Mon, 24 Apr 2017 20:16:54 +0000 Received: from relay9-d.mail.gandi.net ([217.70.183.199]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1d2kPi-0002QT-LR for pgsql-jdbc@postgresql.org; Mon, 24 Apr 2017 20:16:53 +0000 Received: from relay6-d.mail.gandi.net (relay6-d.mail.gandi.net [217.70.183.198]) by relay9-d.mail.gandi.net (Postfix) with ESMTPS id 37ED14073D; Mon, 24 Apr 2017 22:16:49 +0200 (CEST) Received: from mfilter32-d.gandi.net (mfilter32-d.gandi.net [217.70.178.163]) by relay6-d.mail.gandi.net (Postfix) with ESMTP id 1C75EFB877; Mon, 24 Apr 2017 22:16:49 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mfilter32-d.gandi.net Received: from relay6-d.mail.gandi.net ([IPv6:::ffff:217.70.183.198]) by mfilter32-d.gandi.net (mfilter32-d.gandi.net [::ffff:10.0.15.180]) (amavisd-new, port 10024) with ESMTP id 6ol6auEihuFU; Mon, 24 Apr 2017 22:16:47 +0200 (CEST) X-Originating-IP: 10.58.1.144 Received: from webmail.gandi.net (webmail4-d.mgt.gandi.net [10.58.1.144]) (Authenticated sender: rado@edno.moe) by relay6-d.mail.gandi.net (Postfix) with ESMTPA id 48DC9FB883; Mon, 24 Apr 2017 22:16:47 +0200 (CEST) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Mon, 24 Apr 2017 23:16:47 +0300 From: rado@edno.moe To: pgsql-jdbc@postgresql.org Cc: sitnikov.vladimir@gmail.com Subject: Re: 42.0.0.jre7, driver logging takes 30-40% of my server's time Message-ID: X-Sender: rado@edno.moe User-Agent: Roundcube Webmail/1.1.2 X-Pg-Spam-Score: -5.4 (-----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-jdbc Precedence: bulk Sender: pgsql-jdbc-owner@postgresql.org Hi Vladimir, here are the results from my test of PosgtresSQL JDBC 9.4.1212 vs 42.0.0 (as I mentioned on github). It is a single run in a VM but it is ease to have several runs. IMO the results don't show performance degradation at least for the tested simple testcases - yes, there are some fluctuations but nothing significant. The computer I'm running the VM is using very modest Intel Celeron N3150. If someone has access to more powerful hardware it will be good to run the tests also - the current setup is not so good in detecting small changes in performance - too much time is spend in CPU emulation in the VM. I'm using the code base of TFB and particularly the Java/servlet implementation. The code is NOT having a logging framework in the classpath. At least I'm not aware of it and I've checked the maven dependencies. The servlet container is Resin 4.0.48. If anyone wish to take a look don't forget to provide the correct maven profile (-P v42 or -P v9). The logs of the run are here: https://github.com/zloster/logs/tree/master/FrameworkBenchmarks/postgreJDBC-9.4.1212-vs-42.0.0 The numbers are here: https://github.com/zloster/logs/blob/master/FrameworkBenchmarks/postgreJDBC-9.4.1212-vs-42.0.0/results.json The servlet implementation is here: https://github.com/zloster/FrameworkBenchmarks/tree/postgrejdbc/frameworks/Java/servlet The branch is here: https://github.com/zloster/FrameworkBenchmarks/tree/postgrejdbc For other details consult the logs or ask me. About https://github.com/pgjdbc/pgjdbc/issues/793 - it should be fairly easy to have a servlet with Log4j logger and some servlet with some other logger also. Even if the test tables are very small there are quite a lot of resultset processing. If there is performance degradation maybe it will show up as a difference. Cheers, zloster -- Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-jdbc