From user-return-8367-apmail-uima-user-archive=uima.apache.org@uima.apache.org Mon Jun 29 13:37:30 2020 Return-Path: X-Original-To: apmail-uima-user-archive@www.apache.org Delivered-To: apmail-uima-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by minotaur.apache.org (Postfix) with SMTP id B299E1916A for ; Mon, 29 Jun 2020 13:37:29 +0000 (UTC) Received: (qmail 69123 invoked by uid 500); 29 Jun 2020 13:37:28 -0000 Delivered-To: apmail-uima-user-archive@uima.apache.org Received: (qmail 69097 invoked by uid 500); 29 Jun 2020 13:37:28 -0000 Mailing-List: contact user-help@uima.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@uima.apache.org Delivered-To: mailing list user@uima.apache.org Received: (qmail 69085 invoked by uid 99); 29 Jun 2020 13:37:28 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Jun 2020 13:37:28 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id C6AEF181503 for ; Mon, 29 Jun 2020 13:37:27 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.507 X-Spam-Level: X-Spam-Status: No, score=0.507 tagged_above=-999 required=6.31 tests=[KAM_DMARC_STATUS=0.01, KAM_NUMSUBJECT=0.5, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=disabled Received: from mx1-ec2-va.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id Sg7wlNZKAeKD for ; Mon, 29 Jun 2020 13:37:23 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=192.185.145.239; helo=gateway33.websitewelcome.com; envelope-from=msa@schor.com; receiver= Received: from gateway33.websitewelcome.com (gateway33.websitewelcome.com [192.185.145.239]) by mx1-ec2-va.apache.org (ASF Mail Server at mx1-ec2-va.apache.org) with ESMTPS id 9CE7FBC030 for ; Mon, 29 Jun 2020 13:37:23 +0000 (UTC) Received: from cm12.websitewelcome.com (cm12.websitewelcome.com [100.42.49.8]) by gateway33.websitewelcome.com (Postfix) with ESMTP id 3AC371B7FED for ; Mon, 29 Jun 2020 08:37:16 -0500 (CDT) Received: from gator3253.hostgator.com ([198.57.247.217]) by cmsmtp with SMTP id ptyFj8F9XzOauptyGjNuON; Mon, 29 Jun 2020 08:37:16 -0500 X-Authority-Reason: nr=8 Received: from ool-45705687.dyn.optonline.net ([69.112.86.135]:61165 helo=[192.168.1.131]) by gator3253.hostgator.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1jptyF-002Ne3-J7 for user@uima.apache.org; Mon, 29 Jun 2020 08:37:15 -0500 Subject: Re: Performance degradation in UIMA3 To: user@uima.apache.org References: <54B13DB9-7CEB-4338-94C8-62D4BBEDAFF5@cactusglobal.com> <925304a9-6fd5-d9c5-c44b-5cbd1994ff14@schor.com> From: Marshall Schor Autocrypt: addr=msa@schor.com; prefer-encrypt=mutual; keydata= mQINBFjyRhwBEADCmBAgPZHFtpGBlNCwYhwjrgXnJEkETZe4Y9h3b/zfg4F8VFeQsR4Ju17V I63cYIaVNisWoURVOVFyia9/C2nK5q8u5qhb4mBEQIZ8zqpcm9qUOfoM21XwK/SireOQrNQn cxAsWoC5znEuFM/UtYQFygSfGKOs/pVliGkpbvwByUugJvwKsDaWeoDYeC1Qfv3NWyJhGf0A HMHZAv0hlry6n9bxkrPHWrHMH/Pev5pPAogVf5dGAFhEQ0fYIgKJBlqe0OruKGD+ZU657bIL r/MZDnE6RTEH8OMow1Hm8yC8KQUgmKjpwx4nqe1Doy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NZO+oMsL8JBYGlRq+pHBZvWjbFREeBt0Q7FZEso4gNIq IPsi8zOFKwQAy52GQNPz0ThoWBEU9hQ58MCcIaIDJBaq/twFdvO125cRa8GhPUa4l74zEmfj SVFGOp3dgWYP5R2GqQMouXyQJUw2mzJ6Vw8vFAtJuxzJqKA+RoEYIB08wPeAgeo1A7Fj0OGC QiGOujQBHsiXp1bHaZnoGvSFiMHsourbEdGXSV6o1wmAgEeKeGrjf1NKWweF98QdAviwP+PJ BfaLP/2mru8NeFcxgKMsAdgvqDmAA4Y61u7cvCail8pEHijihV8L0wqRFonYZliiaWPQrSn4 DK/1wG+YG4rP/G1PQEtT4pk7tEfVSihV4tx6PsC+Um+gJEFtlipQf4V6ANjU8vFlyTgaHPJG iiCGe2lQkeChXIWP2a+fTntbidGEG/+FpYmQdIawuTBbN8vPq0QPdQapJG2NAbenB5k4eHQb /+9ttfYIRlz6kRhiNFdMbw== Message-ID: <8f9885f8-ccdb-21cd-18e5-0b5aec7279db@schor.com> Date: Mon, 29 Jun 2020 08:37:15 -0500 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 MIME-Version: 1.0 In-Reply-To: <925304a9-6fd5-d9c5-c44b-5cbd1994ff14@schor.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Content-Language: en-US X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator3253.hostgator.com X-AntiAbuse: Original Domain - uima.apache.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - schor.com X-BWhitelist: no X-Source-IP: 69.112.86.135 X-Source-L: No X-Exim-ID: 1jptyF-002Ne3-J7 X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: ool-45705687.dyn.optonline.net ([192.168.1.131]) [69.112.86.135]:61165 X-Source-Auth: msa+schor.com X-Email-Count: 2 X-Source-Cap: bWlzY2hvcjttaXNjaG9yO2dhdG9yMzI1My5ob3N0Z2F0b3IuY29t X-Local-Domain: yes https://issues.apache.org/jira/browse/UIMA-6249 On 6/29/2020 8:32 AM, Marshall Schor wrote: > Hi, > > Thanks for this. Investigating... -Marshall > > > On 6/29/2020 6:15 AM, Augusto Ribeiro Silva wrote: >> Hi all, >> >> I am writing because I noticed that our pipelines got considerably slower after updating to UIMA3. The cause of the slowdown seems to be the fact that the method getJCasRegisteredType located in TypeSystemImpl uses a synchronised block. We haven't noticed it before but when I was running a pipeline in a large machine (48 cores with 80 worker threads) many of the threads were blocked in this specific method. >> >> I just wanted to point that this is a big problem for us and I am not sure if you are aware or if there is some workaround. I am at this point considering packaging our own version of UIMA without the synchronised block since our types are not dynamic and should be loaded when the pipeline starts so it is unlikely that we need the synchronised access to the type registry. >> >> Best regards, >> Augusto >> >> >> ________________________________ >> Disclaimer: >> This email and any files transmitted with it are confidential and directed solely for the use of the intended addressee or addressees and may contain information that is legally privileged, confidential, and exempt from disclosure. If you have received this email in error, please notify the sender by telephone, fax, or return email and immediately delete this email and any files transmitted along with it. Unintended recipients are not authorized to disclose, disseminate, distribute, copy or take any action in reliance on information contained in this email and/or any files attached thereto, in any manner other than to notify the sender; any unauthorized use is subject to legal prosecution. >> >>