From owner-freebsd-java@FreeBSD.ORG Sun Nov 12 03:09:19 2006 Return-Path: X-Original-To: freebsd-java@freebsd.org Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A1AB316A407 for ; Sun, 12 Nov 2006 03:09:19 +0000 (UTC) (envelope-from freebsd@spatula.net) Received: from turing.morons.org (morons.org [64.147.161.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6E6EB43D5A for ; Sun, 12 Nov 2006 03:09:17 +0000 (GMT) (envelope-from freebsd@spatula.net) Received: by turing.morons.org (Postfix, from userid 1001) id 7179617035; Sat, 11 Nov 2006 19:09:20 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by turing.morons.org (Postfix) with ESMTP id 6E1611702F; Sat, 11 Nov 2006 19:09:20 -0800 (PST) Date: Sat, 11 Nov 2006 19:09:20 -0800 (PST) From: Nick Johnson X-X-Sender: spatula@turing To: Nikos Ntarmos In-Reply-To: <20061111042829.GB88440@ace.b020.ceid.upatras.gr> Message-ID: <20061111190456.G88944@turing> References: <20061110203714.GA89006@ace.b020.ceid.upatras.gr> <20061110124459.M88944@turing> <20061110213313.GA72658@ace.b020.ceid.upatras.gr> <20061110142436.G88944@turing> <20061111042829.GB88440@ace.b020.ceid.upatras.gr> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-java@freebsd.org Subject: Re: Performance of Java on FBSD vs. others... X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Nov 2006 03:09:19 -0000 On Sat, 11 Nov 2006, Nikos Ntarmos wrote: > Ummm... It looks more like "apples under freebsd" and "apples under > linux or win32" to me... :) Not if the platform defaults differ, as I said. Compare the defaults for survivor space on Windows vs Solaris for example. > It appears like JIT isn't quite as good on BSDs as it is on linux or > win32 or solaris. I scoured through the source code of the JDK and it's > crawling with ifdef's where solaris and linux seem to be better > instrumented than BSDs... ifdefs are evaluated at compile time, so this would make no difference. > Please note that I don't mean this e-mail (thread) as a "look, freebsd > sucks" thing. After all, I've already said that freebsd _is_ my > OS-of-choice for (at least) development chores. However, such a > performance lag is a show-stopper for me (especially with various > related deadlines approaching fast). I think we'd all like to know what causes the performance difference, especially in the light that others of us haven't experienced it. There may be something about your specific hardware configuration that FreeBSD handles less elegantly such that it's a general performance problem vs a Java one. Have you run any benchmarks on the system itself? Like something written in C or C++ using threads? This might have nothing to do with Java at all. Nick -- When you're a kid, they tell you it's all grow up, get a job, get married, get a house, have a kid, and that's it. No, the truth is the world is so much stranger than that. It's so much darker, and so much madder. And so much better. -- Elton, Doctor Who, "Love and Monsters" This message has been brought to you by Nick Johnson 2.1 and the number 6. http://healerNick.com/ http://morons.org/ http://spatula.net/ From owner-freebsd-java@FreeBSD.ORG Sun Nov 12 06:40:23 2006 Return-Path: X-Original-To: freebsd-java@hub.freebsd.org Delivered-To: freebsd-java@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B7AE516A47E for ; Sun, 12 Nov 2006 06:40:23 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 915C643D67 for ; Sun, 12 Nov 2006 06:40:21 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id kAC6eLNF022115 for ; Sun, 12 Nov 2006 06:40:21 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id kAC6eLJi022114; Sun, 12 Nov 2006 06:40:21 GMT (envelope-from gnats) Resent-Date: Sun, 12 Nov 2006 06:40:21 GMT Resent-Message-Id: <200611120640.kAC6eLJi022114@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, moin Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0684C16A403 for ; Sun, 12 Nov 2006 06:39:35 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id D955143D49 for ; Sun, 12 Nov 2006 06:39:34 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id kAC6dYef038202 for ; Sun, 12 Nov 2006 06:39:34 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id kAC6dYT7038201; Sun, 12 Nov 2006 06:39:34 GMT (envelope-from nobody) Message-Id: <200611120639.kAC6dYT7038201@www.freebsd.org> Date: Sun, 12 Nov 2006 06:39:34 GMT From: moin To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.0 Cc: Subject: java/105424: asddf X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Nov 2006 06:40:23 -0000 >Number: 105424 >Category: java >Synopsis: asddf >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-java >State: open >Quarter: >Keywords: >Date-Required: >Class: doc-bug >Submitter-Id: current-users >Arrival-Date: Sun Nov 12 06:40:21 GMT 2006 >Closed-Date: >Last-Modified: >Originator: moin >Release: ferw >Organization: oukk >Environment: scfw2s >Description: Work At Home – Paid per Click Work at home starting today! Get paid for every click to your website! No more placing ads for pennies! 1 ad could earn you hundreds of $$$ http://www.typeinternational.com/idevaffiliate/idevaffiliate.php?id=5528_55_3_90 >How-To-Repeat: Work At Home – Paid per Click Work at home starting today! Get paid for every click to your website! No more placing ads for pennies! 1 ad could earn you hundreds of $$$ http://www.typeinternational.com/idevaffiliate/idevaffiliate.php?id=5528_55_3_90 >Fix: Work At Home – Paid per Click Work at home starting today! Get paid for every click to your website! No more placing ads for pennies! 1 ad could earn you hundreds of $$$ http://www.typeinternational.com/idevaffiliate/idevaffiliate.php?id=5528_55_3_90 >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-java@FreeBSD.ORG Sun Nov 12 07:13:48 2006 Return-Path: X-Original-To: freebsd-java@freebsd.org Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A54E316A403 for ; Sun, 12 Nov 2006 07:13:48 +0000 (UTC) (envelope-from mv@thebeastie.org) Received: from p4.roq.com (ns1.ecoms.com [207.44.130.137]) by mx1.FreeBSD.org (Postfix) with ESMTP id 553BA43D49 for ; Sun, 12 Nov 2006 07:13:46 +0000 (GMT) (envelope-from mv@thebeastie.org) Received: from p4.roq.com (localhost.roq.com [127.0.0.1]) by p4.roq.com (Postfix) with ESMTP id BD0B04D28F for ; Sun, 12 Nov 2006 07:15:02 +0000 (GMT) Received: from smitch7.jumbuck.com (unknown [206.112.99.82]) by p4.roq.com (Postfix) with ESMTP id 90C374D289 for ; Sun, 12 Nov 2006 07:15:02 +0000 (GMT) Received: from smitch7.jumbuck.com (mail.jumbuck.com [206.112.99.82]) by smitch7.jumbuck.com (Postfix) with ESMTP id CE991411749 for ; Sun, 12 Nov 2006 07:13:34 +0000 (UTC) Received: from [192.168.0.7] (ppp157-158.static.internode.on.net [150.101.157.158]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smitch7.jumbuck.com (Postfix) with ESMTP id 48C0141173E for ; Sun, 12 Nov 2006 07:13:34 +0000 (UTC) Message-ID: <4556C99E.1060404@thebeastie.org> Date: Sun, 12 Nov 2006 07:13:34 +0000 From: Michael Vince User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.13) Gecko/20061104 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-java@freebsd.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP Subject: Java and AMD64 with libthr X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Nov 2006 07:13:48 -0000 Hi guys, I have a quad core (Intel Core 2) server and I was considering using it to run a bunch of Java services. Considering its got 8gigs of ram and is currently using FreeBSD Amd64 kernel I am wondering if I should leave it as or change over to i386 with PAE mode. The issue is that I can't use libthr under Amd64 on Java and I want to try and get as much as I can from the server, does any one know when we will be able to use libthr/java on Amd64? I recall some one posted it was now possible under -current but I want to use at least stable/release. If any one could give me any kind of ball-park time say 1st half 2007 or even better 6.5-release that would be highly appreciated. Also if any one remembers my original benchmarks I posted on Java just letting you know I might post more benchmarks if/when I can get this server to use libthr for Java, as it would be interesting to see how much performance can be gained from Java per core. Cheers, Michael From owner-freebsd-java@FreeBSD.ORG Sun Nov 12 12:13:27 2006 Return-Path: X-Original-To: freebsd-java@hub.freebsd.org Delivered-To: freebsd-java@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7F51216A417; Sun, 12 Nov 2006 12:13:27 +0000 (UTC) (envelope-from hq@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2CB5043D83; Sun, 12 Nov 2006 12:13:26 +0000 (GMT) (envelope-from hq@FreeBSD.org) Received: from freefall.freebsd.org (hq@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id kACCDQBu055570; Sun, 12 Nov 2006 12:13:26 GMT (envelope-from hq@freefall.freebsd.org) Received: (from hq@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id kACCDQYN055566; Sun, 12 Nov 2006 12:13:26 GMT (envelope-from hq) Date: Sun, 12 Nov 2006 12:13:26 GMT From: Herve Quiroz Message-Id: <200611121213.kACCDQYN055566@freefall.freebsd.org> To: www.moin_27@yahoo.com, hq@FreeBSD.org, freebsd-java@FreeBSD.org Cc: Subject: Re: java/105424: asddf X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Nov 2006 12:13:27 -0000 Synopsis: asddf State-Changed-From-To: open->closed State-Changed-By: hq State-Changed-When: Sun Nov 12 12:12:58 UTC 2006 State-Changed-Why: Spam. http://www.freebsd.org/cgi/query-pr.cgi?pr=105424 From owner-freebsd-java@FreeBSD.ORG Sun Nov 12 12:46:31 2006 Return-Path: X-Original-To: freebsd-java@freebsd.org Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4F2E516A417 for ; Sun, 12 Nov 2006 12:46:31 +0000 (UTC) (envelope-from shudo@computer.org) Received: from www721.sakura.ne.jp (www721.sakura.ne.jp [59.106.19.171]) by mx1.FreeBSD.org (Postfix) with ESMTP id D0F9943D6D for ; Sun, 12 Nov 2006 12:46:29 +0000 (GMT) (envelope-from shudo@computer.org) Received: from utagoe.com (softbank219179114027.bbtec.net [219.179.114.27]) (authenticated bits=0) by www721.sakura.ne.jp (8.12.11/8.12.11) with ESMTP id kACCkOEB045049 for ; Sun, 12 Nov 2006 21:46:26 +0900 (JST) (envelope-from shudo@computer.org) Date: Sun, 12 Nov 2006 21:46:30 +0900 (JST) Message-Id: <20061112.214630.485563740.shudo@utagoe.com> To: freebsd-java@freebsd.org From: Kazuyuki Shudo In-Reply-To: <20061111035758.GA88440@ace.b020.ceid.upatras.gr> References: <20061110221501.GC72658@ace.b020.ceid.upatras.gr> <20061111035758.GA88440@ace.b020.ceid.upatras.gr> X-Mailer: Mew version 5.1 on XEmacs 21.4.19 (Constant Variable) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: Performance of Java on FBSD vs. others... X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Nov 2006 12:46:31 -0000 > From: Nikos Ntarmos > Date: Sat, 11 Nov 2006 05:57:58 +0200 > > is it possible to post the program for others to test? (if there's no > > trade secrets or similar in it) I'd like to run it; > Of course. No trade secret there... :) Grab [1]. It's an implementation > of [2] over [3]. Example command line arguments: > java -classpath :classes \ > netcins.p2p.dhs.testing.DHSSingleMetricTest \ > 1000 100000 64 32 10 > where 1000 is the number of nodes in the simulated system, 100000 the > number of items to be added, and the other numbers are parameters of the > simulated application. It should take a while to do the whole hog, but > don't wait for it to finish. After all nodes are online, it prints out > the time it took it to generate them all. If it takes more than > 200-220'' (win32 and linux times respectively), we're done. On my 1.7GHz > Pentium-M it's more like 800''... I found your code does polling with 50 msec sleeps between checks in src/netcins/p2p/dhs/testing/DHSSingleMetricTest.java: public void addNodes(int numNodes) { ... if (curNodeIndex == 0) node = bootstrapNode = factory.newNode((rice.pastry.NodeHandle) null); else node = factory.newNode(bootstrapNode.getLocalHandle()); // the node may require sending several messages to fully boot into the ring while (!node.isReady()) { try { Thread.sleep(50); } catch (InterruptedException e) { e.printStackTrace(); } } Such a polling results in execution time which is not in inverse propotion to the performance of the underlying Java runtime. This addNodes() method is called 1000 times but the sleep(50) is hardly called on Linux and Windows because the exec time is 200-220. On FreeBSD, we can guess that the sleep(50) is called once an invocation of addNode(). Anyway, JDK 5.0 on FreeBSD seems not to perform as well as on Linux and Windows. > [1] http://ntarmos.dyndns.org/Misc/DHS-FreePastry-2.0b2.tgz > [2] N. Ntarmos, P. Triantafillou, and G. Weikum. "Counting at large: > Efficient cardinality estimation in Internet-scale data networks." > In Proc. ICDE '06. > [3] http://freepastry.org/ Kazuyuki Shudo 2006@shudo.net http://www.shudo.net/ From owner-freebsd-java@FreeBSD.ORG Mon Nov 13 02:18:41 2006 Return-Path: X-Original-To: freebsd-java@freebsd.org Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B574416A416 for ; Mon, 13 Nov 2006 02:18:41 +0000 (UTC) (envelope-from ntarmos@ceid.upatras.gr) Received: from poseidon.ceid.upatras.gr (poseidon.ceid.upatras.gr [150.140.141.169]) by mx1.FreeBSD.org (Postfix) with ESMTP id C574C43D4C for ; Mon, 13 Nov 2006 02:18:39 +0000 (GMT) (envelope-from ntarmos@ceid.upatras.gr) Received: from rhea.ceid.upatras.gr (rhea.ceid.upatras.gr [150.140.141.171]) by poseidon.ceid.upatras.gr (Postfix) with ESMTP id 0F9765C1B52 for ; Mon, 13 Nov 2006 02:13:36 +0200 (EET) Received: from localhost (localhost [127.0.0.1]) by rhea.ceid.upatras.gr (Postfix) with ESMTP id 4E05810473 for ; Mon, 13 Nov 2006 02:13:19 +0200 (EET) Received: from rhea.ceid.upatras.gr ([127.0.0.1]) by localhost (rhea [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 26403-03 for ; Mon, 13 Nov 2006 02:13:18 +0200 (EET) Received: from ace.b020.ceid.upatras.gr (unknown [150.140.143.234]) by rhea.ceid.upatras.gr (Postfix) with ESMTP id 9EA561040B for ; Mon, 13 Nov 2006 02:11:58 +0200 (EET) Received: by ace.b020.ceid.upatras.gr (Postfix, from userid 1001) id 3DA9A21; Mon, 13 Nov 2006 02:11:06 +0200 (EET) Date: Mon, 13 Nov 2006 02:11:06 +0200 From: Nikos Ntarmos To: freebsd-java@freebsd.org Message-ID: <20061113001106.GA74300@ace.b020.ceid.upatras.gr> Mail-Followup-To: freebsd-java@freebsd.org References: <20061110221501.GC72658@ace.b020.ceid.upatras.gr> <20061111035758.GA88440@ace.b020.ceid.upatras.gr> <20061112.214630.485563740.shudo@utagoe.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20061112.214630.485563740.shudo@utagoe.com> Organization: NetCInS Lab., C.E.I.D., U. of Patras, Greece WWW-Homepage: http://ntarmos.dyndns.org/ X-PGP-Fingerprint: 9680 60A7 DE60 0298 B1F0 9B22 9BA2 7569 CF95 160A Office-Phone: +30-2610-996919 Office-Fax: +30-2610-969011 GPS-Info: 38.31N, 21.82E User-Agent: mutt-ng/devel-r804 (FreeBSD) X-Virus-Scanned: by amavisd-new at ceid.upatras.gr Subject: Re: Performance of Java on FBSD vs. others... X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Nov 2006 02:18:41 -0000 Hi there. On Sun, Nov 12, 2006 at 09:46:30PM +0900, Kazuyuki Shudo wrote: > I found your code does polling with 50 msec sleeps between checks in > src/netcins/p2p/dhs/testing/DHSSingleMetricTest.java: Yes. I've already changed all those Thread.sleep(...) calls to Thread.yield() (which, if i got it right from the jdk source code, translates to a sleep(1) on freebsd). That didn't do any big differnce though. However, I did see a big difference in execution time by taking away some BigInteger arithmetic (divAndMod) and replacing it with bitwise operations (the divider was always a power of 2, so shifting and masking did the job). I did some more homework on the jdk as well. First, there _is_ such a thing as OS-specific parts in HotSpot; that's what the bsd patchset adds (just look into java/jdk15/work/hotspot/src/os/bsd/vm/). I had a quick look at it and did some minor tweaks (such as chaning clock_gettime(CLOCK_REALTIME, ...) invocations to clock_gettime(CLOCK_REALTIME_FAST, ...) which is much faster on my hardware (and I guess on others' as well). Thread.sleep() and Thread.yield() seem to use nanosleep(2), so this could do a difference. I also tested this thing against a no-WITNESS, no-INVARIANTS, AUTO_EOI_1, ... kernel, using TSC as the timecounter, and with a libc compiled with NO_MALLOC_EXTRAS=yes, but the runtime was more-or-less the same. My guess is that this is not a system-related or a jvm-tweaking issue, but something that has to do with either the threading library or the intrinsics of hotspot on bsd... Anyway, after a day of profiling and tweaking ad nauseum I got the runtime from ~4700'' down to ~270'' on freebsd. Only now win32 does it in ~80-85'' which is still a factor of ~3x-3.5x)... \n\n From owner-freebsd-java@FreeBSD.ORG Mon Nov 13 09:08:56 2006 Return-Path: X-Original-To: freebsd-java@freebsd.org Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4798216A705 for ; Mon, 13 Nov 2006 09:08:56 +0000 (UTC) (envelope-from achill@matrix.gatewaynet.com) Received: from matrix.gatewaynet.com (host2.dynacom.ondsl.gr [62.103.35.210]) by mx1.FreeBSD.org (Postfix) with ESMTP id 07B7B43D64 for ; Mon, 13 Nov 2006 09:08:52 +0000 (GMT) (envelope-from achill@matrix.gatewaynet.com) Received: from host3.dynacom.ondsl.gr ([62.103.35.211] helo=ip216.internal.net) by matrix.gatewaynet.com with esmtp (Exim 4.62) (envelope-from ) id 1GjWjN-0002wN-St for freebsd-java@freebsd.org; Mon, 13 Nov 2006 09:59:49 +0200 From: Achilleas Mantzios Organization: Dynacom Tankers Mgmt To: freebsd-java@freebsd.org Date: Mon, 13 Nov 2006 09:59:48 +0200 User-Agent: KMail/1.9.3 References: <20061110203714.GA89006@ace.b020.ceid.upatras.gr> <4554F4C6.3090802@infracaninophile.co.uk> <20061110223236.GD72658@ace.b020.ceid.upatras.gr> In-Reply-To: <20061110223236.GD72658@ace.b020.ceid.upatras.gr> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200611130959.49073.achill@matrix.gatewaynet.com> Subject: Re: Performance of Java on FBSD vs. others... X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Nov 2006 09:08:56 -0000 =CE=A3=CF=84=CE=B9=CF=82 =CE=A3=CE=AC=CE=B2=CE=B2=CE=B1=CF=84=CE=BF 11 =CE= =9D=CE=BF=CE=AD=CE=BC=CE=B2=CF=81=CE=B9=CE=BF=CF=82 2006 00:32, =CE=BF/=CE= =B7 Nikos Ntarmos =CE=AD=CE=B3=CF=81=CE=B1=CF=88=CE=B5: > Hi Matthew. > > On Fri, Nov 10, 2006 at 09:53:10PM +0000, Matthew Seaman wrote: > > Is this the same issue with syscalls as affects MySQL? As in > > unconstrained calling of gettimeofday() or similar because such > > "syscalls are free"? Which is pretty much true in Linux, at the > > cost of not returning the time particularly accurately. > > > > Look at http://wikitest.freebsd.org/MySQL -- especially the point > > about "frequent queries of the system time". Try tweaking the > > 'kern.timecounter.choice' sysctl and see if that makes much > > difference. > > That was my first thought too. I've tried with ACPI-fast, TSC, and i8254 > and saw no noticeable difference (btw k.t.hardware is the one to be set > to whatever value and k.t.choice the one to be queried for available > time counters)... > =CE=9D=CE=AF=CE=BA=CE=BF, =CE=BA=CE=B1=CE=BB=CE=B7=CE=BC=CE=AD=CF=81=CE=B1, just a question: Did you benchmark you whole system (apart from java) using some=20 well known benchmark? =2Dserver 1.4.2 (even linux-jdk) on my workstation some times runs faster t= han=20 our Linux dual xeon 3.2GHZ server. You can even test by writing a simple cpu-intensive C program by yourself. Also i dont remember answering the /etc/malloc.conf question. Linking this to "aj" could make a *huge* difference (if you are on current). Also trying removing any debugging from your kernel. man 7 tuning is a good way to start. If your system proves to be *generally* slower than the rest 2, then we got a FreeBSD issue here. else it is a java-related matter. Anyway in the meantime i wish you to solve the problem and stick all the way with FreeBSD! > \n\n > _______________________________________________ > freebsd-java@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-java > To unsubscribe, send any mail to "freebsd-java-unsubscribe@freebsd.org" =2D-=20 Achilleas Mantzios From owner-freebsd-java@FreeBSD.ORG Mon Nov 13 09:16:16 2006 Return-Path: X-Original-To: freebsd-java@freebsd.org Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B069116ADA4 for ; Mon, 13 Nov 2006 09:16:16 +0000 (UTC) (envelope-from mlusetti@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.186]) by mx1.FreeBSD.org (Postfix) with ESMTP id BDB3443D5F for ; Mon, 13 Nov 2006 09:16:01 +0000 (GMT) (envelope-from mlusetti@gmail.com) Received: by nf-out-0910.google.com with SMTP id l23so402584nfc for ; Mon, 13 Nov 2006 01:16:00 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=EqxBldycQr/+JnkKNbOD6r5xQNeuE8cHT/IZJXWoytWT3s9nHQVsBhPFaFP0QJjyXQowWqmNlmhGZT6vBT4HPN4H/XHocuYRbSDVCpAYK/DfVpTnKzzhS3WkExNytR3sMR8sIKPukCnhTzEwwZfNEsMkQ/suKStG1CBRmuqFU0g= Received: by 10.82.120.15 with SMTP id s15mr586263buc.1163405843170; Mon, 13 Nov 2006 00:17:23 -0800 (PST) Received: by 10.82.184.15 with HTTP; Mon, 13 Nov 2006 00:17:23 -0800 (PST) Message-ID: Date: Mon, 13 Nov 2006 09:17:23 +0100 From: "Massimo Lusetti" To: freebsd-java@freebsd.org In-Reply-To: <20061113001106.GA74300@ace.b020.ceid.upatras.gr> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20061110221501.GC72658@ace.b020.ceid.upatras.gr> <20061111035758.GA88440@ace.b020.ceid.upatras.gr> <20061112.214630.485563740.shudo@utagoe.com> <20061113001106.GA74300@ace.b020.ceid.upatras.gr> Subject: Re: Performance of Java on FBSD vs. others... X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Nov 2006 09:16:16 -0000 On 11/13/06, Nikos Ntarmos wrote: > Anyway, after a day of profiling and tweaking ad nauseum I got the > runtime from ~4700'' down to ~270'' on freebsd. Only now win32 does it > in ~80-85'' which is still a factor of ~3x-3.5x)... That seems to be a huge difference from your previous report. -- Massimo http://meridio.blogspot.com From owner-freebsd-java@FreeBSD.ORG Mon Nov 13 09:32:01 2006 Return-Path: X-Original-To: freebsd-java@freebsd.org Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CEC4B16AEA6 for ; Mon, 13 Nov 2006 09:32:01 +0000 (UTC) (envelope-from ntarmos@ceid.upatras.gr) Received: from poseidon.ceid.upatras.gr (poseidon.ceid.upatras.gr [150.140.141.169]) by mx1.FreeBSD.org (Postfix) with ESMTP id BF49E43D6D for ; Mon, 13 Nov 2006 09:31:59 +0000 (GMT) (envelope-from ntarmos@ceid.upatras.gr) Received: from rhea.ceid.upatras.gr (rhea.ceid.upatras.gr [150.140.141.171]) by poseidon.ceid.upatras.gr (Postfix) with ESMTP id 8EF845C1B3F for ; Mon, 13 Nov 2006 10:38:27 +0200 (EET) Received: from localhost (localhost [127.0.0.1]) by rhea.ceid.upatras.gr (Postfix) with ESMTP id EEF6580003 for ; Mon, 13 Nov 2006 10:38:24 +0200 (EET) Received: from rhea.ceid.upatras.gr ([127.0.0.1]) by localhost (rhea [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 24725-03 for ; Mon, 13 Nov 2006 10:38:23 +0200 (EET) Received: from ace.b020.ceid.upatras.gr (unknown [150.140.143.234]) by rhea.ceid.upatras.gr (Postfix) with ESMTP id A925280004 for ; Mon, 13 Nov 2006 10:38:19 +0200 (EET) Received: by ace.b020.ceid.upatras.gr (Postfix, from userid 1001) id 698BB54; Mon, 13 Nov 2006 10:38:19 +0200 (EET) Date: Mon, 13 Nov 2006 10:38:19 +0200 From: Nikos Ntarmos To: freebsd-java@freebsd.org Message-ID: <20061113083818.GA72933@ace.b020.ceid.upatras.gr> Mail-Followup-To: freebsd-java@freebsd.org References: <20061110221501.GC72658@ace.b020.ceid.upatras.gr> <20061111035758.GA88440@ace.b020.ceid.upatras.gr> <20061112.214630.485563740.shudo@utagoe.com> <20061113001106.GA74300@ace.b020.ceid.upatras.gr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20061113001106.GA74300@ace.b020.ceid.upatras.gr> Organization: NetCInS Lab., C.E.I.D., U. of Patras, Greece WWW-Homepage: http://ntarmos.dyndns.org/ X-PGP-Fingerprint: 9680 60A7 DE60 0298 B1F0 9B22 9BA2 7569 CF95 160A Office-Phone: +30-2610-996919 Office-Fax: +30-2610-969011 GPS-Info: 38.31N, 21.82E User-Agent: mutt-ng/devel-r804 (FreeBSD) X-Virus-Scanned: by amavisd-new at ceid.upatras.gr Subject: Re: Performance of Java on FBSD vs. others... X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Nov 2006 09:32:01 -0000 Hi all. On Mon, Nov 13, 2006 at 02:11:06AM +0200, Nikos Ntarmos wrote: > My guess is that this is not a system-related or a jvm-tweaking issue, > but something that has to do with either the threading library or the > intrinsics of hotspot on bsd... > > Anyway, after a day of profiling and tweaking ad nauseum I got the > runtime from ~4700'' down to ~270'' on freebsd. Only now win32 does it > in ~80-85'' which is still a factor of ~3x-3.5x)... FWIW java/linux-sun-jdk15 gives me more-or-less the same runtime figures as if running my code on linux. Well, the -server vm dies with an Internal Error 4E4D4554484F440E4350500525 (even if ran with -XX:ParallelGCThreads=1, as suggested in [1]), but -client does the work just fine (i.e. total execution time ~85-90'' with linux-sun-jdk15 on freebsd, nearly identical figures with sun-jdk15 on linux, and ~80-85'' with sun-jdk15 on win32). \n\n [1] http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6337544 From owner-freebsd-java@FreeBSD.ORG Mon Nov 13 10:39:46 2006 Return-Path: X-Original-To: freebsd-java@freebsd.org Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E54EB16A416 for ; Mon, 13 Nov 2006 10:39:46 +0000 (UTC) (envelope-from shudo@computer.org) Received: from www721.sakura.ne.jp (www721.sakura.ne.jp [59.106.19.171]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1C1DF43D93 for ; Mon, 13 Nov 2006 10:38:32 +0000 (GMT) (envelope-from shudo@computer.org) Received: from utagoe.com (softbank219179114027.bbtec.net [219.179.114.27]) (authenticated bits=0) by www721.sakura.ne.jp (8.12.11/8.12.11) with ESMTP id kADAcQe6059096 for ; Mon, 13 Nov 2006 19:38:28 +0900 (JST) (envelope-from shudo@computer.org) Date: Mon, 13 Nov 2006 19:38:35 +0900 (JST) Message-Id: <20061113.193835.719888658.shudo@utagoe.com> To: freebsd-java@freebsd.org From: Kazuyuki Shudo In-Reply-To: <20061113001106.GA74300@ace.b020.ceid.upatras.gr> References: <20061111035758.GA88440@ace.b020.ceid.upatras.gr> <20061112.214630.485563740.shudo@utagoe.com> <20061113001106.GA74300@ace.b020.ceid.upatras.gr> X-Mailer: Mew version 5.1 on XEmacs 21.4.19 (Constant Variable) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: Performance of Java on FBSD vs. others... X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Nov 2006 10:39:47 -0000 Hi Nikos, > On Sun, Nov 12, 2006 at 09:46:30PM +0900, Kazuyuki Shudo wrote: > > I found your code does polling with 50 msec sleeps between checks in > > src/netcins/p2p/dhs/testing/DHSSingleMetricTest.java: > > Yes. I've already changed all those Thread.sleep(...) calls to > Thread.yield() (which, if i got it right from the jdk source code, > translates to a sleep(1) on freebsd). So we guess you say you've already done the following too: PastryNode pn = ... synchronized (pn) { while (!pn.isReady()) { try { pn.wait(); } catch (InterruptedException e) { System.out.println(e); } } } We should not do polling with PastryNode#isReady() because we can Object#wait() on an instance of PastryNode. | On Sun, Nov 12, 2006 at 09:46:30PM +0900, Kazuyuki Shudo wrote: | Anyway, JDK 5.0 on FreeBSD seems not to perform as well as on Linux | and Windows. Anyway, on FreeBSD, even polling should perform as well as on Linux and Windows. Kazuyuki Shudo 2006@shudo.net http://www.shudo.net/ From owner-freebsd-java@FreeBSD.ORG Mon Nov 13 11:08:26 2006 Return-Path: X-Original-To: freebsd-java@FreeBSD.org Delivered-To: freebsd-java@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F350E16A5AA for ; Mon, 13 Nov 2006 11:08:25 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id BA8DE43D66 for ; Mon, 13 Nov 2006 11:08:25 +0000 (GMT) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (linimon@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id kADB8PL4091482 for ; Mon, 13 Nov 2006 11:08:25 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id kADB8OD1091478 for freebsd-java@FreeBSD.org; Mon, 13 Nov 2006 11:08:24 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 13 Nov 2006 11:08:24 GMT Message-Id: <200611131108.kADB8OD1091478@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: linimon set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-java@FreeBSD.org Cc: Subject: Current problem reports assigned to you X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Nov 2006 11:08:26 -0000 Current FreeBSD problem reports Critical problems Serious problems S Tracker Resp. Description -------------------------------------------------------------------------------- s ports/60083 java Unsafe use of getaddrinfo in jvm 1.4.2-p5 o java/66151 java JBuilderX (sun jvm 1.4.1 builtin) crashes on 4.9 works f java/72151 java JVM crash on 5.2.1-R o java/76631 java any port linux-*-jdk12 will core dump if using linux_b o ports/100529 java linux-sun-jdk1.4.2_12 coredumps on FreeBSD 4.x o java/104627 java Makefile jdk14 broken o java/105369 java problem with port diablo-jdk15 7 problems total. Non-critical problems S Tracker Resp. Description -------------------------------------------------------------------------------- f ports/56928 java jce-aba port should install to $JAVA_HOME/jre/lib/ext f java/62837 java linux-sun-jdk14 executables hang with COMPAT_LINUX in o ports/84742 java make ports/java/jdk14 use dynamic Motif librarires f ports/91244 java Bad instruction on making process of jdk14 o java/97461 java Diablo JDK does not report Update level in a format su 5 problems total. From owner-freebsd-java@FreeBSD.ORG Mon Nov 13 11:28:14 2006 Return-Path: X-Original-To: freebsd-java@freebsd.org Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 618F916A416 for ; Mon, 13 Nov 2006 11:28:14 +0000 (UTC) (envelope-from ntarmos@ceid.upatras.gr) Received: from poseidon.ceid.upatras.gr (poseidon.ceid.upatras.gr [150.140.141.169]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6069443D45 for ; Mon, 13 Nov 2006 11:28:05 +0000 (GMT) (envelope-from ntarmos@ceid.upatras.gr) Received: from rhea.ceid.upatras.gr (rhea.ceid.upatras.gr [150.140.141.171]) by poseidon.ceid.upatras.gr (Postfix) with ESMTP id 911135C1B1A for ; Mon, 13 Nov 2006 13:28:05 +0200 (EET) Received: from localhost (localhost [127.0.0.1]) by rhea.ceid.upatras.gr (Postfix) with ESMTP id 307D480006 for ; Mon, 13 Nov 2006 13:28:03 +0200 (EET) Received: from rhea.ceid.upatras.gr ([127.0.0.1]) by localhost (rhea [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 11892-06 for ; Mon, 13 Nov 2006 13:28:01 +0200 (EET) Received: from ace.b020.ceid.upatras.gr (unknown [150.140.143.234]) by rhea.ceid.upatras.gr (Postfix) with ESMTP id 7C31580003 for ; Mon, 13 Nov 2006 13:28:01 +0200 (EET) Received: by ace.b020.ceid.upatras.gr (Postfix, from userid 1001) id 07EB054; Mon, 13 Nov 2006 13:28:01 +0200 (EET) Date: Mon, 13 Nov 2006 13:28:01 +0200 From: Nikos Ntarmos To: freebsd-java@freebsd.org Message-ID: <20061113112801.GB72933@ace.b020.ceid.upatras.gr> Mail-Followup-To: freebsd-java@freebsd.org References: <20061110203714.GA89006@ace.b020.ceid.upatras.gr> <4554F4C6.3090802@infracaninophile.co.uk> <20061110223236.GD72658@ace.b020.ceid.upatras.gr> <200611130959.49073.achill@matrix.gatewaynet.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <200611130959.49073.achill@matrix.gatewaynet.com> Organization: NetCInS Lab., C.E.I.D., U. of Patras, Greece WWW-Homepage: http://ntarmos.dyndns.org/ X-PGP-Fingerprint: 9680 60A7 DE60 0298 B1F0 9B22 9BA2 7569 CF95 160A Office-Phone: +30-2610-996919 Office-Fax: +30-2610-969011 GPS-Info: 38.31N, 21.82E User-Agent: mutt-ng/devel-r804 (FreeBSD) X-Virus-Scanned: by amavisd-new at ceid.upatras.gr Subject: Re: Performance of Java on FBSD vs. others... X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Nov 2006 11:28:14 -0000 Γειά σου Αχιλλέα. On Mon, Nov 13, 2006 at 09:59:48AM +0200, Achilleas Mantzios wrote: > Did you benchmark you whole system (apart from java) using some well > known benchmark? I used sysbench on fbsd and linux, with fbsd being the clear winner in the memory, threads, and mutex tests. I didn't bother to look into any other low-level benchmarks, since I'me convinced that it's not a system-specific problem, but a jvm-related one. > -server 1.4.2 (even linux-jdk) on my workstation some times runs > faster than our Linux dual xeon 3.2GHZ server. You're not the only one to praise 1.4's peformance in this thread. I'll surely try to convert the code to compile with 1.4, but that's somewhat low on my task list at the moment. > Also i dont remember answering the /etc/malloc.conf question. Linking > this to "aj" could make a *huge* difference (if you are on current). > Also trying removing any debugging from your kernel. I have no malloc.conf or MALLOC_OPTIONS and libc is (now) compiled with NO_MALLOC_EXTRAS=yes. The kernel is stripped of WITNESSES, INVARIANTS, etc. Moreover, I've tested with AUTO_EOI_1, AUTO_EOI_2, polling, HZ=100/1000, etc. on and off (nearly all possible combinations). > If your system proves to be *generally* slower than the rest 2, then > we got a FreeBSD issue here. else it is a java-related matter. As I also mentioned in another post in this thread, java/linux-sun-jdk15 -client on freebsd does almost as well as jdk15 on linux. This, among others, testifies to the fact that it's rather a java-on-freebsd issue. > Anyway in the meantime i wish you to solve the problem > and stick all the way with FreeBSD! For the time being I do all the coding, compiling, etc using java/jdk15 and execution using java/linux-sun-jdk15. However, I'd truly like to see this performance gap going down. There are some obvious freebsd-specific micro-optimizations (such as the clock_gettime(CLOCK_REALTIME_FAST, ...) vs clock_gettime(CLOCK_REALTIME, ...) I've already mentioned), that could go into the bsd patchset. Moreover, I'm convinced that profiling and/or auditing of the *BSD-specific HotSpot code could pinpoint some performance bottlenecks. However, these are also somewhat low on my tasklist for the next couple of weeks. Cheers. \n\n From owner-freebsd-java@FreeBSD.ORG Mon Nov 13 16:08:42 2006 Return-Path: X-Original-To: freebsd-java@hub.freebsd.org Delivered-To: freebsd-java@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A89E816A4D1 for ; Mon, 13 Nov 2006 16:08:42 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id A43BB43FA8 for ; Mon, 13 Nov 2006 16:00:22 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id kADG0FXS022570 for ; Mon, 13 Nov 2006 16:00:15 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id kADG0FT9022569; Mon, 13 Nov 2006 16:00:15 GMT (envelope-from gnats) Resent-Date: Mon, 13 Nov 2006 16:00:15 GMT Resent-Message-Id: <200611131600.kADG0FT9022569@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, Kostik Belousov Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F306716A4A0 for ; Mon, 13 Nov 2006 15:54:12 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 65AC743E6E for ; Mon, 13 Nov 2006 15:48:44 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id kADFmLKS094036 for ; Mon, 13 Nov 2006 15:48:21 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id kADFmLwX094035; Mon, 13 Nov 2006 15:48:21 GMT (envelope-from nobody) Message-Id: <200611131548.kADFmLwX094035@www.freebsd.org> Date: Mon, 13 Nov 2006 15:48:21 GMT From: Kostik Belousov To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.0 Cc: Subject: java/105482: diablo-jdk1.5.0/jdk-1.5.0 java.nio.Selector bug X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Nov 2006 16:08:42 -0000 >Number: 105482 >Category: java >Synopsis: diablo-jdk1.5.0/jdk-1.5.0 java.nio.Selector bug >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-java >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Nov 13 16:00:15 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Kostik Belousov >Release: RELENG_6 >Organization: - >Environment: FreeBSD deviant.kiev.zoral.com.ua 6.2-PRERELEASE FreeBSD 6.2-PRERELEASE #2: Mon Oct 30 10:37:21 EET 2006 root@deviant.kiev.zoral.com.ua:/usr/obj/usr/src/sys/DEVIANT i386 >Description: The following is reproducable on both diablo-jdk-1.5.0.07.01_1 and jdk-1.5.0p3_6 on RELENG_6/i386. The key added to the java.nio.Selector initally has only SelectionKey.OP_READ in the interestOps(). Due to some external events, OP_WRITE was added to the interestOps() and Selector.wakeup() was called. Socket associated with key is definitely ready to be written, but the next Selector.select() call will sleep until some data appears to be ready to be read from the socket. I expect that Selector.select() would return immediately in this situation, returning specified key with isWritable() == true. Below is the trace (SELECTED is printed when the Selector.select() returns; R XX W XX show the OP_READ|OP_WRITE registration for the channel; PROCESS is printed when key is active; IS WRITABLE is printed when key is active and isWritable returned true). [java] SELECTED [java] accepted java.nio.channels.SocketChannel[connected local=/127.0.0.1:5090 remote=/127.0.0.1:63157] [java] UPDATE REG java.nio.channels.SocketChannel[connected local=/127.0.0.1:5090 remote=/127.0.0.1:63157] 1 [java] SENDCMD 12342324 [java] UPDATE REG java.nio.channels.SocketChannel[connected local=/127.0.0.1:5090 remote=/127.0.0.1:63157] 5 [java] SELECTED [java] SELECTED [java] PROCESS java.nio.channels.SocketChannel[connected local=/127.0.0.1:5090 remote=/127.0.0.1:63157]5 R true W false [java] f [java] UPDATE REG java.nio.channels.SocketChannel[connected local=/127.0.0.1:5090 remote=/127.0.0.1:63157] 5 [java] SELECTED [java] PROCESS java.nio.channels.SocketChannel[connected local=/127.0.0.1:5090 remote=/127.0.0.1:63157]5 R false W true [java] PROCESS IS WRITABLE java.nio.channels.SocketChannel[connected local=/127.0.0.1:5090 remote=/127.0.0.1:63157] [java] UPDATE REG java.nio.channels.SocketChannel[connected local=/127.0.0.1:5090 remote=/127.0.0.1:63157] 1 >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-java@FreeBSD.ORG Tue Nov 14 07:54:59 2006 Return-Path: X-Original-To: freebsd-java@freebsd.org Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2AA8E16A403 for ; Tue, 14 Nov 2006 07:54:59 +0000 (UTC) (envelope-from achill@matrix.gatewaynet.com) Received: from matrix.gatewaynet.com (host2.dynacom.ondsl.gr [62.103.35.210]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0A3FF43D67 for ; Tue, 14 Nov 2006 07:54:57 +0000 (GMT) (envelope-from achill@matrix.gatewaynet.com) Received: from host3.dynacom.ondsl.gr ([62.103.35.211] helo=ip216.internal.net) by matrix.gatewaynet.com with esmtp (Exim 4.62) (envelope-from ) id 1Gjt8B-0003LD-Vb for freebsd-java@freebsd.org; Tue, 14 Nov 2006 09:54:56 +0200 From: Achilleas Mantzios Organization: Dynacom Tankers Mgmt To: freebsd-java@freebsd.org Date: Tue, 14 Nov 2006 09:54:54 +0200 User-Agent: KMail/1.9.3 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200611140954.55278.achill@matrix.gatewaynet.com> Subject: Java going GPL? X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Nov 2006 07:54:59 -0000 I read today this http://www.jboss.com/elqNow/elqRedir.htm?ref=http://jboss.org/jbossBlog/blog/slabourey/?permalink=FOSS+Java%2C+Finally%21.txt If that's the case, it will be great for the BSD community, to have GPL sources to work with (just like the rest of the GPL'd port.) -- Achilleas Mantzios From owner-freebsd-java@FreeBSD.ORG Tue Nov 14 11:20:11 2006 Return-Path: X-Original-To: freebsd-java@freebsd.org Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7C84716A512 for ; Tue, 14 Nov 2006 11:20:11 +0000 (UTC) (envelope-from ken@tydfam.jp) Received: from daemon.sub.tydfam.jp (ns.tydfam.jp [61.197.228.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 816EA43D78 for ; Tue, 14 Nov 2006 11:20:10 +0000 (GMT) (envelope-from ken@tydfam.jp) Received: from localhost (tyd3.sub.tydfam.jp [192.168.1.3]) by daemon.sub.tydfam.jp (8.13.4/8.13.4) with ESMTP id kAEBK7Xf002612; Tue, 14 Nov 2006 20:20:08 +0900 (JST) (envelope-from ken@tydfam.jp) Date: Tue, 14 Nov 2006 20:20:07 +0900 (JST) Message-Id: <20061114.202007.74755120.ken@tydfam.jp> To: achill@matrix.gatewaynet.com From: Yamada Ken Takeshi In-Reply-To: <200611140954.55278.achill@matrix.gatewaynet.com> References: <200611140954.55278.achill@matrix.gatewaynet.com> X-Mailer: Mew version 5.1 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=1.0 required=8.0 tests=CONTENT_TYPE_PRESENT, FAKEDWORD_ONE,FAKEDWORD_VERTICALLINE,X_MAILER_PRESENT autolearn=no version=3.1.1 X-Spam-Level: * X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on daemon.sub.tydfam.jp Cc: freebsd-java@freebsd.org Subject: Re: Java going GPL? X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Nov 2006 11:20:11 -0000 What is the implication of this News, GPL J2SE/J2EE and test suite? Are we going to catch up to the L*x environment faster? When, anyway does it start and impact to us, 1Q 2007? I saw hotspot and javac are already available, though. Anyway, a good news! From owner-freebsd-java@FreeBSD.ORG Tue Nov 14 11:37:28 2006 Return-Path: X-Original-To: freebsd-java@freebsd.org Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 92D8F16A47B for ; Tue, 14 Nov 2006 11:37:28 +0000 (UTC) (envelope-from infofarmer@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.188]) by mx1.FreeBSD.org (Postfix) with ESMTP id DF79143D6B for ; Tue, 14 Nov 2006 11:37:27 +0000 (GMT) (envelope-from infofarmer@gmail.com) Received: by nf-out-0910.google.com with SMTP id l23so240430nfc for ; Tue, 14 Nov 2006 03:37:26 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=BfScA8tBggLWnOmIp0/6o3OOEia3SBzVdxYfhJy8S3kgmh4HtZA+ShoeIzg2HC7k/Obsw2fYjkcun4JA+9QtAbxhPfWpy5sR3UwYjlD3E3rrSsadngCX7uovNu0J4kK5PR3leIuWAcgt6EtrIXGzIZ7Qsh92bBRK3nkO70l6ClY= Received: by 10.78.180.18 with SMTP id c18mr915641huf.1163504246348; Tue, 14 Nov 2006 03:37:26 -0800 (PST) Received: by 10.78.167.16 with HTTP; Tue, 14 Nov 2006 03:37:26 -0800 (PST) Message-ID: Date: Tue, 14 Nov 2006 14:37:26 +0300 From: "Andrew Pantyukhin" Sender: infofarmer@gmail.com To: "Yamada Ken Takeshi" In-Reply-To: <20061114.202007.74755120.ken@tydfam.jp> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200611140954.55278.achill@matrix.gatewaynet.com> <20061114.202007.74755120.ken@tydfam.jp> X-Google-Sender-Auth: 8612c64ee6775858 Cc: freebsd-java@freebsd.org Subject: Re: Java going GPL? X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Nov 2006 11:37:28 -0000 On 11/14/06, Yamada Ken Takeshi wrote: > > What is the implication of this News, GPL J2SE/J2EE and test suite? GPL+E basically means BSD, so it sounds good From owner-freebsd-java@FreeBSD.ORG Wed Nov 15 05:22:46 2006 Return-Path: X-Original-To: freebsd-java@freebsd.org Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3229A16A403 for ; Wed, 15 Nov 2006 05:22:46 +0000 (UTC) (envelope-from mv@thebeastie.org) Received: from p4.roq.com (ns1.ecoms.com [207.44.130.137]) by mx1.FreeBSD.org (Postfix) with ESMTP id C049843D55 for ; Wed, 15 Nov 2006 05:22:45 +0000 (GMT) (envelope-from mv@thebeastie.org) Received: from p4.roq.com (localhost.roq.com [127.0.0.1]) by p4.roq.com (Postfix) with ESMTP id 0E0824CFF2 for ; Wed, 15 Nov 2006 05:22:51 +0000 (GMT) Received: from smitch7.jumbuck.com (unknown [206.112.99.82]) by p4.roq.com (Postfix) with ESMTP id CE7C44D002 for ; Wed, 15 Nov 2006 05:22:50 +0000 (GMT) Received: from smitch7.jumbuck.com (mail.jumbuck.com [206.112.99.82]) by smitch7.jumbuck.com (Postfix) with ESMTP id 6C1CE411505; Wed, 15 Nov 2006 05:22:44 +0000 (UTC) Received: from [192.168.46.102] (ppp166-27.static.internode.on.net [150.101.166.27]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smitch7.jumbuck.com (Postfix) with ESMTP id B2CA6411046; Wed, 15 Nov 2006 05:22:43 +0000 (UTC) Message-ID: <455AA421.9070305@thebeastie.org> Date: Wed, 15 Nov 2006 16:22:41 +1100 From: Michael Vince User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.7.13) Gecko/20060727 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Nikos Ntarmos References: <20061110221501.GC72658@ace.b020.ceid.upatras.gr> <20061111035758.GA88440@ace.b020.ceid.upatras.gr> <20061112.214630.485563740.shudo@utagoe.com> <20061113001106.GA74300@ace.b020.ceid.upatras.gr> In-Reply-To: <20061113001106.GA74300@ace.b020.ceid.upatras.gr> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP Cc: freebsd-java@freebsd.org Subject: Re: Performance of Java on FBSD vs. others... X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Nov 2006 05:22:46 -0000 Nikos Ntarmos wrote: >Hi there. > >On Sun, Nov 12, 2006 at 09:46:30PM +0900, Kazuyuki Shudo wrote: > > >>I found your code does polling with 50 msec sleeps between checks in >>src/netcins/p2p/dhs/testing/DHSSingleMetricTest.java: >> >> > >Yes. I've already changed all those Thread.sleep(...) calls to >Thread.yield() (which, if i got it right from the jdk source code, >translates to a sleep(1) on freebsd). That didn't do any big differnce >though. However, I did see a big difference in execution time by taking >away some BigInteger arithmetic (divAndMod) and replacing it with bitwise >operations (the divider was always a power of 2, so shifting and masking >did the job). > >I did some more homework on the jdk as well. First, there _is_ such a >thing as OS-specific parts in HotSpot; that's what the bsd patchset >adds (just look into java/jdk15/work/hotspot/src/os/bsd/vm/). I had a >quick look at it and did some minor tweaks (such as chaning >clock_gettime(CLOCK_REALTIME, ...) invocations to >clock_gettime(CLOCK_REALTIME_FAST, ...) which is much faster on my >hardware (and I guess on others' as well). Thread.sleep() and >Thread.yield() seem to use nanosleep(2), so this could do a difference. > >I also tested this thing against a no-WITNESS, no-INVARIANTS, >AUTO_EOI_1, ... kernel, using TSC as the timecounter, and with a libc >compiled with NO_MALLOC_EXTRAS=yes, but the runtime was more-or-less the >same. > >My guess is that this is not a system-related or a jvm-tweaking issue, >but something that has to do with either the threading library or the >intrinsics of hotspot on bsd... > >Anyway, after a day of profiling and tweaking ad nauseum I got the >runtime from ~4700'' down to ~270'' on freebsd. Only now win32 does it >in ~80-85'' which is still a factor of ~3x-3.5x)... > > > Thats really interesting I wonder where else such things lay, I assume these are options for -current atm? Would be good to have these changes alternative build option in the ports tree for jdk15. Regards, Mike From owner-freebsd-java@FreeBSD.ORG Wed Nov 15 13:05:40 2006 Return-Path: X-Original-To: freebsd-java@freebsd.org Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0035E16A4B3 for ; Wed, 15 Nov 2006 13:05:39 +0000 (UTC) (envelope-from regnier.olivier@gmail.com) Received: from smtp2-g19.free.fr (smtp2-g19.free.fr [212.27.42.28]) by mx1.FreeBSD.org (Postfix) with ESMTP id 562F9446D0 for ; Wed, 15 Nov 2006 12:36:39 +0000 (GMT) (envelope-from regnier.olivier@gmail.com) Received: from [127.0.0.1] (mac76-2-82-241-6-173.fbx.proxad.net [82.241.6.173]) by smtp2-g19.free.fr (Postfix) with ESMTP id 3676A753D for ; Wed, 15 Nov 2006 13:36:38 +0100 (CET) Message-ID: <455B0A1B.4090204@gmail.com> Date: Wed, 15 Nov 2006 13:37:47 +0100 From: =?ISO-8859-1?Q?Olivier_R=E9gnier?= User-Agent: Thunderbird 1.5.0.8 (Windows/20061025) MIME-Version: 1.0 To: freebsd-java@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Jdk version 15 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: regnier.olivier@gmail.com List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Nov 2006 13:05:40 -0000 Hello, I'm running on FreeBSD 6.1-RELEASE-p10 with Mozilla Firefox 2.0. Yesterday, i installed JDK 15 with lastest BSD JDK 1.5.0 patchset. I noticed that the installation of JDK 1.5 causes the installation of the mozilla web browser. I am surprised because I have already Mozilla Firefox 2.0. It is possible to install JDK 15 without mozilla ? Thank you so much :) Olivier Regnier. From owner-freebsd-java@FreeBSD.ORG Wed Nov 15 13:34:18 2006 Return-Path: X-Original-To: freebsd-java@freebsd.org Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7FCDB16A47C for ; Wed, 15 Nov 2006 13:34:18 +0000 (UTC) (envelope-from roberthuff@rcn.com) Received: from smtp02.lnh.mail.rcn.net (smtp02.lnh.mail.rcn.net [207.172.157.102]) by mx1.FreeBSD.org (Postfix) with ESMTP id CA10543D53 for ; Wed, 15 Nov 2006 13:34:07 +0000 (GMT) (envelope-from roberthuff@rcn.com) Received: from mr02.lnh.mail.rcn.net ([207.172.157.22]) by smtp02.lnh.mail.rcn.net with ESMTP; 15 Nov 2006 08:34:08 -0500 Received: from smtp01.lnh.mail.rcn.net (smtp01.lnh.mail.rcn.net [207.172.4.11]) by mr02.lnh.mail.rcn.net (MOS 3.7.5a-GA) with ESMTP id MNI31207; Wed, 15 Nov 2006 08:33:54 -0500 (EST) Received: from 209-6-203-219.c3-0.smr-ubr1.sbo-smr.ma.cable.rcn.com (HELO jerusalem.litteratus.org.litteratus.org) ([209.6.203.219]) by smtp01.lnh.mail.rcn.net with ESMTP; 15 Nov 2006 08:33:49 -0500 X-IronPort-AV: i="4.09,424,1157342400"; d="scan'208"; a="312176132:sNHT24471792" From: Robert Huff MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17755.5891.863276.210960@jerusalem.litteratus.org> Date: Wed, 15 Nov 2006 08:32:51 -0500 To: regnier.olivier@gmail.com In-Reply-To: <455B0A1B.4090204@gmail.com> References: <455B0A1B.4090204@gmail.com> X-Mailer: VM 7.17 under 21.5 (beta27) "fiddleheads" XEmacs Lucid X-Junkmail-Status: score=10/50, host=mr02.lnh.mail.rcn.net X-Junkmail-SD-Raw: score=unknown, refid=str=0001.0A090205.455B16AA.0103,ss=1,fgs=0, ip=207.172.4.11, so=2006-05-09 23:27:51, dmn=5.2.121/2006-09-27 Cc: freebsd-java@freebsd.org Subject: Jdk version 15 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Nov 2006 13:34:18 -0000 =?ISO-8859-1?Q?Olivier_R=E9gnier?= writes: > I'm running on FreeBSD 6.1-RELEASE-p10 with Mozilla Firefox 2.0. > Yesterday, i installed JDK 15 with lastest BSD JDK 1.5.0 > patchset. I noticed that the installation of JDK 1.5 causes the > installation of the mozilla web browser. I am surprised because I > have already Mozilla Firefox 2.0. > > It is possible to install JDK 15 without mozilla ? If you mean "without any Mozilla-based product", I believe the answer is "Yes". If you mean "with Firefox or Seamonkey", I believe the answer in "no". I know it won't use Seamonkey, and I think I tested it with Firefox 2.0 with no luck. Robert Huff From owner-freebsd-java@FreeBSD.ORG Wed Nov 15 18:04:04 2006 Return-Path: X-Original-To: java@freebsd.org Delivered-To: freebsd-java@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BDE9B16A40F for ; Wed, 15 Nov 2006 18:04:04 +0000 (UTC) (envelope-from apivovarov@gmail.com) Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.192]) by mx1.FreeBSD.org (Postfix) with ESMTP id 36AE643D60 for ; Wed, 15 Nov 2006 18:04:01 +0000 (GMT) (envelope-from apivovarov@gmail.com) Received: by nz-out-0102.google.com with SMTP id i11so99670nzh for ; Wed, 15 Nov 2006 10:04:01 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=lf32uYEP3Gj+YVvNV9PkcyRKshfDCEqfQ+W1xUHH/fjCgu6r9CM9J2C6vqtuWAYFZRWOD7cZqcjNHRrwSfuvAPKOcBO5DsoacshSPo7PBk4T22+stkFnE8vHDW83qcz1j9+K2dcxuUkLtT1Xtw2nitcJ1okYLVmpzPqifpCS37w= Received: by 10.35.96.11 with SMTP id y11mr3769388pyl.1163613840615; Wed, 15 Nov 2006 10:04:00 -0800 (PST) Received: by 10.35.15.20 with HTTP; Wed, 15 Nov 2006 10:04:00 -0800 (PST) Message-ID: <426b510c0611151004r48271e19pdcfcbb129052315@mail.gmail.com> Date: Wed, 15 Nov 2006 21:04:00 +0300 From: "Alex Pivovarov" To: java@freebsd.org, eclipse@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: eclipse 3.2.1 build WITH_MOZILLA=firefox2 failed X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Nov 2006 18:04:04 -0000 I have the last firefox-2.0_2,1 installed I cvsup stable-supfile I cd to /usr/ports/java/eclipse run make WITH_MOZILLA=firefox2 install after 15 min I get an error: PCOM_nsEmbedCString_1new__(JNIEnv*, _jclass*)': [exec] xpcom.cpp:2106: error: expected primary-expression before ')' token [exec] xpcom.cpp:2106: error: expected `;' before "new" [exec] xpcom.cpp: In function `jint Java_org_eclipse_swt_internal_mozilla_X PCOM_nsEmbedCString_1new___3BI(JNIEnv*, _jclass*, _jbyteArray*, jint)': [exec] xpcom.cpp:2120: error: expected primary-expression before ')' token [exec] xpcom.cpp:2120: error: expected `;' before "new" [exec] xpcom.cpp: In function `jint Java_org_eclipse_swt_internal_mozilla_X PCOM_nsEmbedString_1Length(JNIEnv*, _jclass*, jint)': [exec] xpcom.cpp:2134: error: `nsEmbedString' undeclared (first use this fu nction) [exec] xpcom.cpp:2134: error: expected primary-expression before ')' token [exec] xpcom.cpp:2134: error: expected primary-expression before ')' token [exec] xpcom.cpp: In function `void Java_org_eclipse_swt_internal_mozilla_X PCOM_nsEmbedString_1delete(JNIEnv*, _jclass*, jint)': [exec] xpcom.cpp:2145: error: `nsEmbedString' undeclared (first use this fu nction) [exec] xpcom.cpp:2145: error: expected primary-expression before ')' token [exec] xpcom.cpp:2145: error: expected `;' before "arg0" [exec] xpcom.cpp: In function `jint Java_org_eclipse_swt_internal_mozilla_X PCOM_nsEmbedString_1get(JNIEnv*, _jclass*, jint)': [exec] xpcom.cpp:2156: error: `nsEmbedString' undeclared (first use this fu nction) [exec] xpcom.cpp:2156: error: expected primary-expression before ')' token [exec] xpcom.cpp:2156: error: expected primary-expression before ')' token [exec] xpcom.cpp: In function `jint Java_org_eclipse_swt_internal_mozilla_X PCOM_nsEmbedString_1new__(JNIEnv*, _jclass*)': [exec] xpcom.cpp:2168: error: expected primary-expression before ')' token [exec] xpcom.cpp:2168: error: expected `;' before "new" [exec] xpcom.cpp: In function `jint Java_org_eclipse_swt_internal_mozilla_X PCOM_nsEmbedString_1new___3C(JNIEnv*, _jclass*, _jcharArray*)': [exec] xpcom.cpp:2182: error: expected primary-expression before ')' token [exec] xpcom.cpp:2182: error: expected `;' before "new" [exec] xpcom.cpp: In function `jboolean Java_org_eclipse_swt_internal_mozil la_XPCOM_nsID_1Equals(JNIEnv*, _jclass*, jint, jint)': [exec] xpcom.cpp:2196: error: `nsID' undeclared (first use this function) [exec] xpcom.cpp:2196: error: expected primary-expression before ')' token [exec] xpcom.cpp:2196: error: expected primary-expression before ')' token [exec] xpcom.cpp:2196: error: expected primary-expression before ')' token [exec] xpcom.cpp: In function `jboolean Java_org_eclipse_swt_internal_mozil la_XPCOM_nsID_1Parse(JNIEnv*, _jclass*, jint, _jstring*)': [exec] xpcom.cpp:2210: error: `nsID' undeclared (first use this function) [exec] xpcom.cpp:2210: error: expected primary-expression before ')' token [exec] xpcom.cpp:2210: error: expected primary-expression before ')' token [exec] xpcom.cpp: In function `void Java_org_eclipse_swt_internal_mozilla_X PCOM_nsID_1delete(JNIEnv*, _jclass*, jint)': [exec] xpcom.cpp:2223: error: `nsID' undeclared (first use this function) [exec] xpcom.cpp:2223: error: expected primary-expression before ')' token [exec] xpcom.cpp:2223: error: expected `;' before "arg0" [exec] xpcom.cpp: In function `jint Java_org_eclipse_swt_internal_mozilla_X PCOM_nsID_1new(JNIEnv*, _jclass*)': [exec] xpcom.cpp:2234: error: expected primary-expression before ')' token [exec] xpcom.cpp:2234: error: expected `;' before "new" [exec] xpcom.cpp: In function `jint Java_org_eclipse_swt_internal_mozilla_X PCOM_strlen(JNIEnv*, _jclass*, jint)': [exec] xpcom.cpp:2246: error: `strlen' undeclared (first use this function) BUILD FAILED /usr/ports/java/eclipse/work/build.xml:76: exec returned: 1 Total time: 18 minutes 25 seconds *** Error code 1 Stop in /usr/ports/java/eclipse. From owner-freebsd-java@FreeBSD.ORG Wed Nov 15 18:34:36 2006 Return-Path: X-Original-To: java@freebsd.org Delivered-To: freebsd-java@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0E16216A407; Wed, 15 Nov 2006 18:34:36 +0000 (UTC) (envelope-from dsledge@appriss.com) Received: from intexch02.int.appriss.com (intexch02.int.appriss.com [63.126.72.108]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2FDC243D58; Wed, 15 Nov 2006 18:34:34 +0000 (GMT) (envelope-from dsledge@appriss.com) X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Date: Wed, 15 Nov 2006 13:32:37 -0500 Message-ID: <768690DD58883C4FAA0C089A534F94DF205536@intexch02.int.appriss.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: eclipse 3.2.1 build WITH_MOZILLA=firefox2 failed Thread-Index: AccI4JfPen/VR9fLRP2hHWVTysyA+AAA9Tuk References: <426b510c0611151004r48271e19pdcfcbb129052315@mail.gmail.com> From: "David Sledge" To: "Alex Pivovarov" , , Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: RE: eclipse 3.2.1 build WITH_MOZILLA=firefox2 failed X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Nov 2006 18:34:36 -0000 Unfortunatly it will not build against firefox yet. I am looking into = this problem. You can build with Mozilla for full features or you can = build without mozilla all together. -----Original Message----- From: owner-freebsd-java@freebsd.org on behalf of Alex Pivovarov Sent: Wed 11/15/2006 1:04 PM To: java@freebsd.org; eclipse@freebsd.org Subject: eclipse 3.2.1 build WITH_MOZILLA=3Dfirefox2 failed =20 I have the last firefox-2.0_2,1 installed I cvsup stable-supfile I cd to /usr/ports/java/eclipse run make WITH_MOZILLA=3Dfirefox2 install after 15 min I get an error: PCOM_nsEmbedCString_1new__(JNIEnv*, _jclass*)': [exec] xpcom.cpp:2106: error: expected primary-expression before = ')' token [exec] xpcom.cpp:2106: error: expected `;' before "new" [exec] xpcom.cpp: In function `jint Java_org_eclipse_swt_internal_mozilla_X PCOM_nsEmbedCString_1new___3BI(JNIEnv*, _jclass*, _jbyteArray*, jint)': [exec] xpcom.cpp:2120: error: expected primary-expression before = ')' token [exec] xpcom.cpp:2120: error: expected `;' before "new" [exec] xpcom.cpp: In function `jint Java_org_eclipse_swt_internal_mozilla_X PCOM_nsEmbedString_1Length(JNIEnv*, _jclass*, jint)': [exec] xpcom.cpp:2134: error: `nsEmbedString' undeclared (first use this fu nction) [exec] xpcom.cpp:2134: error: expected primary-expression before = ')' token [exec] xpcom.cpp:2134: error: expected primary-expression before = ')' token [exec] xpcom.cpp: In function `void Java_org_eclipse_swt_internal_mozilla_X PCOM_nsEmbedString_1delete(JNIEnv*, _jclass*, jint)': [exec] xpcom.cpp:2145: error: `nsEmbedString' undeclared (first use this fu nction) [exec] xpcom.cpp:2145: error: expected primary-expression before = ')' token [exec] xpcom.cpp:2145: error: expected `;' before "arg0" [exec] xpcom.cpp: In function `jint Java_org_eclipse_swt_internal_mozilla_X PCOM_nsEmbedString_1get(JNIEnv*, _jclass*, jint)': [exec] xpcom.cpp:2156: error: `nsEmbedString' undeclared (first use this fu nction) [exec] xpcom.cpp:2156: error: expected primary-expression before = ')' token [exec] xpcom.cpp:2156: error: expected primary-expression before = ')' token [exec] xpcom.cpp: In function `jint Java_org_eclipse_swt_internal_mozilla_X PCOM_nsEmbedString_1new__(JNIEnv*, _jclass*)': [exec] xpcom.cpp:2168: error: expected primary-expression before = ')' token [exec] xpcom.cpp:2168: error: expected `;' before "new" [exec] xpcom.cpp: In function `jint Java_org_eclipse_swt_internal_mozilla_X PCOM_nsEmbedString_1new___3C(JNIEnv*, _jclass*, _jcharArray*)': [exec] xpcom.cpp:2182: error: expected primary-expression before = ')' token [exec] xpcom.cpp:2182: error: expected `;' before "new" [exec] xpcom.cpp: In function `jboolean Java_org_eclipse_swt_internal_mozil la_XPCOM_nsID_1Equals(JNIEnv*, _jclass*, jint, jint)': [exec] xpcom.cpp:2196: error: `nsID' undeclared (first use this function) [exec] xpcom.cpp:2196: error: expected primary-expression before = ')' token [exec] xpcom.cpp:2196: error: expected primary-expression before = ')' token [exec] xpcom.cpp:2196: error: expected primary-expression before = ')' token [exec] xpcom.cpp: In function `jboolean Java_org_eclipse_swt_internal_mozil la_XPCOM_nsID_1Parse(JNIEnv*, _jclass*, jint, _jstring*)': [exec] xpcom.cpp:2210: error: `nsID' undeclared (first use this function) [exec] xpcom.cpp:2210: error: expected primary-expression before = ')' token [exec] xpcom.cpp:2210: error: expected primary-expression before = ')' token [exec] xpcom.cpp: In function `void Java_org_eclipse_swt_internal_mozilla_X PCOM_nsID_1delete(JNIEnv*, _jclass*, jint)': [exec] xpcom.cpp:2223: error: `nsID' undeclared (first use this function) [exec] xpcom.cpp:2223: error: expected primary-expression before = ')' token [exec] xpcom.cpp:2223: error: expected `;' before "arg0" [exec] xpcom.cpp: In function `jint Java_org_eclipse_swt_internal_mozilla_X PCOM_nsID_1new(JNIEnv*, _jclass*)': [exec] xpcom.cpp:2234: error: expected primary-expression before = ')' token [exec] xpcom.cpp:2234: error: expected `;' before "new" [exec] xpcom.cpp: In function `jint Java_org_eclipse_swt_internal_mozilla_X PCOM_strlen(JNIEnv*, _jclass*, jint)': [exec] xpcom.cpp:2246: error: `strlen' undeclared (first use this function) BUILD FAILED /usr/ports/java/eclipse/work/build.xml:76: exec returned: 1 Total time: 18 minutes 25 seconds *** Error code 1 Stop in /usr/ports/java/eclipse. _______________________________________________ freebsd-java@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-java To unsubscribe, send any mail to "freebsd-java-unsubscribe@freebsd.org" From owner-freebsd-java@FreeBSD.ORG Wed Nov 15 21:01:01 2006 Return-Path: X-Original-To: java@freebsd.org Delivered-To: freebsd-java@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9BEA716A47C for ; Wed, 15 Nov 2006 21:01:01 +0000 (UTC) (envelope-from apivovarov@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.176]) by mx1.FreeBSD.org (Postfix) with ESMTP id C675143D46 for ; Wed, 15 Nov 2006 21:01:00 +0000 (GMT) (envelope-from apivovarov@gmail.com) Received: by py-out-1112.google.com with SMTP id f31so185112pyh for ; Wed, 15 Nov 2006 13:01:00 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=LnJrwLmOhFQ56jQi4n3kQJb1riJ3vD/XS82n1dlKwUOXeXqE/su9i+WwGPhG1AJaRsFVNr7igT0SHXbLC5sdnlQArN8irEMalD6UIdAKE7HgOkEzDWQXNnrk5JqH2hGJp2CfB7/ejX74OXT7Zh0H1rJP1DLovFruZ1L9RqsvdnA= Received: by 10.35.103.1 with SMTP id f1mr4009607pym.1163624459911; Wed, 15 Nov 2006 13:00:59 -0800 (PST) Received: by 10.35.15.20 with HTTP; Wed, 15 Nov 2006 13:00:59 -0800 (PST) Message-ID: <426b510c0611151300v31ea3eb1x1c860641ec6a13a0@mail.gmail.com> Date: Wed, 15 Nov 2006 21:00:59 +0000 From: "Alex Pivovarov" To: java@freebsd.org, eclipse@freebsd.org In-Reply-To: <426b510c0611151004r48271e19pdcfcbb129052315@mail.gmail.com> MIME-Version: 1.0 References: <426b510c0611151004r48271e19pdcfcbb129052315@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Re: eclipse 3.2.1 build WITH_MOZILLA=firefox2 failed X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Nov 2006 21:01:01 -0000 anyway I installed mozilla-1.7.13.2 from package after than I runed portinstall java/eclipse and got the similar errors in xpcom_profile.cpp in lines 45, 59, 71, 83 On 11/15/06, Alex Pivovarov wrote: > > I have the last firefox-2.0_2,1 installed > I cvsup stable-supfile > I cd to /usr/ports/java/eclipse > run make WITH_MOZILLA=firefox2 install > > after 15 min I get an error: > > > PCOM_nsEmbedCString_1new__(JNIEnv*, _jclass*)': > [exec] xpcom.cpp:2106: error: expected primary-expression before ')' > token > [exec] xpcom.cpp:2106: error: expected `;' before "new" > [exec] xpcom.cpp: In function `jint > Java_org_eclipse_swt_internal_mozilla_X > PCOM_nsEmbedCString_1new___3BI(JNIEnv*, _jclass*, _jbyteArray*, jint)': > [exec] xpcom.cpp:2120: error: expected primary-expression before ')' > token > [exec] xpcom.cpp:2120: error: expected `;' before "new" > [exec] xpcom.cpp: In function `jint > Java_org_eclipse_swt_internal_mozilla_X > PCOM_nsEmbedString_1Length(JNIEnv*, _jclass*, jint)': > [exec] xpcom.cpp:2134: error: `nsEmbedString' undeclared (first use > this fu > nction) > [exec] xpcom.cpp:2134: error: expected primary-expression before ')' > token > [exec] xpcom.cpp:2134: error: expected primary-expression before ')' > token > [exec] xpcom.cpp: In function `void > Java_org_eclipse_swt_internal_mozilla_X > PCOM_nsEmbedString_1delete(JNIEnv*, _jclass*, jint)': > [exec] xpcom.cpp:2145: error: `nsEmbedString' undeclared (first use > this fu > nction) > [exec] xpcom.cpp:2145: error: expected primary-expression before ')' > token > [exec] xpcom.cpp:2145: error: expected `;' before "arg0" > [exec] xpcom.cpp: In function `jint > Java_org_eclipse_swt_internal_mozilla_X > PCOM_nsEmbedString_1get(JNIEnv*, _jclass*, jint)': > [exec] xpcom.cpp:2156: error: `nsEmbedString' undeclared (first use > this fu > nction) > [exec] xpcom.cpp:2156: error: expected primary-expression before ')' > token > [exec] xpcom.cpp:2156: error: expected primary-expression before ')' > token > [exec] xpcom.cpp: In function `jint > Java_org_eclipse_swt_internal_mozilla_X > PCOM_nsEmbedString_1new__(JNIEnv*, _jclass*)': > [exec] xpcom.cpp:2168: error: expected primary-expression before ')' > token > [exec] xpcom.cpp:2168: error: expected `;' before "new" > [exec] xpcom.cpp: In function `jint > Java_org_eclipse_swt_internal_mozilla_X > PCOM_nsEmbedString_1new___3C(JNIEnv*, _jclass*, _jcharArray*)': > [exec] xpcom.cpp:2182: error: expected primary-expression before ')' > token > [exec] xpcom.cpp:2182: error: expected `;' before "new" > [exec] xpcom.cpp: In function `jboolean > Java_org_eclipse_swt_internal_mozil > la_XPCOM_nsID_1Equals(JNIEnv*, _jclass*, jint, jint)': > [exec] xpcom.cpp:2196: error: `nsID' undeclared (first use this > function) > [exec] xpcom.cpp:2196: error: expected primary-expression before ')' > token > [exec] xpcom.cpp:2196: error: expected primary-expression before ')' > token > [exec] xpcom.cpp:2196: error: expected primary-expression before ')' > token > [exec] xpcom.cpp: In function `jboolean > Java_org_eclipse_swt_internal_mozil > la_XPCOM_nsID_1Parse(JNIEnv*, _jclass*, jint, _jstring*)': > [exec] xpcom.cpp:2210: error: `nsID' undeclared (first use this > function) > [exec] xpcom.cpp:2210: error: expected primary-expression before ')' > token > [exec] xpcom.cpp:2210: error: expected primary-expression before ')' > token > [exec] xpcom.cpp: In function `void > Java_org_eclipse_swt_internal_mozilla_X > PCOM_nsID_1delete(JNIEnv*, _jclass*, jint)': > [exec] xpcom.cpp:2223: error: `nsID' undeclared (first use this > function) > [exec] xpcom.cpp:2223: error: expected primary-expression before ')' > token > [exec] xpcom.cpp:2223: error: expected `;' before "arg0" > [exec] xpcom.cpp: In function `jint > Java_org_eclipse_swt_internal_mozilla_X > PCOM_nsID_1new(JNIEnv*, _jclass*)': > [exec] xpcom.cpp:2234: error: expected primary-expression before ')' > token > [exec] xpcom.cpp:2234: error: expected `;' before "new" > [exec] xpcom.cpp: In function `jint > Java_org_eclipse_swt_internal_mozilla_X > PCOM_strlen(JNIEnv*, _jclass*, jint)': > [exec] xpcom.cpp :2246: error: `strlen' undeclared (first use this > function) > > > BUILD FAILED > /usr/ports/java/eclipse/work/build.xml:76: exec returned: 1 > > Total time: 18 minutes 25 seconds > *** Error code 1 > > Stop in /usr/ports/java/eclipse. > From owner-freebsd-java@FreeBSD.ORG Thu Nov 16 10:51:30 2006 Return-Path: X-Original-To: java@freebsd.org Delivered-To: freebsd-java@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7EBC816A417 for ; Thu, 16 Nov 2006 10:51:30 +0000 (UTC) (envelope-from apivovarov@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.178]) by mx1.FreeBSD.org (Postfix) with ESMTP id 59B3B43D73 for ; Thu, 16 Nov 2006 10:51:22 +0000 (GMT) (envelope-from apivovarov@gmail.com) Received: by py-out-1112.google.com with SMTP id f31so298261pyh for ; Thu, 16 Nov 2006 02:51:21 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=fq0tQNOP03gqY1hKuhGkiY0X65ut+AWNNbK9kxqEtKgOz6aDYJ23KDChTsquwXcfYqZbXXZqBRW8Qxj1+doZvVSl9WNmoQsQveMgIQpg+Riy1YKqU0SogH4CJDIMpW1emRCIa06uykD9LYIHXfEha5PLXq/w822OnNfia5Cv37k= Received: by 10.35.40.10 with SMTP id s10mr506418pyj.1163674281592; Thu, 16 Nov 2006 02:51:21 -0800 (PST) Received: by 10.35.15.20 with HTTP; Thu, 16 Nov 2006 02:51:21 -0800 (PST) Message-ID: <426b510c0611160251r40494426w421c56ffa983898d@mail.gmail.com> Date: Thu, 16 Nov 2006 13:51:21 +0300 From: "Alex Pivovarov" To: java@freebsd.org, eclipse@freebsd.org In-Reply-To: <426b510c0611151300v31ea3eb1x1c860641ec6a13a0@mail.gmail.com> MIME-Version: 1.0 References: <426b510c0611151004r48271e19pdcfcbb129052315@mail.gmail.com> <426b510c0611151300v31ea3eb1x1c860641ec6a13a0@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Re: eclipse 3.2.1 build WITH_MOZILLA=firefox2 failed X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Nov 2006 10:51:30 -0000 Eventually I installed Eclipse-3.2.1 I update Mozilla to 1.7.13_1,2 and after that Eclipse was built successfully. On 11/16/06, Alex Pivovarov wrote: > > anyway I installed mozilla-1.7.13.2 from package > > after than I runed portinstall java/eclipse > and got the similar errors in xpcom_profile.cpp in lines 45, 59, 71, 83 > > On 11/15/06, Alex Pivovarov wrote: > > > > I have the last firefox-2.0_2,1 installed > > I cvsup stable-supfile > > I cd to /usr/ports/java/eclipse > > run make WITH_MOZILLA=firefox2 install > > > > after 15 min I get an error: > > > > > > PCOM_nsEmbedCString_1new__(JNIEnv*, _jclass*)': > > [exec] xpcom.cpp:2106: error: expected primary-expression before > > ')' token > > [exec] xpcom.cpp:2106: error: expected `;' before "new" > > [exec] xpcom.cpp: In function `jint > > Java_org_eclipse_swt_internal_mozilla_X > > PCOM_nsEmbedCString_1new___3BI(JNIEnv*, _jclass*, _jbyteArray*, jint)': > > [exec] xpcom.cpp:2120: error: expected primary-expression before > > ')' token > > [exec] xpcom.cpp:2120: error: expected `;' before "new" > > [exec] xpcom.cpp: In function `jint > > Java_org_eclipse_swt_internal_mozilla_X > > PCOM_nsEmbedString_1Length(JNIEnv*, _jclass*, jint)': > > [exec] xpcom.cpp:2134: error: `nsEmbedString' undeclared (first use > > this fu > > nction) > > [exec] xpcom.cpp:2134: error: expected primary-expression before > > ')' token > > [exec] xpcom.cpp:2134: error: expected primary-expression before > > ')' token > > [exec] xpcom.cpp: In function `void > > Java_org_eclipse_swt_internal_mozilla_X > > PCOM_nsEmbedString_1delete(JNIEnv*, _jclass*, jint)': > > [exec] xpcom.cpp:2145: error: `nsEmbedString' undeclared (first use > > this fu > > nction) > > [exec] xpcom.cpp:2145: error: expected primary-expression before > > ')' token > > [exec] xpcom.cpp:2145: error: expected `;' before "arg0" > > [exec] xpcom.cpp: In function `jint > > Java_org_eclipse_swt_internal_mozilla_X > > PCOM_nsEmbedString_1get(JNIEnv*, _jclass*, jint)': > > [exec] xpcom.cpp:2156: error: `nsEmbedString' undeclared (first use > > this fu > > nction) > > [exec] xpcom.cpp:2156: error: expected primary-expression before > > ')' token > > [exec] xpcom.cpp:2156: error: expected primary-expression before > > ')' token > > [exec] xpcom.cpp: In function `jint > > Java_org_eclipse_swt_internal_mozilla_X > > PCOM_nsEmbedString_1new__(JNIEnv*, _jclass*)': > > [exec] xpcom.cpp:2168: error: expected primary-expression before > > ')' token > > [exec] xpcom.cpp:2168: error: expected `;' before "new" > > [exec] xpcom.cpp: In function `jint > > Java_org_eclipse_swt_internal_mozilla_X > > PCOM_nsEmbedString_1new___3C(JNIEnv*, _jclass*, _jcharArray*)': > > [exec] xpcom.cpp:2182: error: expected primary-expression before > > ')' token > > [exec] xpcom.cpp:2182: error: expected `;' before "new" > > [exec] xpcom.cpp: In function `jboolean > > Java_org_eclipse_swt_internal_mozil > > la_XPCOM_nsID_1Equals(JNIEnv*, _jclass*, jint, jint)': > > [exec] xpcom.cpp:2196: error: `nsID' undeclared (first use this > > function) > > [exec] xpcom.cpp:2196: error: expected primary-expression before > > ')' token > > [exec] xpcom.cpp:2196: error: expected primary-expression before > > ')' token > > [exec] xpcom.cpp:2196: error: expected primary-expression before > > ')' token > > [exec] xpcom.cpp: In function `jboolean > > Java_org_eclipse_swt_internal_mozil > > la_XPCOM_nsID_1Parse(JNIEnv*, _jclass*, jint, _jstring*)': > > [exec] xpcom.cpp:2210: error: `nsID' undeclared (first use this > > function) > > [exec] xpcom.cpp:2210: error: expected primary-expression before > > ')' token > > [exec] xpcom.cpp:2210: error: expected primary-expression before > > ')' token > > [exec] xpcom.cpp: In function `void > > Java_org_eclipse_swt_internal_mozilla_X > > PCOM_nsID_1delete(JNIEnv*, _jclass*, jint)': > > [exec] xpcom.cpp:2223: error: `nsID' undeclared (first use this > > function) > > [exec] xpcom.cpp:2223: error: expected primary-expression before > > ')' token > > [exec] xpcom.cpp:2223: error: expected `;' before "arg0" > > [exec] xpcom.cpp: In function `jint > > Java_org_eclipse_swt_internal_mozilla_X > > PCOM_nsID_1new(JNIEnv*, _jclass*)': > > [exec] xpcom.cpp:2234: error: expected primary-expression before > > ')' token > > [exec] xpcom.cpp:2234: error: expected `;' before "new" > > [exec] xpcom.cpp: In function `jint > > Java_org_eclipse_swt_internal_mozilla_X > > PCOM_strlen(JNIEnv*, _jclass*, jint)': > > [exec] xpcom.cpp :2246: error: `strlen' undeclared (first use this > > function) > > > > > > BUILD FAILED > > /usr/ports/java/eclipse/work/build.xml:76: exec returned: 1 > > > > Total time: 18 minutes 25 seconds > > *** Error code 1 > > > > Stop in /usr/ports/java/eclipse. > > > > From owner-freebsd-java@FreeBSD.ORG Thu Nov 16 11:01:25 2006 Return-Path: X-Original-To: java@freebsd.org Delivered-To: freebsd-java@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 12EFC16A500 for ; Thu, 16 Nov 2006 11:01:25 +0000 (UTC) (envelope-from apivovarov@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.180]) by mx1.FreeBSD.org (Postfix) with ESMTP id F219B43D5D for ; Thu, 16 Nov 2006 11:01:23 +0000 (GMT) (envelope-from apivovarov@gmail.com) Received: by py-out-1112.google.com with SMTP id f31so299695pyh for ; Thu, 16 Nov 2006 03:01:23 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=fq0tQNOP03gqY1hKuhGkiY0X65ut+AWNNbK9kxqEtKgOz6aDYJ23KDChTsquwXcfYqZbXXZqBRW8Qxj1+doZvVSl9WNmoQsQveMgIQpg+Riy1YKqU0SogH4CJDIMpW1emRCIa06uykD9LYIHXfEha5PLXq/w822OnNfia5Cv37k= Received: by 10.35.40.10 with SMTP id s10mr506418pyj.1163674281592; Thu, 16 Nov 2006 02:51:21 -0800 (PST) Received: by 10.35.15.20 with HTTP; Thu, 16 Nov 2006 02:51:21 -0800 (PST) Message-ID: <426b510c0611160251r40494426w421c56ffa983898d@mail.gmail.com> Date: Thu, 16 Nov 2006 13:51:21 +0300 From: "Alex Pivovarov" To: java@freebsd.org, eclipse@freebsd.org In-Reply-To: <426b510c0611151300v31ea3eb1x1c860641ec6a13a0@mail.gmail.com> MIME-Version: 1.0 References: <426b510c0611151004r48271e19pdcfcbb129052315@mail.gmail.com> <426b510c0611151300v31ea3eb1x1c860641ec6a13a0@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Re: eclipse 3.2.1 build WITH_MOZILLA=firefox2 failed X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Nov 2006 11:01:25 -0000 Eventually I installed Eclipse-3.2.1 I update Mozilla to 1.7.13_1,2 and after that Eclipse was built successfully. On 11/16/06, Alex Pivovarov wrote: > > anyway I installed mozilla-1.7.13.2 from package > > after than I runed portinstall java/eclipse > and got the similar errors in xpcom_profile.cpp in lines 45, 59, 71, 83 > > On 11/15/06, Alex Pivovarov wrote: > > > > I have the last firefox-2.0_2,1 installed > > I cvsup stable-supfile > > I cd to /usr/ports/java/eclipse > > run make WITH_MOZILLA=firefox2 install > > > > after 15 min I get an error: > > > > > > PCOM_nsEmbedCString_1new__(JNIEnv*, _jclass*)': > > [exec] xpcom.cpp:2106: error: expected primary-expression before > > ')' token > > [exec] xpcom.cpp:2106: error: expected `;' before "new" > > [exec] xpcom.cpp: In function `jint > > Java_org_eclipse_swt_internal_mozilla_X > > PCOM_nsEmbedCString_1new___3BI(JNIEnv*, _jclass*, _jbyteArray*, jint)': > > [exec] xpcom.cpp:2120: error: expected primary-expression before > > ')' token > > [exec] xpcom.cpp:2120: error: expected `;' before "new" > > [exec] xpcom.cpp: In function `jint > > Java_org_eclipse_swt_internal_mozilla_X > > PCOM_nsEmbedString_1Length(JNIEnv*, _jclass*, jint)': > > [exec] xpcom.cpp:2134: error: `nsEmbedString' undeclared (first use > > this fu > > nction) > > [exec] xpcom.cpp:2134: error: expected primary-expression before > > ')' token > > [exec] xpcom.cpp:2134: error: expected primary-expression before > > ')' token > > [exec] xpcom.cpp: In function `void > > Java_org_eclipse_swt_internal_mozilla_X > > PCOM_nsEmbedString_1delete(JNIEnv*, _jclass*, jint)': > > [exec] xpcom.cpp:2145: error: `nsEmbedString' undeclared (first use > > this fu > > nction) > > [exec] xpcom.cpp:2145: error: expected primary-expression before > > ')' token > > [exec] xpcom.cpp:2145: error: expected `;' before "arg0" > > [exec] xpcom.cpp: In function `jint > > Java_org_eclipse_swt_internal_mozilla_X > > PCOM_nsEmbedString_1get(JNIEnv*, _jclass*, jint)': > > [exec] xpcom.cpp:2156: error: `nsEmbedString' undeclared (first use > > this fu > > nction) > > [exec] xpcom.cpp:2156: error: expected primary-expression before > > ')' token > > [exec] xpcom.cpp:2156: error: expected primary-expression before > > ')' token > > [exec] xpcom.cpp: In function `jint > > Java_org_eclipse_swt_internal_mozilla_X > > PCOM_nsEmbedString_1new__(JNIEnv*, _jclass*)': > > [exec] xpcom.cpp:2168: error: expected primary-expression before > > ')' token > > [exec] xpcom.cpp:2168: error: expected `;' before "new" > > [exec] xpcom.cpp: In function `jint > > Java_org_eclipse_swt_internal_mozilla_X > > PCOM_nsEmbedString_1new___3C(JNIEnv*, _jclass*, _jcharArray*)': > > [exec] xpcom.cpp:2182: error: expected primary-expression before > > ')' token > > [exec] xpcom.cpp:2182: error: expected `;' before "new" > > [exec] xpcom.cpp: In function `jboolean > > Java_org_eclipse_swt_internal_mozil > > la_XPCOM_nsID_1Equals(JNIEnv*, _jclass*, jint, jint)': > > [exec] xpcom.cpp:2196: error: `nsID' undeclared (first use this > > function) > > [exec] xpcom.cpp:2196: error: expected primary-expression before > > ')' token > > [exec] xpcom.cpp:2196: error: expected primary-expression before > > ')' token > > [exec] xpcom.cpp:2196: error: expected primary-expression before > > ')' token > > [exec] xpcom.cpp: In function `jboolean > > Java_org_eclipse_swt_internal_mozil > > la_XPCOM_nsID_1Parse(JNIEnv*, _jclass*, jint, _jstring*)': > > [exec] xpcom.cpp:2210: error: `nsID' undeclared (first use this > > function) > > [exec] xpcom.cpp:2210: error: expected primary-expression before > > ')' token > > [exec] xpcom.cpp:2210: error: expected primary-expression before > > ')' token > > [exec] xpcom.cpp: In function `void > > Java_org_eclipse_swt_internal_mozilla_X > > PCOM_nsID_1delete(JNIEnv*, _jclass*, jint)': > > [exec] xpcom.cpp:2223: error: `nsID' undeclared (first use this > > function) > > [exec] xpcom.cpp:2223: error: expected primary-expression before > > ')' token > > [exec] xpcom.cpp:2223: error: expected `;' before "arg0" > > [exec] xpcom.cpp: In function `jint > > Java_org_eclipse_swt_internal_mozilla_X > > PCOM_nsID_1new(JNIEnv*, _jclass*)': > > [exec] xpcom.cpp:2234: error: expected primary-expression before > > ')' token > > [exec] xpcom.cpp:2234: error: expected `;' before "new" > > [exec] xpcom.cpp: In function `jint > > Java_org_eclipse_swt_internal_mozilla_X > > PCOM_strlen(JNIEnv*, _jclass*, jint)': > > [exec] xpcom.cpp :2246: error: `strlen' undeclared (first use this > > function) > > > > > > BUILD FAILED > > /usr/ports/java/eclipse/work/build.xml:76: exec returned: 1 > > > > Total time: 18 minutes 25 seconds > > *** Error code 1 > > > > Stop in /usr/ports/java/eclipse. > > > > From owner-freebsd-java@FreeBSD.ORG Thu Nov 16 19:49:27 2006 Return-Path: X-Original-To: freebsd-java@freebsd.org Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D290816A417 for ; Thu, 16 Nov 2006 19:49:27 +0000 (UTC) (envelope-from apivovarov@gmail.com) Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.192]) by mx1.FreeBSD.org (Postfix) with ESMTP id C196743D5D for ; Thu, 16 Nov 2006 19:46:57 +0000 (GMT) (envelope-from apivovarov@gmail.com) Received: by nz-out-0102.google.com with SMTP id i11so366528nzh for ; Thu, 16 Nov 2006 11:46:53 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=RDbVbe3lqzPS/oi6onVy0ym/QdYsb56DzF3K2aQ4fxeWU6QAP+d80XIrGI5clgHbxfKy1IEzHuq0RIYr9WtuzA9gdyEpdIcBPjhA/Ht8MgvBAzHy7paup/dbvep9Y8GsSPwj9kjC9Fi1wCR0EPePjmkoOuNvfzjUMYO7Cz1upKk= Received: by 10.35.100.6 with SMTP id c6mr1454677pym.1163706413255; Thu, 16 Nov 2006 11:46:53 -0800 (PST) Received: by 10.35.15.20 with HTTP; Thu, 16 Nov 2006 11:46:52 -0800 (PST) Message-ID: <426b510c0611161146m45998a6ew432fd93741ad5a5d@mail.gmail.com> Date: Thu, 16 Nov 2006 19:46:52 +0000 From: "Alex Pivovarov" To: freebsd-java@freebsd.org, freebsd-eclipse@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: I can not create new Dynamic Web Project in Eclipse 3.2.1 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Nov 2006 19:49:27 -0000 I create new Server Apache Tomcat in Eclipse (it starts/stops ok) after that I try to create Dynamic Web Project - enter a name, choose target server and could not press "Next" of "Finish" because they are disabled From owner-freebsd-java@FreeBSD.ORG Fri Nov 17 16:04:43 2006 Return-Path: X-Original-To: freebsd-java@freebsd.org Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2817D16A412 for ; Fri, 17 Nov 2006 16:04:43 +0000 (UTC) (envelope-from freebsd-java@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8664E43D45 for ; Fri, 17 Nov 2006 16:04:42 +0000 (GMT) (envelope-from freebsd-java@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Gl6Ck-00045L-I8 for freebsd-java@freebsd.org; Fri, 17 Nov 2006 17:04:38 +0100 Received: from lara.cc.fer.hr ([161.53.72.113]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 17 Nov 2006 17:04:38 +0100 Received: from ivoras by lara.cc.fer.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 17 Nov 2006 17:04:38 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-java@freebsd.org From: Ivan Voras Date: Fri, 17 Nov 2006 17:03:56 +0100 Lines: 44 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: lara.cc.fer.hr User-Agent: Thunderbird 1.5.0.4 (X11/20060625) Sender: news Subject: Trouble with Zend Studio X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Nov 2006 16:04:43 -0000 I doubt this is high on anyone's priority list, but I've tried to run Zend Studio under FreeBSD today and it failed. It's written in Java, and as long as I use the supplied java-jre it sortof works, but is unstable. With the native JRE it fails without giving a backtrace or even a java debug trace file (hs...pid file). The only thing I've managed to wring out of it is the list of loaded libraries, which ends like this: [Loaded java.util.TimeZone from shared objects file] [Loaded java.lang.InheritableThreadLocal from shared objects file] [Loaded sun.util.calendar.ZoneInfo from shared objects file] [Loaded sun.util.calendar.ZoneInfoFile from shared objects file] [Loaded sun.util.calendar.ZoneInfoFile$1 from shared objects file] [Loaded java.util.TimeZone$1 from shared objects file] [Loaded sun.util.calendar.CalendarDate from shared objects file] [Loaded sun.util.calendar.BaseCalendar$Date from shared objects file] [Loaded sun.util.calendar.Gregorian$Date from shared objects file] [Loaded sun.util.calendar.CalendarUtils from shared objects file] [Loaded java.util.TimeZone$DisplayNames from /usr/local/diablo-jdk1.5.0/jre/lib/rt.jar] [Loaded java.text.DateFormatSymbols from shared objects file] [Loaded sun.text.resources.LocaleData from shared objects file] [Loaded sun.text.resources.LocaleData$1 from shared objects file] [Loaded java.util.ResourceBundle$ResourceCacheKey from shared objects file] [Loaded java.util.ResourceBundle$LoaderReference from shared objects file] [Loaded sun.misc.SoftCache$ValueCell from shared objects file] [Loaded java.util.ListResourceBundle from shared objects file] [Loaded sun.text.resources.LocaleElements from shared objects file] [Loaded sun.text.resources.LocaleElements_en from shared objects file] [Loaded sun.text.resources.LocaleElements_en_US from shared objects file] [Loaded sun.text.resources.DateFormatZoneData from shared objects file] [Loaded sun.text.resources.DateFormatZoneData_en from shared objects file] [Loaded java.util.ResourceBundle$1 from shared objects file] [Loaded sun.misc.Launcher$1 from shared objects file] [Loaded java.net.URLClassLoader$2 from shared objects file] [Loaded java.util.Vector$1 from shared objects file] [Loaded sun.text.resources.DateFormatZoneData$1 from shared objects file] [Loaded java.lang.ExceptionInInitializerError from shared objects file] [Loaded java.lang.Shutdown from shared objects file] [Loaded java.lang.Shutdown$Lock from shared objects file] Any ideas on how to proceed? From owner-freebsd-java@FreeBSD.ORG Sat Nov 18 13:54:06 2006 Return-Path: X-Original-To: java@freebsd.org 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 CEDFA16A417 for ; Sat, 18 Nov 2006 13:54:06 +0000 (UTC) (envelope-from apivovarov@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.178]) by mx1.FreeBSD.org (Postfix) with ESMTP id 57AAE43D49 for ; Sat, 18 Nov 2006 13:54:02 +0000 (GMT) (envelope-from apivovarov@gmail.com) Received: by py-out-1112.google.com with SMTP id f31so609203pyh for ; Sat, 18 Nov 2006 05:53:32 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=AyRXBya9rvV//eWIAVJrI3XZya7Ipy4K9GkaGMRfYGD4yV79wLypRqmEmeUNq7ppA7+IvgvtQt/hV/tI7ztXChtN8iS62jjJIKUzpq+GVIWcRGErAqtQFHPaYNEdoWBcSDyDpMeBD/YbMLXRDTWxJrMUJpUQE9m9ERb4jTJH9eg= Received: by 10.35.50.9 with SMTP id c9mr4248794pyk.1163858011203; Sat, 18 Nov 2006 05:53:31 -0800 (PST) Received: by 10.35.15.20 with HTTP; Sat, 18 Nov 2006 05:53:31 -0800 (PST) Message-ID: <426b510c0611180553p327958a7oaec1d3d66c59f8@mail.gmail.com> Date: Sat, 18 Nov 2006 16:53:31 +0300 From: "Alex Pivovarov" To: eclipse@freebsd.org, freebsd-eclipse@freebsd.org, java@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Does anybody create Dynamic Web project in Eclipse-3.2.1? It doesn't work for me. X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Nov 2006 13:54:06 -0000 Does anybody create Dynamic Web project in Eclipse-3.2.1? It doesn't work for me. Is it only my problem or someone else also could not create Dynamic Web Project?