Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 25422200C32 for ; Thu, 9 Mar 2017 09:02:43 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 21419160B64; Thu, 9 Mar 2017 08:02:43 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 6D5DC160B84 for ; Thu, 9 Mar 2017 09:02:42 +0100 (CET) Received: (qmail 5884 invoked by uid 500); 9 Mar 2017 08:02:41 -0000 Mailing-List: contact dev-help@chemistry.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@chemistry.apache.org Delivered-To: mailing list dev@chemistry.apache.org Received: (qmail 5872 invoked by uid 99); 9 Mar 2017 08:02:41 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Mar 2017 08:02:41 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 06F7A1A7A58 for ; Thu, 9 Mar 2017 08:02:41 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.651 X-Spam-Level: X-Spam-Status: No, score=0.651 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_NEUTRAL=0.652] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id XPItplNDn_fL for ; Thu, 9 Mar 2017 08:02:40 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 898E25F39F for ; Thu, 9 Mar 2017 08:02:39 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 5EC01E0294 for ; Thu, 9 Mar 2017 08:02:38 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 18A2D243A6 for ; Thu, 9 Mar 2017 08:02:38 +0000 (UTC) Date: Thu, 9 Mar 2017 08:02:38 +0000 (UTC) From: =?utf-8?Q?Florian_M=C3=BCller_=28JIRA=29?= To: dev@chemistry.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (CMIS-1004) BridgeServiceFactory taking long time MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 09 Mar 2017 08:02:43 -0000 [ https://issues.apache.org/jira/browse/CMIS-1004?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:all-tabpanel ] Florian M=C3=BCller resolved CMIS-1004. ---------------------------------- Resolution: Not A Bug > BridgeServiceFactory taking long time > ------------------------------------- > > Key: CMIS-1004 > URL: https://issues.apache.org/jira/browse/CMIS-1004 > Project: Chemistry > Issue Type: Bug > Components: opencmis-bridge, opencmis-server > Affects Versions: OpenCMIS 1.1.0 > Reporter: vinay > > Hi, > We have a query around time taken by BridgeServiceFactory with every requ= est. Below are the details of our implementation. > We have created ServiceFactory class by extending AbstractBridgeServiceFa= ctory and overriding below methods : > =09@Override > =09protected FilterCmisService createService(CallContext context) > =09 > =09@Override > =09public CmisService getService(CallContext context) > =09@Override > =09public void init(Map parameters) : In this method we a= re enabling ServiceWrapper feature and then calling the super.init() > =09 > We have observed that every SOAP request is taking more than 12 seconds t= o get the Service (i.e. getService(CallContext context) call) > The overridden getService(CallContext context) method calls CachedBinding= CmisService.setCallContext(CallContext context). > Our assumtion was that since cache is in place first request will take ti= me once cache gets warm up. And then all the subsequent call will utilize c= ache. > But this is not happening and every request builds the cache. > On further investigation we found that CachedBindingCmisService.getCmisBi= ndingFromCache() method always return null. It is because the internal call= to HttpSessionCmisService.getCmisBindingFromCache() not able to find the e= xisting session=20 > { > =09HttpSession httpSession =3D getHttpSession(false) ---> This always ret= urn null. > } > Please let us know if there is way to improve and utilize the inbuilt cac= he mechanism. Or is it something missing while creating custom ServiceFacto= ry class by extending AbstractBridgeServiceFactory. > Thanks & Regards, > Vinay -- This message was sent by Atlassian JIRA (v6.3.15#6346)