From owner-freebsd-java@FreeBSD.ORG Wed Nov 14 14:09:04 2012 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D7DA5470 for ; Wed, 14 Nov 2012 14:09:04 +0000 (UTC) (envelope-from yerenkow@gmail.com) Received: from mail-oa0-f54.google.com (mail-oa0-f54.google.com [209.85.219.54]) by mx1.freebsd.org (Postfix) with ESMTP id 98DF38FC16 for ; Wed, 14 Nov 2012 14:09:04 +0000 (UTC) Received: by mail-oa0-f54.google.com with SMTP id n9so535022oag.13 for ; Wed, 14 Nov 2012 06:09:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=n0+4674sU5JJ762DLTl+oK6J/WVeZqoAeOhdEyCJ9f4=; b=K/u8iAnOidnK/QApScM5iWOstR76J/8eWuirZyZLRT9pm0b37+LNSCtdYTAMKjycje mooHEsFl9rIYM5lETWgVj26lJ24ud79Tp1IFymsVANSYftoC7Q/AfPg3yRFJCMzD+YpS 0BCB0uypSzuo2spgZ1OhklhpsmSGLAPFHA2DKmC8Ws7CZuJz52xxwmIa69SCgtgryTZ4 XDN3JaH+tkE70ybZdp9Nv5F/pXueLP8AK4OOpJ08dXcmdPKXSOuYii01o0t8A7shes5o us8mQoXZpJrFVyw8JBQQVAwKIqwoFBBzjx6F92QVd53lbqCBGpAXKFB2iZwZArRNPUTb 37mw== MIME-Version: 1.0 Received: by 10.182.18.165 with SMTP id x5mr21275675obd.73.1352902143940; Wed, 14 Nov 2012 06:09:03 -0800 (PST) Received: by 10.60.58.165 with HTTP; Wed, 14 Nov 2012 06:09:03 -0800 (PST) Date: Wed, 14 Nov 2012 16:09:03 +0200 Message-ID: Subject: getCurrentThreadCpuTime Not supported under FreeBSD From: Alexander Yerenkow To: freebsd-java@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Nov 2012 14:09:04 -0000 Hello all. Did someone tried to make FreeBSD java working with CPU? This simple code currently failing under openjdk6/openjdk7: ThreadMXBean threadMXBean = ManagementFactory.getThreadMXBean(); System.out.println("threadMXBean.isThreadCpuTimeSupported() = " + threadMXBean.isThreadCpuTimeSupported()); System.out.println("threadMXBean.isThreadCpuTimeEnabled() = " + threadMXBean.isThreadCpuTimeEnabled()); And also, some programs (JBoss, Intellij IDEA) partially failsto work (first can't make through build tests, second one just spamming in logs that ThreadCpuTime undefined); -- Regards, Alexander Yerenkow