Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jydCh-0002FP-NI for pgsql-jdbc@arkaria.postgresql.org; Thu, 23 Jul 2020 15:32:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jydCg-0006RQ-JD for pgsql-jdbc@arkaria.postgresql.org; Thu, 23 Jul 2020 15:32:14 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jydCg-0006RJ-AS for pgsql-jdbc@lists.postgresql.org; Thu, 23 Jul 2020 15:32:14 +0000 Received: from mail-oi1-x234.google.com ([2607:f8b0:4864:20::234]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jydCZ-0005cp-S4 for pgsql-jdbc@lists.postgresql.org; Thu, 23 Jul 2020 15:32:13 +0000 Received: by mail-oi1-x234.google.com with SMTP id 12so5357505oir.4 for ; Thu, 23 Jul 2020 08:32:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=Cz/GYDy2XSh7T88Acty4ewxHFXJ+tUz96aFAB/aOk4c=; b=MMw22/CyvSipeZwFQJ9JgVMJFMTg9mLdoS0LE8ERGVxxhrux22f4ddjar1OCXYOvF3 sBD0zwEW3WsfVNscF9vmLX0wfDWRNiENCRyk30LmgN9tAYz1d1mxSyHssvmZJRYc9Fdv FUml5hKXtF0n6AZJPFSd9HwC6sh7VIFjChdfs0u+gtw9yMpm7C0n1WGgJp6owbXCAcdo PUXVAVDytdjZd0gZr6aTn+SA+1QDfAr+0AMh4YNRyXYF/Z/4rBlG8bm1ePvzvrQddsH1 0qf45phn3iDZNoiiRUFR30dRWltqzwjNlvQNvb/bOJO9pxoc5qc5E+9xCCw79uA4F5N7 5Ujg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=Cz/GYDy2XSh7T88Acty4ewxHFXJ+tUz96aFAB/aOk4c=; b=M3ZApQwJwvaEWaImFOqMOBTLo2TaZZaQEAqRIlHARUSiotq8Q7jBogLgjTx2n1/3Jp aQ5caYJZZ7nbWmXLfVvigQA7BiHRbiSBHx2v9Z1KyMvQsDvsFtrNs0risyij7TP+PepB 56m7MpuYlzr+ugOk5ljYcV0PuSMoHjSbURMWZGYFni4W5VKY1LE2ga7QIi2l6olk2Umv iIWcHlck9JAFmbLhYEsWFiGyHDRTXuWzlBNiaqW15UgW9B8HElWjmUAI5tSe/hDeaxLC +9QsOBcTMXTo/XuUkwDGoHAiAIuUWcGCNds3isY2gxdx913jbBtM/se/28Bz5FEGGyni ZhWA== X-Gm-Message-State: AOAM531WqLALo3h6H99SEbdg3MTVePafX1H87tHlmX/xcpfOK7BAHLlU tzJ3NiLbAE0+94SYvVAJjRedwNfB1kQ= X-Google-Smtp-Source: ABdhPJzY3lCWWmdk0MhSyBS/+PQohHpwYPGl8IhsJKLol9U5o42+nMFzAw12XrXdSxmg+r0Zk1lkHg== X-Received: by 2002:aca:5ec6:: with SMTP id s189mr4030740oib.119.1595518326168; Thu, 23 Jul 2020 08:32:06 -0700 (PDT) Received: from ?IPv6:2601:681:5500:dde0:59d8:5a1:866d:1674? ([2601:681:5500:dde0:59d8:5a1:866d:1674]) by smtp.gmail.com with ESMTPSA id m110sm679124otc.62.2020.07.23.08.32.03 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 23 Jul 2020 08:32:04 -0700 (PDT) Subject: Re: java.lang.OutOfMemoryError: GC overhead limit exceeded To: Christophe combet , pgsql-jdbc@lists.postgresql.org References: <347898505.8863312.1595495804718.ref@mail.yahoo.com> <347898505.8863312.1595495804718@mail.yahoo.com> <382025017.8991457.1595502401602@mail.yahoo.com> <928088161.9058165.1595507441236@mail.yahoo.com> <43984f6e-0733-0316-c14d-d092c6efd9a8@gmail.com> <1988332937.9191166.1595514781712@mail.yahoo.com> From: Rob Sargent Message-ID: <211f0c9b-8bea-6f0a-e069-9fcd8fa8bfb6@gmail.com> Date: Thu, 23 Jul 2020 09:32:02 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <1988332937.9191166.1595514781712@mail.yahoo.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-CA Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 7/23/20 8:33 AM, Christophe combet wrote: > Dear Rob, > > Total RAM is 512GB. > > Runtime.getRuntime().freeMemory() says: 7,630,918,904 at the time of > issuing the query. > > jConsole timed out and it is impossible to reconnect. I did a screen > capture at the time of the freeze. > > Le jeudi 23 juillet 2020 à 15:33:34 UTC+2, Rob Sargent > a écrit : > > > > > On 7/23/20 6:30 AM, Christophe combet wrote: > > > > Thank you for pointing the link between auto commit an buffering. > > > > autocommit=false: same exception. > > > > We try fetchSize. > > > > Thanks. > > Le jeudi 23 juillet 2020 à 13:47:14 UTC+2, Vladimir Sitnikov > > > a > écrit : > > > > > >  >can you try switching to autocommit=false? > > > > + you probably need to configure fetchSize as well. > > > > Vladimir > > > > You set the 8G limit on the java process but did you tell up the > available RAM?  This query would require that about 3G be available to > hold all the data. Can you use jConsole to establish how much memory is > available at the time of issuing the query? > > > Upthread the select statement returned only "column1" * We are doing a "SELECT column1 FROM table1 ODER BY column1;" (column1 * is varchar(14) and the table contains 130,080,790 rows), when the * * exception occurs. Are you reading in the bytea column as well? And does it finish if you add more memory to the jvm (just for testing purposes).