Return-Path: X-Original-To: apmail-manifoldcf-user-archive@www.apache.org Delivered-To: apmail-manifoldcf-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DC7A8EEE8 for ; Thu, 7 Feb 2013 14:43:53 +0000 (UTC) Received: (qmail 57986 invoked by uid 500); 7 Feb 2013 14:43:53 -0000 Delivered-To: apmail-manifoldcf-user-archive@manifoldcf.apache.org Received: (qmail 57932 invoked by uid 500); 7 Feb 2013 14:43:53 -0000 Mailing-List: contact user-help@manifoldcf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@manifoldcf.apache.org Delivered-To: mailing list user@manifoldcf.apache.org Received: (qmail 57924 invoked by uid 99); 7 Feb 2013 14:43:53 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Feb 2013 14:43:53 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of daddywri@gmail.com designates 209.85.128.169 as permitted sender) Received: from [209.85.128.169] (HELO mail-ve0-f169.google.com) (209.85.128.169) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Feb 2013 14:43:48 +0000 Received: by mail-ve0-f169.google.com with SMTP id 15so2342552vea.14 for ; Thu, 07 Feb 2013 06:43:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type:content-transfer-encoding; bh=MOo8x5BHHX31faMQ/fA8ghbpjt7s9xgVHkKhuI7GhE4=; b=jhsvOcW2YFgrvYl0F15DFRH5SpZrggEK7yU0dpH435FoJWM5e1jxiRevxmBpfbKdjG aWPn5bLo41a8GpGfswauUK0Tr5akSqyRLGPFSXOKOJZr0qaP6+c5o8SpuYFWv7SukAbX 1TVTVZbIwsFfE0qtsV4z1Mb/XB9AGevhx/zsT8F3YWcAHLQKR/Bixhcfj27J1eAEyuHt fkIT5MlITUxUH/R0JVMuEhSleINfLF0ADyn/Aw89V8obSsmsrib7II+SKk+OYmKtvqmg VBNi7bF5aPrhitHCfEQIIwp/yhQD0BPYwgxZf0aCY39Q8zl/RlUjJahTY6VokszpVT6S NXvg== MIME-Version: 1.0 X-Received: by 10.52.71.174 with SMTP id w14mr1581374vdu.122.1360248207713; Thu, 07 Feb 2013 06:43:27 -0800 (PST) Received: by 10.58.233.243 with HTTP; Thu, 7 Feb 2013 06:43:27 -0800 (PST) In-Reply-To: <5113BD34.6020901@usit.uio.no> References: <51025DC7.8000702@usit.uio.no> <5110FD4A.6040006@usit.uio.no> <51122706.2040709@usit.uio.no> <511244E4.4020102@usit.uio.no> <51124947.7080309@usit.uio.no> <511251AE.3050805@usit.uio.no> <511255A6.4070908@usit.uio.no> <51126252.1030506@usit.uio.no> <5113B485.6070202@usit.uio.no> <5113BD34.6020901@usit.uio.no> Date: Thu, 7 Feb 2013 09:43:27 -0500 Message-ID: Subject: Re: max_pred_locks_per_transaction From: Karl Wright To: user@manifoldcf.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org It is not necessary to wait until the job ends; each time it runs out of handles it prints the entire set of allocated handles. You can stop the job now. Karl On Thu, Feb 7, 2013 at 9:41 AM, Erlend Gar=E5sen = wrote: > > I will upload the log to Jira or place it on web as soon as the job ends. > > Erlend > > > On 07.02.13 15.34, Karl Wright wrote: >> >> FWIW, the way this diagnostic code works is that it simply dumps ALL >> the handles that are currently considered to be in use. Some of them >> are leaked, and some are just being used. So it's really the sum >> total of all of them that will help us narrow down where leaks are >> occurring. >> >> I looked at the one location you provided; it's entirely unremarkable; >> it's not even happening in a transaction. If similar locations show >> up again and again, it will mean that the problem must be in the part >> of the code that allocates connections at the lowest level. Before I >> start picking that code apart line by line, though, I'd like all the >> data. >> >> Karl >> >> On Thu, Feb 7, 2013 at 9:07 AM, Karl Wright wrote: >>> >>> Thanks, this is great. >>> >>> Could you include ALL of the 'possibly leaked' connections? I'm >>> looking for the ones that show up over and over again. Please attach >>> that part of the log to the ticket. >>> >>> Karl >>> >>> On Thu, Feb 7, 2013 at 9:04 AM, Erlend Gar=E5sen >>> wrote: >>>> >>>> On 06.02.13 15.24, Karl Wright wrote: >>>> >>>>> FWIW, schema creation has been working fine here, and all tests that >>>>> exercise the schema have been passing fine as well. >>>> >>>> >>>> >>>> My fault, but everything is successfully set up now. >>>> >>>> I think I have reproduced the issue. The crawl is still running, but I >>>> guess >>>> it will stop very soon due to the following entries in my log. The las= t >>>> fetched URL before the first of these log entries below was: >>>> >>>> https://www.duo.uio.no/handle/123456789/31/discover?fq=3Dauthor_filter= %3Aaaberge%2C%5C+astrid%5C%7C%5C%7C%5C%7CAaberge%2C%5C+Astrid >>>> >>>> It seems that this URL is part of a search, so maybe we will get aroun= d >>>> this >>>> problem by filtering out all search-related URLs. The problem is that = it >>>> is >>>> already filtered out, but by doing post filtering. I can try to adjust >>>> that >>>> at next attempt. >>>> >>>> INFO 2013-02-07 14:32:08,166 (Worker thread '13') - WEB: FETCH >>>> >>>> URL|https://www.duo.uio.no/handle/123456789/31/discover?fq=3Dauthor_fi= lter%3Aaaberge%2C%5C+astrid%5C%7C%5C%7C%5C%7CAaberge%2C%5C+Astrid|136024392= 7960+204|200|24992| >>>> WARN 2013-02-07 14:32:08,228 (Worker thread '16') - Out of db >>>> connections, >>>> list of outstanding ones follows. >>>> WARN 2013-02-07 14:32:08,229 (Worker thread '16') - Found a possibly >>>> leaked >>>> db connection >>>> java.lang.Exception: Possibly leaked db connection >>>> at >>>> >>>> org.apache.manifoldcf.core.jdbcpool.ConnectionPool.getConnection(Conne= ctionPool.java:72) >>>> >>>> at >>>> >>>> org.apache.manifoldcf.core.database.ConnectionFactory.getConnectionWit= hRetries(ConnectionFactory.java:125) >>>> at >>>> >>>> org.apache.manifoldcf.core.database.ConnectionFactory.getConnection(Co= nnectionFactory.java:96) >>>> at >>>> >>>> org.apache.manifoldcf.core.database.Database.executeUncachedQuery(Data= base.java:758) >>>> at >>>> >>>> org.apache.manifoldcf.core.database.Database$QueryCacheExecutor.create= (Database.java:1430) >>>> >>>> at >>>> >>>> org.apache.manifoldcf.core.cachemanager.CacheManager.findObjectsAndExe= cute(CacheManager.java:144) >>>> at >>>> >>>> org.apache.manifoldcf.core.database.Database.executeQuery(Database.jav= a:186) >>>> at >>>> >>>> org.apache.manifoldcf.core.database.DBInterfacePostgreSQL.performQuery= (DBInterfacePostgreSQL.java:803) >>>> at >>>> >>>> org.apache.manifoldcf.core.database.BaseTable.performQuery(BaseTable.j= ava:221) >>>> at >>>> >>>> org.apache.manifoldcf.crawler.jobs.HopCount.processFind(HopCount.java:= 674) >>>> at >>>> >>>> org.apache.manifoldcf.crawler.jobs.HopCount.findHopCounts(HopCount.jav= a:649) >>>> at >>>> >>>> org.apache.manifoldcf.crawler.jobs.JobManager.findHopCounts(JobManager= .java:3777) >>>> at >>>> >>>> org.apache.manifoldcf.crawler.system.WorkerThread.run(WorkerThread.jav= a:224) >>>> WARN 2013-02-07 14:32:08,233 (Worker thread '16') - Found a possibly >>>> leaked >>>> db connection >>>> >>>> >>>> >>>> >>>> -- >>>> Erlend Gar=E5sen >>>> Center for Information Technology Services >>>> University of Oslo >>>> P.O. Box 1086 Blindern, N-0317 OSLO, Norway >>>> Ph: (+47) 22840193, Fax: (+47) 22852970, Mobile: (+47) 91380968, VIP: >>>> 31050 > > > > -- > Erlend Gar=E5sen > Center for Information Technology Services > University of Oslo > P.O. Box 1086 Blindern, N-0317 OSLO, Norway > Ph: (+47) 22840193, Fax: (+47) 22852970, Mobile: (+47) 91380968, VIP: 310= 50