From owner-freebsd-java@FreeBSD.ORG Sun Feb 24 08:50:01 2013 Return-Path: Delivered-To: freebsd-java@smarthost.ysv.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 25AFD665 for ; Sun, 24 Feb 2013 08:50:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 08F491989 for ; Sun, 24 Feb 2013 08:50:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.6/8.14.6) with ESMTP id r1O8o0pS050378 for ; Sun, 24 Feb 2013 08:50:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.6/8.14.6/Submit) id r1O8o0Fj050372; Sun, 24 Feb 2013 08:50:00 GMT (envelope-from gnats) Resent-Date: Sun, 24 Feb 2013 08:50:00 GMT Resent-Message-Id: <201302240850.r1O8o0Fj050372@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-java@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Uwe Dauernheim Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 3373D5FC for ; Sun, 24 Feb 2013 08:41:03 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 24407195F for ; Sun, 24 Feb 2013 08:41:03 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.5/8.14.5) with ESMTP id r1O8f2Ul049953 for ; Sun, 24 Feb 2013 08:41:02 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.5/8.14.5/Submit) id r1O8f2N5049944; Sun, 24 Feb 2013 08:41:02 GMT (envelope-from nobody) Message-Id: <201302240841.r1O8f2N5049944@red.freebsd.org> Date: Sun, 24 Feb 2013 08:41:02 GMT From: Uwe Dauernheim To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: java/176390: Upgrading openjdk6-b27 to openjdk6-b27_1 fails when compiling corba/make/sun/rmi/corbalogcompile 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: Sun, 24 Feb 2013 08:50:01 -0000 >Number: 176390 >Category: java >Synopsis: Upgrading openjdk6-b27 to openjdk6-b27_1 fails when compiling corba/make/sun/rmi/corbalogcompile >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-java >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Feb 24 08:50:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Uwe Dauernheim >Release: 9.1-release >Organization: >Environment: FreeBSD ip-10-226-7-110 9.1-RELEASE FreeBSD 9.1-RELEASE #0: Thu Dec 13 20:04:15 UTC 2012 root@ip-10-58-178-174:/usr/obj/mnt/md/src/sys/XENHVM amd64 >Description: When compiling openjdk6-b27_1 (upgrading from openjdk6-b27) the process terminates with the following error output: gmake[8]: Entering directory `/usr/ports/java/openjdk6/work/corba/make/com/sun/corba/se/spi/logging' gmake[8]: Leaving directory `/usr/ports/java/openjdk6/work/corba/make/com/sun/corba/se/spi/logging' Timing: 00003 seconds or 3s for make-com-sun-corba-se-spi-logging <<How-To-Repeat: 1. Run portmaster -a or 1. Run the compilation process for this port >Fix: >Release-Note: >Audit-Trail: >Unformatted: >>>Recursively making monitoring build @ Sat Feb 23 22:23:49 UTC 2013 ... gmake[8]: Entering directory `/usr/ports/java/openjdk6/work/corba/make/com/sun/corba/se/spi/monitoring' # Java sources to be compiled: (listed in file /usr/ports/java/openjdk6/work/build/bsd-amd64/corba/tmp/mo nitoring/com.sun.corba.se.spi.monitoring/.classes.list) ./../../../../../../src/share/classes/com/sun/corba/se/spi/monitoring/StatisticsAccumulator.java ./../../../../../../src/share/classes/com/sun/corba/se/spi/monitoring/StatisticMonitoredAttribute.java ./../../../../../../src/share/classes/com/sun/corba/se/spi/monitoring/StringMonitoredAttributeBase.java # Running javac: /usr/local/openjdk6/bin/java -Xmx467m -Xms128m -Xbootclasspath/p:/usr/ports/java/openjdk6/work/build/bsd- amd64/langtools/dist/bootstrap/lib/javac.jar -jar /usr/ports/java/openjdk6/work/build/bsd-amd64/langtools /dist/bootstrap/lib/javac.jar -XDignore.symbol.file=true -source 1.5 -target 5 -encoding ascii -classpath /usr/local/openjdk6/lib/tools.jar -Xprefer:source -sourcepath /usr/ports/java/openjdk6/work/build/bsd-am d64/corba/gensrc:../../../../../../../src/solaris/classes:../../../../../../../src/share/classes -d /usr/ ports/java/openjdk6/work/build/bsd-amd64/corba/classes @/usr/ports/java/openjdk6/work/build/bsd-amd64/corba/tmp/monitoring/com.sun.corba.se.spi.monitoring/.classes.list Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. gmake[5]: *** [.compile.classlist] Killed: 9 gmake[5]: Leaving directory `/usr/ports/java/openjdk6/work/corba/make/sun/rmi/corbalogcompile' gmake[4]: *** [build] Error 1 gmake[4]: Leaving directory `/usr/ports/java/openjdk6/work/corba/make/sun/rmi' gmake[3]: *** [build] Error 1 gmake[3]: Leaving directory `/usr/ports/java/openjdk6/work/corba/make/sun' gmake[2]: *** [build] Error 1 gmake[2]: Leaving directory `/usr/ports/java/openjdk6/work/corba/make' gmake[1]: *** [corba-build] Error 2 gmake[1]: Leaving directory `/usr/ports/java/openjdk6/work' gmake: *** [build_product_image] Error 2 *** [do-build] Error code 1 Stop in /usr/ports/java/openjdk6. *** [build] Error code 1 Stop in /usr/ports/java/openjdk6. ===>>> make failed for java/openjdk6 ===>>> Aborting update ===>>> Update for java/openjdk6 failed ===>>> Aborting update Terminated ===>>> You can restart from the point of failure with this command line: portmaster java/openjdk6 From owner-freebsd-java@FreeBSD.ORG Sun Feb 24 21:50:34 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 6BCDDE0E for ; Sun, 24 Feb 2013 21:50:34 +0000 (UTC) (envelope-from ronald-freebsd8@klop.yi.org) Received: from smarthost1.greenhost.nl (smarthost1.greenhost.nl [195.190.28.78]) by mx1.freebsd.org (Postfix) with ESMTP id 0E9857C7 for ; Sun, 24 Feb 2013 21:50:33 +0000 (UTC) Received: from smtp.greenhost.nl ([213.108.104.138]) by smarthost1.greenhost.nl with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1U9jSq-0008IJ-Mr; Sun, 24 Feb 2013 22:50:33 +0100 Received: from h253044.upc-h.chello.nl ([62.194.253.44] helo=pinky) by smtp.greenhost.nl with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from ) id 1U9jSp-0001Io-Sn; Sun, 24 Feb 2013 22:50:32 +0100 Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes To: freebsd-java@freebsd.org, "Jurij Kovacic, OCPEA d.o.o." Subject: Re: Java threads on multiple processor cores References: <51283B84.5050709@ocpea.com> Date: Sun, 24 Feb 2013 22:50:32 +0100 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: "Ronald Klop" Message-ID: In-Reply-To: <51283B84.5050709@ocpea.com> User-Agent: Opera Mail/12.14 (Win32) X-Virus-Scanned: by clamav at smarthost1.samage.net X-Spam-Level: / X-Spam-Score: 0.8 X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.1 X-Scan-Signature: b011d5308189b8f364b008c39e0eea9f 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: Sun, 24 Feb 2013 21:50:34 -0000 On Sat, 23 Feb 2013 04:46:12 +0100, Jurij Kovacic, OCPEA d.o.o. wrote: > Hi, > > I am running JBoss application server inside a jail on FreeBSD 8.3. > Since the server has a quad-core processor, it would be efficient if the > java process (and its threads) could utilize more than 1 CPU core at a > time, which is not currently the case. > > Is it possible to acomplish this (perhaps with the use of a proper > threading library) or am I barking up the wrong tree? > > Thank you for your reply, > Jurij I don't think there is a clear answer on this. It all depends on what is running in your JBoss application server. If that application does not use more than one thread, there is nothing going to use the other cores. If your application uses multiple threads and you are sure they should all be calculating very hard than you should debug the application for bottlenecks. And look if the bottleneck is in the application code, in the JDK or in FreeBSD. This is not possible without inside information of what your application is doing. Ronald. From owner-freebsd-java@FreeBSD.ORG Mon Feb 25 08:18:43 2013 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 318EA30D for ; Mon, 25 Feb 2013 08:18:43 +0000 (UTC) (envelope-from achill@matrix.gatewaynet.com) Received: from smadev.internal.net (adsltrust.ath.forthnet.gr [194.219.204.174]) by mx1.freebsd.org (Postfix) with ESMTP id 9FC853DB for ; Mon, 25 Feb 2013 08:18:41 +0000 (UTC) X-Bogosity: No, tests=bogofilter Received: from smadev.internal.net (localhost [127.0.0.1]) by smadev.internal.net (8.14.5/8.14.5) with ESMTP id r1P8Aq46065132 for ; Mon, 25 Feb 2013 10:10:52 +0200 (EET) (envelope-from achill@matrix.gatewaynet.com) Received: (from achill@localhost) by smadev.internal.net (8.14.5/8.14.5/Submit) id r1P8AqjR065131 for freebsd-java@freebsd.org; Mon, 25 Feb 2013 10:10:52 +0200 (EET) (envelope-from achill@matrix.gatewaynet.com) X-Authentication-Warning: smadev.internal.net: achill set sender to achill@matrix.gatewaynet.com using -f From: Achilleas Mantzios To: freebsd-java@freebsd.org Subject: Re: Java threads on multiple processor cores Date: Mon, 25 Feb 2013 10:10:52 +0200 Message-ID: <3334521.9XEYtN8q34@smadev.internal.net> Organization: Dynacom Tankers Mgmt X-Face: "g.Z.Lx$T1ZMcQ%hC!e^E&tD,cT:"bTs45WM(,vUj@8QBz6}T'sn+EnZTzy`UVQ:&A=`_; f)V+K4z}rG5:(uu[b:WY'*`6F"ou-Or(q; u{#Gxx|MkO4E.vh@E}[#7Ytt"shtU>A&@CO` a|Wx]m_wRD,?4!'Ir1$4iis{/.WU<`#dhKI]g2w^!B[CvRJr+W|; -VS~QcL!s1"'??rct} ^=5Fa!W!{a}Jd:W%6,E[N\r-<)T'_N[~3fy9pF"b>-Yj^p}/2tPudP>I"$%w]"W4CIja6J Tajm}"8t`-hJlf2kRQ_V,eT_kN6KLG+~2mZ+cPX,p,xQN9QVR References: <51283B84.5050709@ocpea.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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: Mon, 25 Feb 2013 08:18:43 -0000 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? On =C3=8E=C2=A3=C3=8E=C2=B1=C3=8E=C2=B2 23 =C3=8E=C2=A6=C3=8E=C2=B5=C3=8E= =C2=B2 2013 04:46:12 Jurij Kovacic, OCPEA d.o.o. wrote: > Hi, >=20 > I am running JBoss application server inside a jail on FreeBSD 8.3.=20= > Since the server has a quad-core processor, it would be efficient if = the=20 > java process (and its threads) could utilize more than 1 CPU core at = a=20 > time, which is not currently the case. >=20 > Is it possible to acomplish this (perhaps with the use of a proper=20= > threading library) or am I barking up the wrong tree? >=20 > Thank you for your reply, > Jurij >=20 > _______________________________________________ > freebsd-java@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-java > To unsubscribe, send any mail to "freebsd-java-unsubscribe@freebsd.or= g" - Achilleas Mantzios IT DEV IT DEPT Dynacom Tankers Mgmt From owner-freebsd-java@FreeBSD.ORG Mon Feb 25 11:06:50 2013 Return-Path: Delivered-To: freebsd-java@FreeBSD.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 88E8E15F for ; Mon, 25 Feb 2013 11:06:50 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 63414E7A for ; Mon, 25 Feb 2013 11:06:50 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.6/8.14.6) with ESMTP id r1PB6obx066646 for ; Mon, 25 Feb 2013 11:06:50 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.6/8.14.6/Submit) id r1PB6n1r066644 for freebsd-java@FreeBSD.org; Mon, 25 Feb 2013 11:06:49 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 25 Feb 2013 11:06:49 GMT Message-Id: <201302251106.r1PB6n1r066644@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-java@FreeBSD.org Subject: Current problem reports assigned to 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: Mon, 25 Feb 2013 11:06:50 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o ports/176390 java Upgrading openjdk6-b27 to openjdk6-b27_1 fails when co o ports/175300 java java/jamvm fails to compile on ARM6 (raspberry-pi) o ports/174826 java java/openjdk6: gmake[5]: *** [/usr/ports/java/openjdk6 o ports/174825 java java/openjdk6: fails to build on i386 (64-bit mode not o java/173981 java Vuze and Java Errors o ports/173603 java java/icedtea-web starts javaws incorrectly o ports/173592 java java/openjdk6 fails on FreeBSD_9_1_RC2 o ports/173210 java java/openjdk6 - use better src placement o java/172962 java Sig11 while compiling OpenJDK6-b26 using clang o ports/171014 java [patch] Correct java/openjdk6 Dependency Declaration o ports/167903 java [PATCH] java/openjdk6: Fix build failure in 8.3 jail r o ports/164941 java [UPDATE] [NEW PORTS] java/classpath-initial, including o ports/162991 java java/openjdk6 fails to build o java/162522 java OpenJDK 6 is not setting close on exec o java/160553 java Jaikoz java based audio tagger core dumps o ports/159787 java java/openjdk6 nio muti-thread bug o ports/154884 java java/openjdk6: Every NetBeans version on FreeBSD 8.1 c f java/147512 java Crash of RXTX-2.1-7 on AMD64 system o java/140002 java java/openjdk6: jconsole dumps tomcat when contacting j o java/128809 java JVM aborted when GNU RXTX write to serial port. o java/123555 java linux-sun-jdk15, linux-sun-jdk16 produce a coredump o java/122513 java native JDKs unbuildable with Linux ones o ports/119732 java java/linux-sun-jre16: linux-sun-jre16 plugin doesn't w o java/119063 java An unexpected error has been detected by Java Runtime o ports/116082 java java/linux-sun-jdk16 jconsole is unable to connect to 25 problems total. From owner-freebsd-java@FreeBSD.ORG Mon Feb 25 12:40:02 2013 Return-Path: Delivered-To: freebsd-java@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 7E3115C9 for ; Mon, 25 Feb 2013 12:40:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 565FF7EA for ; Mon, 25 Feb 2013 12:40:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.6/8.14.6) with ESMTP id r1PCe1Dx086571 for ; Mon, 25 Feb 2013 12:40:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.6/8.14.6/Submit) id r1PCe1Ys086570; Mon, 25 Feb 2013 12:40:01 GMT (envelope-from gnats) Date: Mon, 25 Feb 2013 12:40:01 GMT Message-Id: <201302251240.r1PCe1Ys086570@freefall.freebsd.org> To: freebsd-java@FreeBSD.org Cc: From: Uwe Dauernheim Subject: Re: ports/176390: Upgrading openjdk6-b27 to openjdk6-b27_1 fails when compiling corba/make/sun/rmi/corbalogcompile X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Uwe Dauernheim List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Feb 2013 12:40:02 -0000 The following reply was made to PR ports/176390; it has been noted by GNATS. From: Uwe Dauernheim To: bug-followup@FreeBSD.org, Uwe Dauernheim Cc: Subject: Re: ports/176390: Upgrading openjdk6-b27 to openjdk6-b27_1 fails when compiling corba/make/sun/rmi/corbalogcompile Date: Mon, 25 Feb 2013 13:33:07 +0100 The bug is non-deterministic. Thus I checked my memory usage and it = turned out the compilation process quits because of no free ram. I am sorry for submitting this as a bug. /Uwe= From owner-freebsd-java@FreeBSD.ORG Mon Feb 25 17:45:54 2013 Return-Path: Delivered-To: freebsd-java@smarthost.ysv.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 1FDCDB67; Mon, 25 Feb 2013 17:45:54 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id EE2DFAD9; Mon, 25 Feb 2013 17:45:53 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.6/8.14.6) with ESMTP id r1PHjrkS062295; Mon, 25 Feb 2013 17:45:53 GMT (envelope-from jkim@freefall.freebsd.org) Received: (from jkim@localhost) by freefall.freebsd.org (8.14.6/8.14.6/Submit) id r1PHjrQ7062291; Mon, 25 Feb 2013 17:45:53 GMT (envelope-from jkim) Date: Mon, 25 Feb 2013 17:45:53 GMT Message-Id: <201302251745.r1PHjrQ7062291@freefall.freebsd.org> To: uwe@dauernheim.net, jkim@FreeBSD.org, freebsd-java@FreeBSD.org From: jkim@FreeBSD.org Subject: Re: ports/176390: Upgrading openjdk6-b27 to openjdk6-b27_1 fails when compiling corba/make/sun/rmi/corbalogcompile 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: Mon, 25 Feb 2013 17:45:54 -0000 Synopsis: Upgrading openjdk6-b27 to openjdk6-b27_1 fails when compiling corba/make/sun/rmi/corbalogcompile State-Changed-From-To: open->closed State-Changed-By: jkim State-Changed-When: Mon Feb 25 17:45:17 UTC 2013 State-Changed-Why: Closing per OP's request. http://www.freebsd.org/cgi/query-pr.cgi?pr=176390 From owner-freebsd-java@FreeBSD.ORG Wed Feb 27 16:16:14 2013 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id F23C5A67 for ; Wed, 27 Feb 2013 16:16:14 +0000 (UTC) (envelope-from jurij.kovacic@ocpea.com) Received: from out-1.mail.amis.net (out-1.mail.amis.net [IPv6:2001:15c0:ffff:f::4]) by mx1.freebsd.org (Postfix) with ESMTP id 9BB77C20 for ; Wed, 27 Feb 2013 16:16:14 +0000 (UTC) Received: from in-1.mail.amis.net (in-1.mail.amis.net [IPv6:2001:15c0:ffff:f::15]) by out-1.mail.amis.net (Postfix) with ESMTP id D588F4616C; Wed, 27 Feb 2013 17:16:12 +0100 (CET) Received: from in-1.mail.amis.net (localhost [127.0.0.1]) by in-1.mail.amis.net (Postfix) with ESMTP id CBE4314EC85; Wed, 27 Feb 2013 17:16:12 +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-1.mail.amis.net ([127.0.0.1]) by in-1.mail.amis.net (in-1.mail.amis.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id sRlCUCap5lL2; Wed, 27 Feb 2013 17:16:10 +0100 (CET) Received: from smtp1.amis.net (smtp1.amis.net [IPv6:2001:15c0:ffff:f::41]) by in-1.mail.amis.net (Postfix) with ESMTP id 6819514EC93; Wed, 27 Feb 2013 17:16:10 +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 4778DC2DD2; Wed, 27 Feb 2013 17:16:10 +0100 (CET) Message-ID: <512E3148.3000906@ocpea.com> Date: Wed, 27 Feb 2013 17:16:08 +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: Ronald Klop Subject: Re: Java threads on multiple processor cores References: <51283B84.5050709@ocpea.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; 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:15 -0000 Hello! On 02/24/2013 10:50 PM, Ronald Klop wrote: > On Sat, 23 Feb 2013 04:46:12 +0100, Jurij Kovacic, OCPEA d.o.o. > wrote: > >> Hi, >> >> I am running JBoss application server inside a jail on FreeBSD 8.3. >> Since the server has a quad-core processor, it would be efficient if >> the java process (and its threads) could utilize more than 1 CPU core >> at a time, which is not currently the case. >> >> Is it possible to acomplish this (perhaps with the use of a proper >> threading library) or am I barking up the wrong tree? >> >> Thank you for your reply, >> Jurij > > I don't think there is a clear answer on this. It all depends on what > is running in your JBoss application server. If that application does > not use more than one thread, there is nothing going to use the other > cores. If your application uses multiple threads and you are sure they > should all be calculating very hard than you should debug the > application for bottlenecks. And look if the bottleneck is in the > application code, in the JDK or in FreeBSD. This is not possible > without inside information of what your application is doing. First of all, thank you very much for your reply. As it has turned out, I was not too precise in my earlier question - after some testing I have found that after some intense page reloading, full GC gets triggered. The thread running uses 100% of one core,while all the other threads (presumably), have to wait for it to finish. Is there any way to make full GC run in multiple threads? Kind regards, Jurij 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 From owner-freebsd-java@FreeBSD.ORG Wed Feb 27 22:45:56 2013 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 9EE00B65 for ; Wed, 27 Feb 2013 22:45:56 +0000 (UTC) (envelope-from guy.helmer@gmail.com) Received: from mail-wg0-f54.google.com (mail-wg0-f54.google.com [74.125.82.54]) by mx1.freebsd.org (Postfix) with ESMTP id 3C283823 for ; Wed, 27 Feb 2013 22:45:55 +0000 (UTC) Received: by mail-wg0-f54.google.com with SMTP id fm10so959064wgb.9 for ; Wed, 27 Feb 2013 14:45:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:date:message-id:subject:from:to :content-type; bh=kUIU38T1oY0FsJbeKXUP04ErnBMoe4luDtK3GIJBT1M=; b=wjHSPJEu6zU188/jONUnfS6z4RXZxex9/qRSEYKZk7/ScWmCGIwixWjliFauaz+/3w nb4jSz0N1adBypoB6rKFK9S2zdG0FFTk4v+qkALep/aZ/R3vZIFc2IO4HWOa+g/nMrnb x/OCqaKv9ajiKrMccn2/pxObY5k1kv80WDPGPX4YK/OkDdsp9luEaNjp8RMnnPnm2yJo 0YfJ/e/XCznD+5c/lQxKiUWKy3noJaM1EJeSebDcbjYXB/y8/16wW4QImV8W6P73Nz5w yWTKH56V+RvR+OreXmZOHG820ZimjIjD32YVpGU9iaGbo0WjYVdiTGqj4r/Qsj5VK3u+ Ilfw== MIME-Version: 1.0 X-Received: by 10.194.63.240 with SMTP id j16mr7056679wjs.45.1362005154981; Wed, 27 Feb 2013 14:45:54 -0800 (PST) Received: by 10.180.164.110 with HTTP; Wed, 27 Feb 2013 14:45:54 -0800 (PST) Date: Wed, 27 Feb 2013 16:45:54 -0600 Message-ID: Subject: Does gcj work? From: Guy Helmer 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, 27 Feb 2013 22:45:56 -0000 I have been trying to get HelloWorld.java to work when compiled with gcj47 on both i386 and amd64. Seems like it should work. This code: public class HelloWorld { public static void main(String[] args) { System.out.println("Hello, World!"); } } compiled thus: redwater:~ (515) gcj47 --main=HelloWorld -o HelloWorld HelloWorld.java always croaks: redwater:~ (516) ./HelloWorld Abort (core dumped) redwater:~ (517) gdb751 HelloWorld HelloWorld.core ... (gdb) where #0 0x2a4b573b in thr_kill () from /lib/libc.so.7 #1 0x2a42f986 in ?? () from /lib/libthr.so.3 #2 0x2a43005b in raise () from /lib/libthr.so.3 #3 0x2a55e04a in abort () from /lib/libc.so.7 #4 0x28b4b08f in _Jv_Throw (value=0xbfbfd894) at ../.././../gcc-4.7-20130119/libjava/exception.cc:128 #5 0x28b892a8 in java::lang::Class::forName (className=0x844b9c0, initialize=1 '\001', loader=0x0) at ../.././../gcc-4.7-20130119/libjava/java/lang/natClass.cc:108 #6 0x28b9ac67 in java.lang.Class.forName(java.lang.String, java.lang.Class)java.lang.Class (className=@844b9c0, caller=@29fb6c80) at ../.././../gcc-4.7-20130119/libjava/java/lang/Class.java:133 #7 0x28fd457e in java.net.URLClassLoader.addURLImpl(java.net.URL)void ( this=this@entry=@845afa0, newUrl=newUrl@entry=@8449c80) at /usr/ports/lang/gcc47/work/gcc-4.7-20130119/libjava/classpath/java/net/URLClassLoader.java:332 #8 0x28fd4c83 in java.net.URLClassLoader.addURL(java.net.URL)void (this=@845afa0, newUrl=@8449c80) at /usr/ports/lang/gcc47/work/gcc-4.7-20130119/libjava/classpath/java/net/URLClassLoader.java:281 #9 0x28ba83e4 in gnu.gcj.runtime.SystemClassLoader.init()void (this=@845afa0) at /usr/ports/lang/gcc47/work/gcc-4.7-20130119/libjava/gnu/gcj/runtime/SystemClassLoader.java:89 ---Type to continue, or q to quit--- #10 0x28babed5 in gnu.gcj.runtime.ExtensionClassLoader.initialize()void () at /usr/ports/lang/gcc47/work/gcc-4.7-20130119/libjava/gnu/gcj/runtime/ExtensionClassLoader.java:33 #11 0x28b3f600 in _Jv_CreateJavaVM (vm_args=vm_args@entry=0x0) at ../.././../gcc-4.7-20130119/libjava/prims.cc:1670 #12 0x28b3fb38 in _Jv_RunMain (vm_args=0x0, klass=klass@entry=0x8049240 , name=name@entry=0x0, argc=argc@entry=1, argv=argv@entry=0xbfbfdb98, is_jar=is_jar@entry =false) at ../.././../gcc-4.7-20130119/libjava/prims.cc:1720 #13 0x28b3fea2 in _Jv_RunMain (klass=klass@entry=0x8049240 , name=name@entry=0x0, argc=argc@entry=1, argv=argv@entry=0xbfbfdb98, is_jar=is_jar@entry=false) at ../.././../gcc-4.7-20130119/libjava/prims.cc:1815 #14 0x28b3ff3b in JvRunMain (klass=0x8049240 , argc=1, argv=0xbfbfdb98) at ../.././../gcc-4.7-20130119/libjava/prims.cc:1821 #15 0x08048ad9 in main () Any ideas? Thanks, Guy From owner-freebsd-java@FreeBSD.ORG Thu Feb 28 00:32:54 2013 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 18718E37 for ; Thu, 28 Feb 2013 00:32:54 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from hammer.pct.niksun.com (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id B0679D29; Thu, 28 Feb 2013 00:32:53 +0000 (UTC) Message-ID: <512EA53D.8000000@FreeBSD.org> Date: Wed, 27 Feb 2013 19:30:53 -0500 From: Jung-uk Kim User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130220 Thunderbird/17.0.3 MIME-Version: 1.0 To: Guy Helmer Subject: Re: Does gcj work? References: In-Reply-To: X-Enigmail-Version: 1.5.1 Content-Type: text/plain; charset=ISO-8859-1 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: Thu, 28 Feb 2013 00:32:54 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 2013-02-27 17:45:54 -0500, Guy Helmer wrote: > I have been trying to get HelloWorld.java to work when compiled > with gcj47 on both i386 and amd64. Seems like it should work. This > code: > > public class HelloWorld { public static void main(String[] args) { > System.out.println("Hello, World!"); } } > > compiled thus: redwater:~ (515) gcj47 --main=HelloWorld -o > HelloWorld HelloWorld.java > > always croaks: redwater:~ (516) ./HelloWorld Abort (core dumped) > > redwater:~ (517) gdb751 HelloWorld HelloWorld.core ... (gdb) where > #0 0x2a4b573b in thr_kill () from /lib/libc.so.7 #1 0x2a42f986 in > ?? () from /lib/libthr.so.3 #2 0x2a43005b in raise () from > /lib/libthr.so.3 #3 0x2a55e04a in abort () from /lib/libc.so.7 #4 > 0x28b4b08f in _Jv_Throw (value=0xbfbfd894) at > ../.././../gcc-4.7-20130119/libjava/exception.cc:128 #5 0x28b892a8 > in java::lang::Class::forName (className=0x844b9c0, initialize=1 > '\001', loader=0x0) at > ../.././../gcc-4.7-20130119/libjava/java/lang/natClass.cc:108 #6 > 0x28b9ac67 in java.lang.Class.forName(java.lang.String, > java.lang.Class)java.lang.Class (className=@844b9c0, > caller=@29fb6c80) at > ../.././../gcc-4.7-20130119/libjava/java/lang/Class.java:133 #7 > 0x28fd457e in java.net.URLClassLoader.addURLImpl(java.net.URL)void > ( this=this@entry=@845afa0, newUrl=newUrl@entry=@8449c80) at > /usr/ports/lang/gcc47/work/gcc-4.7-20130119/libjava/classpath/java/net/URLClassLoader.java:332 > > #8 0x28fd4c83 in java.net.URLClassLoader.addURL(java.net.URL)void > (this=@845afa0, newUrl=@8449c80) at > /usr/ports/lang/gcc47/work/gcc-4.7-20130119/libjava/classpath/java/net/URLClassLoader.java:281 > > #9 0x28ba83e4 in gnu.gcj.runtime.SystemClassLoader.init()void > (this=@845afa0) at > /usr/ports/lang/gcc47/work/gcc-4.7-20130119/libjava/gnu/gcj/runtime/SystemClassLoader.java:89 > > - ---Type to continue, or q to quit--- > #10 0x28babed5 in > gnu.gcj.runtime.ExtensionClassLoader.initialize()void () at > /usr/ports/lang/gcc47/work/gcc-4.7-20130119/libjava/gnu/gcj/runtime/ExtensionClassLoader.java:33 > > #11 0x28b3f600 in _Jv_CreateJavaVM (vm_args=vm_args@entry=0x0) > at ../.././../gcc-4.7-20130119/libjava/prims.cc:1670 #12 0x28b3fb38 > in _Jv_RunMain (vm_args=0x0, klass=klass@entry=0x8049240 > , name=name@entry=0x0, argc=argc@entry=1, > argv=argv@entry=0xbfbfdb98, is_jar=is_jar@entry =false) at > ../.././../gcc-4.7-20130119/libjava/prims.cc:1720 #13 0x28b3fea2 in > _Jv_RunMain (klass=klass@entry=0x8049240 , > name=name@entry=0x0, argc=argc@entry=1, > argv=argv@entry=0xbfbfdb98, is_jar=is_jar@entry=false) at > ../.././../gcc-4.7-20130119/libjava/prims.cc:1815 #14 0x28b3ff3b in > JvRunMain (klass=0x8049240 , argc=1, > argv=0xbfbfdb98) at > ../.././../gcc-4.7-20130119/libjava/prims.cc:1821 #15 0x08048ad9 in > main () > > Any ideas? It works. You just missed a very important option: % gcj48 --main=HelloWorld -o HelloWorld HelloWorld.java Abort (core dumped) % ./HelloWorld % gcj48 --main=HelloWorld -Wl,-rpath=/usr/local/lib/gcc48 -o HelloWorld HelloWorld.java % ./HelloWorld Hello, World! As you can see, you had to add "-Wl,-rpath=/usr/local/lib/gcc48" (or "-Wl,-rpath=/usr/local/lib/gcc47" in your case). Jung-uk Kim -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iQEcBAEBAgAGBQJRLqU9AAoJECXpabHZMqHOnNoH/ih5dkcrP5EHdeKuTA03EUC7 QbyvcWIVGFMIlceUTJfdypaO2QaqeN8w83PX+BLBgkWH+g/8yXnkfIc1J/uMd1zT e7UO5pozWH/KDI+tWDjz4T7M/wM61CgPsgNaOgYXx85kE4m8NakxF+DBizCMfid5 5FYTfX+Fq5xpD0Nq5iJeweVjbyqHSJVyHcED4+RXxOoKXjWPlfv9w48r0mpJrIY4 lQCcmZdan1v2WecDHaYvOIJVxGqdPIfx5oZymz61EV9crEZg5ewvSW70gQOkVUc7 AepQoTIb9WnDPZoWuljCBLGQzccERRlpD/5qaLK0SWQ5dG4ajg53aVM4ociTpwk= =16+x -----END PGP SIGNATURE----- From owner-freebsd-java@FreeBSD.ORG Thu Feb 28 08:53:58 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 E55BCCE5 for ; Thu, 28 Feb 2013 08:53:58 +0000 (UTC) (envelope-from ronald-freebsd8@klop.yi.org) Received: from smarthost1.greenhost.nl (smarthost1.greenhost.nl [195.190.28.78]) by mx1.freebsd.org (Postfix) with ESMTP id 709101530 for ; Thu, 28 Feb 2013 08:53:58 +0000 (UTC) Received: from smtp.greenhost.nl ([213.108.104.138]) by smarthost1.greenhost.nl with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1UAzFN-0001Zm-US; Thu, 28 Feb 2013 09:53:50 +0100 Received: from [81.21.138.17] (helo=ronaldradial.versatec.local) by smtp.greenhost.nl with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from ) id 1UAzFN-0007fH-EY; Thu, 28 Feb 2013 09:53:49 +0100 Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes To: "Jurij Kovacic, OCPEA d.o.o." Subject: Re: Java threads on multiple processor cores References: <51283B84.5050709@ocpea.com> <512E3148.3000906@ocpea.com> Date: Thu, 28 Feb 2013 09:53:49 +0100 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: "Ronald Klop" Message-ID: In-Reply-To: <512E3148.3000906@ocpea.com> User-Agent: Opera Mail/12.14 (Win32) X-Virus-Scanned: by clamav at smarthost1.samage.net X-Spam-Level: / X-Spam-Score: 0.8 X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.1 X-Scan-Signature: 4cc6a862e0a753e674eb374334b394fd 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: Thu, 28 Feb 2013 08:53:59 -0000 On Wed, 27 Feb 2013 17:16:08 +0100, Jurij Kovacic, OCPEA d.o.o. wrote: > Hello! > > On 02/24/2013 10:50 PM, Ronald Klop wrote: >> On Sat, 23 Feb 2013 04:46:12 +0100, Jurij Kovacic, OCPEA d.o.o. >> wrote: >> >>> Hi, >>> >>> I am running JBoss application server inside a jail on FreeBSD 8.3. >>> Since the server has a quad-core processor, it would be efficient if >>> the java process (and its threads) could utilize more than 1 CPU core >>> at a time, which is not currently the case. >>> >>> Is it possible to acomplish this (perhaps with the use of a proper >>> threading library) or am I barking up the wrong tree? >>> >>> Thank you for your reply, >>> Jurij >> >> I don't think there is a clear answer on this. It all depends on what >> is running in your JBoss application server. If that application does >> not use more than one thread, there is nothing going to use the other >> cores. If your application uses multiple threads and you are sure they >> should all be calculating very hard than you should debug the >> application for bottlenecks. And look if the bottleneck is in the >> application code, in the JDK or in FreeBSD. This is not possible >> without inside information of what your application is doing. > First of all, thank you very much for your reply. > > As it has turned out, I was not too precise in my earlier question - > after some testing I have found that after some intense page reloading, > full GC gets triggered. The thread running uses 100% of one core,while > all the other threads (presumably), have to wait for it to finish. Is > there any way to make full GC run in multiple threads? > > Kind regards, > Jurij I see in your other mail that you are familiar with choosing a GC on the command line. My experience is to just let the jvm choose the best settings unless you run a very special application and have a lot of knowledge about the internals of the GC. The guys (and girls) working on Java have done some pretty good work on this GCing. What sounds more troublesome (and yes I'm a bit guessing here, because I don't know your application) is that your application keeps doing GC for a long time. That sounds like your JVM runs with not enough memory or you have a memory leak somewhere. While your application is running you can see statistics of GC with this command. jstat -gc -t -h10 5s FGC increases with every new full gc run. Does OU (Old Usage) decrease after a FGC? If not the GC could not free any memory and it will keep GC'ing very hard. Ronald.