Return-Path: X-Original-To: apmail-cxf-issues-archive@www.apache.org Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 400FF11699 for ; Thu, 18 Sep 2014 12:34:34 +0000 (UTC) Received: (qmail 68942 invoked by uid 500); 18 Sep 2014 12:34:34 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 68837 invoked by uid 500); 18 Sep 2014 12:34:34 -0000 Mailing-List: contact issues-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list issues@cxf.apache.org Received: (qmail 68557 invoked by uid 99); 18 Sep 2014 12:34:33 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Sep 2014 12:34:33 +0000 Date: Thu, 18 Sep 2014 12:34:33 +0000 (UTC) From: "Lucas Pouzac (JIRA)" To: issues@cxf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CXF-6009) Monitor contention at org.apache.cxf.transport.http.Headers MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CXF-6009?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Lucas Pouzac updated CXF-6009: ------------------------------ Attachment: monitor_contention_headers.png > Monitor contention at org.apache.cxf.transport.http.Headers > ----------------------------------------------------------- > > Key: CXF-6009 > URL: https://issues.apache.org/jira/browse/CXF-6009 > Project: CXF > Issue Type: Improvement > Components: Transports > Affects Versions: 3.0.1 > Reporter: Lucas Pouzac > Labels: concurrency, perfomance > Fix For: 3.0.2, 3.1.0 > > Attachments: monitor_contention_headers.png > > > Headers.getHttpDateFormat() indirectly calls TimeZone.getTimeZone("GMT"), which calls into JRE lib method causing monitor contention. See screen shot > Fix by instantiate into static variable. > {code:java} > private static TimeZone tZone = TimeZone.getTimeZone("GMT"); > public static SimpleDateFormat getHttpDateFormat() { > SimpleDateFormat dateFormat = > new SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss zzz", Locale.US); > dateFormat.setTimeZone(tZone); > return dateFormat; > } > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)