From owner-freebsd-java@FreeBSD.ORG Wed Feb 27 16:16:30 2013 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 81A3FA96 for ; Wed, 27 Feb 2013 16:16:30 +0000 (UTC) (envelope-from jurij.kovacic@ocpea.com) Received: from out-1.mail.amis.net (out-1.mail.amis.net [212.18.32.4]) by mx1.freebsd.org (Postfix) with ESMTP id 3E562C28 for ; Wed, 27 Feb 2013 16:16:30 +0000 (UTC) Received: from in-3.mail.amis.net (in-3.mail.amis.net [212.18.32.22]) by out-1.mail.amis.net (Postfix) with ESMTP id BDCE24501E; Wed, 27 Feb 2013 17:16:22 +0100 (CET) Received: from in-3.mail.amis.net (localhost [127.0.0.1]) by in-3.mail.amis.net (Postfix) with ESMTP id BA9B2C948F; Wed, 27 Feb 2013 17:16:22 +0100 (CET) X-Virus-Scanned: amavisd-new at amis.net X-Spam-Flag: NO X-Spam-Score: -1 X-Spam-Level: X-Spam-Status: No, score=-1 required=5 tests=[ALL_TRUSTED=-1] autolearn=disabled Received: from in-3.mail.amis.net ([127.0.0.1]) by in-3.mail.amis.net (in-3.mail.amis.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qUc1bt8KGGZY; Wed, 27 Feb 2013 17:16:20 +0100 (CET) Received: from smtp1.amis.net (smtp1.amis.net [IPv6:2001:15c0:ffff:f::41]) by in-3.mail.amis.net (Postfix) with ESMTP id 473F2C9495; Wed, 27 Feb 2013 17:16:20 +0100 (CET) Received: from [213.157.241.232] (dhcp-213-157-241-232.amis.si [213.157.241.232]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp1.amis.net (Postfix) with ESMTPSA id 30EB0C2DCF; Wed, 27 Feb 2013 17:16:20 +0100 (CET) Message-ID: <512E3152.9030905@ocpea.com> Date: Wed, 27 Feb 2013 17:16:18 +0100 From: "Jurij Kovacic, OCPEA d.o.o." User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130221 Thunderbird/17.0.3 MIME-Version: 1.0 To: Achilleas Mantzios Subject: Re: Java threads on multiple processor cores References: <51283B84.5050709@ocpea.com> <3334521.9XEYtN8q34@smadev.internal.net> In-Reply-To: <3334521.9XEYtN8q34@smadev.internal.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-java@freebsd.org 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, 27 Feb 2013 16:16:30 -0000 Hello! On 02/25/2013 09:10 AM, Achilleas Mantzios wrote: > Zdravo, > > How are you sure your jboss does not utilize more than 1 processor? > did you check with top and then by enabling the thread view with "H"? > Have you tried the same with jboss run on the native installation? (I was pleasantly surprised by your greeting - do you speak Slovenian by any chance?) I have tried the tings you suggested - top shows approx. 50% usage on a dual processor machine and 25% on quad core. What seems to happen is that the aplication triggers full GC, which (seems?) to run on only one thread. My JVM settings pertaining to GC are the following: "... -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -verbose:gc -XX:+PrintGCDetails". Is there a way to make full GC run on multiple threads (and so, presumably on multiple processors)? Thank you very much for your reply! Kind regards, Jurij