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 15BD5200D4B for ; Mon, 27 Nov 2017 13:37:13 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 13FA7160C13; Mon, 27 Nov 2017 12:37:13 +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 81200160C02 for ; Mon, 27 Nov 2017 13:37:12 +0100 (CET) Received: (qmail 4523 invoked by uid 500); 27 Nov 2017 12:37:11 -0000 Mailing-List: contact user-help@cayenne.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cayenne.apache.org Delivered-To: mailing list user@cayenne.apache.org Received: (qmail 4512 invoked by uid 99); 27 Nov 2017 12:37:11 -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, 27 Nov 2017 12:37:11 +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 A0D9B1806DF for ; Mon, 27 Nov 2017 12:37:10 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.3 X-Spam-Level: X-Spam-Status: No, score=0.3 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id jgKWopkzsZ3o for ; Mon, 27 Nov 2017 12:37:09 +0000 (UTC) Received: from mail-03.1984.is (mail-03.1984.is [93.95.224.70]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 4F5525F2AE for ; Mon, 27 Nov 2017 12:37:08 +0000 (UTC) Received: from localhost by mail-03.1984.is with esmtpsa (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eJIei-0001Xq-Ge for user@cayenne.apache.org; Mon, 27 Nov 2017 12:37:00 +0000 From: Hugi Thordarson Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 11.1 \(3445.4.7\)) Subject: Experiencing occasional Cayenne-slowness on Sierra or High Sierra? Might want to read this. Message-Id: Date: Mon, 27 Nov 2017 12:37:01 +0000 To: user@cayenne.apache.org X-Mailer: Apple Mail (2.3445.4.7) archived-at: Mon, 27 Nov 2017 12:37:13 -0000 Hi all. Just a quick service notification: I recently noticed my unit tests were = running rather slowly, due to weird occasional 8 second breaks. Turns out that something changed in Sierra regarding how it handles host = name lookups (although weirdly enough, this was only exposed in High = Sierra for me) making the invocation of = java.net.InetAddress.getLocalHost() extremely slow. And Cayenne uses = that method in IDUtil to get the machine's IP address for generation of = random IDs. The workaround/fix is to add the hostname of your machine to the = localhost records in /etc/hosts, as specified here: https://thoeni.io/post/macos-sierra-java/ Cheers, - hugi=