From owner-freebsd-java@FreeBSD.ORG Sun Feb 6 00:56:18 2005 Return-Path: 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 B675E16A4CE for ; Sun, 6 Feb 2005 00:56:18 +0000 (GMT) Received: from rwcrmhc13.comcast.net (rwcrmhc13.comcast.net [204.127.198.39]) by mx1.FreeBSD.org (Postfix) with ESMTP id 78ABE43D1D for ; Sun, 6 Feb 2005 00:56:18 +0000 (GMT) (envelope-from islero@comcast.net) Received: from juniper.santafe.lan (c-67-180-154-160.client.comcast.net[67.180.154.160]) by comcast.net (rwcrmhc13) with SMTP id <20050206005618015009n8pte>; Sun, 6 Feb 2005 00:56:18 +0000 From: Jerry Keefe To: "Conrad J. Sabatier" In-Reply-To: <20050205142721.610ce3f3@dolphin.local.net> References: <20050205142721.610ce3f3@dolphin.local.net> Content-Type: text/plain Date: Sat, 05 Feb 2005 16:56:12 -0800 Message-Id: <1107651372.789.8.camel@juniper.santafe.lan> Mime-Version: 1.0 X-Mailer: Evolution 2.0.3 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit cc: java@freebsd.org Subject: Re: jdk-1.5.0 on amd64 CURRENT -- insane memory usage X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Feb 2005 00:56:18 -0000 On Sat, 2005-02-05 at 14:27 -0600, Conrad J. Sabatier wrote: > Well, following the advice in the thread "Re: java/jdk15 build failure > on amd64", I finally managed to build and install jdk-1.5.0 on my > amd64-current box. Unfortunately, preliminary results are extremely > disappointing. > > It seems that any java app I try running instantly tries to allocate an > entire gigabyte of RAM right off the bat. Running apps are showing > sizes of 1200, 1300, 1400 megs, which is just completely crazy. The > same apps running with jdk-1.5.0 on my 32-bit Athlon box under STABLE > are fine, no such craziness with memory allocation. > > Is anyone else seeing the same sort of thing? Right now, for me, > jdk-1.5.0 is all but useless on my amd64 box (I only have 512 megs of > physical RAM; but even if I had more, this sort of memory hogging is > just completely out of line). :-( > I quickly tried some apps from ports (finance/venice editors/jedit) and they seem to function without obvious problems. I have 1 GB memory. Venice uses 2.5 MB on my i386 box and 4.8 MB on the amd64 box (both with jdk15). Jedit seemed equally bigger on amd64. Maybe that shouldn't be a surprise with a 64 bit architecture. Thinking back on it, though, I did recompile jdk15 using jdk15 instead of the linux-sun-jdk bootstrap. Don't know if that matters. From owner-freebsd-java@FreeBSD.ORG Sun Feb 6 10:10:19 2005 Return-Path: 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 6221016A4CE for ; Sun, 6 Feb 2005 10:10:19 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 23BDF43D1D for ; Sun, 6 Feb 2005 10:10:19 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id j16AAIAN079058 for ; Sun, 6 Feb 2005 10:10:18 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id j16AAIuw079057; Sun, 6 Feb 2005 10:10:18 GMT (envelope-from gnats) Resent-Date: Sun, 6 Feb 2005 10:10:18 GMT Resent-Message-Id: <200502061010.j16AAIuw079057@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, Anthony Ginepro Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8543716A4CE for ; Sun, 6 Feb 2005 10:06:50 +0000 (GMT) Received: from renaissance.homeip.net (m197.net81-67-151.noos.fr [81.67.151.197]) by mx1.FreeBSD.org (Postfix) with ESMTP id B53AE43D1D for ; Sun, 6 Feb 2005 10:06:49 +0000 (GMT) (envelope-from rapiere@renaissance.homeip.net) Received: by renaissance.homeip.net (Postfix, from userid 1001) id 2F5782073; Sun, 6 Feb 2005 11:06:48 +0100 (CET) Message-Id: <20050206100648.2F5782073@renaissance.homeip.net> Date: Sun, 6 Feb 2005 11:06:48 +0100 (CET) From: Anthony Ginepro To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: java/77162: Tomcat5 regression with jdk15-p1 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Anthony Ginepro List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Feb 2005 10:10:19 -0000 >Number: 77162 >Category: java >Synopsis: Tomcat5 regression with jdk15-p1 >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-java >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Feb 06 10:10:18 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Anthony Ginepro >Release: FreeBSD 5.3-STABLE i386 >Organization: >Environment: System: FreeBSD renaissance.homeip.net 5.3-STABLE FreeBSD 5.3-STABLE #1: Sun Feb 6 10:02:52 CET 2005 rapiere@renaissance.homeip.net:/usr/obj/usr/src/sys/CUSTOM_20041231 i386 Tomcat 5.0 and 5.5 >Description: Tomcat 5.x becomes much slower with jdk15-p1 than jdk15-exp as reported in : http://marc.theaimsgroup.com/?l=freebsd-java&m=110633266311615&w=2 After some experiments, I get back normal operations when reverting hotspot/src/os/bsd/vm/os_bsd.cpp (which is what the patch joined does). >How-To-Repeat: Start Tomcat 5.x and check logs/catalina.out for startup time. Try JSP pages which are also slow the first time. >Fix: --- os_bsd.cpp Sun Feb 6 10:49:29 2005 +++ /data/jdk15-new1/work/hotspot/src/os/bsd/vm/os_bsd.cpp Sat Feb 5 17:36:49 2005 @@ -1,8 +1,10 @@ +// XXXBSD: check usage of ::sleep()s (looks like Solaris's ones are defined +// in miliseconds, but FreeBSD's in seconds (convert to usleep/nanosleep?) // XXXBSD: double check of semantics of mmap() and family -// XXXBSD: understand meaning and workaround related to yield +// XXXBSD: understanmd meaning and workaround related to yield /* - * $Id: os_bsd.cpp,v 1.6 2005/01/19 10:38:57 phantom Exp $ + * $Id: os_bsd.cpp,v 1.4 2005/01/08 10:35:51 phantom Exp $ */ /* * Copyright 2004 Sun Microsystems, Inc. All rights reserved. @@ -38,14 +40,6 @@ #if defined(__FreeBSD__) # include #endif -#if defined(__NetBSD__) -# include -# include -# define pthread_yield() sched_yield() -# define pthread_getprio(a) 0 -# define pthread_setprio(a, b) 0 -# define pthread_main_np() 0 -#endif #define MAX_PATH (1 * K) @@ -377,7 +371,7 @@ void os::init_system_properties_values() { -#ifdef _ALLBSD_SOURCE +#ifdef __FreeBSD__ struct utsname uts; uname(&uts); const char *arch = uts.machine; @@ -416,7 +410,7 @@ #define malloc(n) (char*)NEW_C_HEAP_ARRAY(char, (n)) #define getenv(n) ::getenv(n) -#define DEFAULT_LD_LIBRARY_PATH "/usr/lib:/usr/local/lib" /* See ld.so.1(1) */ +#define DEFAULT_LD_LIBRARY_PATH "/usr/lib" /* See ld.so.1(1) */ #define EXTENSIONS_DIR "/lib/ext" #define ENDORSED_DIR "/lib/endorsed" @@ -1380,7 +1374,6 @@ // Prints the names and full paths of all opened dynamic libraries // for current process void os::print_dll_info(outputStream * st) { -#ifdef RTLD_DI_LINKMAP Dl_info dli; void *handle; Link_map *map; @@ -1412,10 +1405,6 @@ } dlclose(handle); - return; -done: -#endif - st->print_cr("Error: Cannot print dynamic libraries."); } bool _print_ascii_file(const char* filename, outputStream* st) { @@ -1560,7 +1549,7 @@ // Look for JAVA_HOME in the environment. char* java_home_var = ::getenv("JAVA_HOME"); if (java_home_var != NULL && java_home_var[0] != 0) { -#ifdef _ALLBSD_SOURCE +#ifdef __FreeBSD__ struct utsname uts; char cpu_arch[12]; uname(&uts); @@ -1887,22 +1876,50 @@ } static int os_sleep(jlong millis, bool interruptible) { - struct timespec t; + const jlong limit = INT_MAX; + jlong prevtime; int res; - t.tv_sec = millis / 1000L; - t.tv_nsec = (millis % 1000L) * 1000000; + while (millis > limit) { + if ((res = os_sleep(limit, interruptible)) != OS_OK) + return res; + millis -= limit; + } + + // Restart interrupted polls with new parameters until the proper delay + // has been completed. + + prevtime = getTimeMillis(); + + while (millis > 0) { + jlong newtime; + if (!interruptible) { - do { - res = nanosleep(&t, &t); - } while ((res == OS_ERR) && (errno == EINTR)); + // Following assert fails for os::yield_all: + // assert(!thread->is_Java_thread(), "must not be java thread"); + res = poll(NULL, 0, millis); } else { assert(Thread::current()->is_Java_thread(), "must be java thread"); - INTERRUPTIBLE_NORESTART(nanosleep(&t, &t), res, os::Bsd::clear_interrupted); + INTERRUPTIBLE_NORESTART_VM(poll(NULL, 0, millis), res, + os::Bsd::clear_interrupted); } // INTERRUPTIBLE_NORESTART_VM returns res == OS_INTRPT for thread.Interrupt - return res; + if((res == OS_ERR) && (errno == EINTR)) { + newtime = getTimeMillis(); + assert(newtime >= prevtime, "time moving backwards"); + /* Doing prevtime and newtime in microseconds doesn't help precision, + and trying to round up to avoid lost milliseconds can result in a + too-short delay. */ + millis -= newtime - prevtime; + if(millis <= 0) + return OS_OK; + prevtime = newtime; + } else + return res; + } + + return OS_OK; } int os::Bsd::naked_sleep() { >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-java@FreeBSD.ORG Sun Feb 6 11:00:44 2005 Return-Path: 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 0BF0016A4CE for ; Sun, 6 Feb 2005 11:00:44 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id D5BC443D31 for ; Sun, 6 Feb 2005 11:00:43 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id j16B0hEj062699 for ; Sun, 6 Feb 2005 11:00:43 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id j16B0hpr062698; Sun, 6 Feb 2005 11:00:43 GMT (envelope-from gnats) Date: Sun, 6 Feb 2005 11:00:43 GMT Message-Id: <200502061100.j16B0hpr062698@freefall.freebsd.org> To: freebsd-java@FreeBSD.org From: Anthony Ginepro Subject: Re: java/77162: Tomcat5 regression with jdk15-p1 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Anthony Ginepro List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Feb 2005 11:00:44 -0000 The following reply was made to PR java/77162; it has been noted by GNATS. From: Anthony Ginepro To: freebsd-gnats-submit@FreeBSD.org Cc: Subject: Re: java/77162: Tomcat5 regression with jdk15-p1 Date: Sun, 06 Feb 2005 11:50:40 +0100 forgive me for the typo, my real email is of course : anthony.ginepro@laposte.net From owner-freebsd-java@FreeBSD.ORG Sun Feb 6 16:02:55 2005 Return-Path: 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 EB0F916A4CE; Sun, 6 Feb 2005 16:02:55 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id C0D7A43D46; Sun, 6 Feb 2005 16:02:55 +0000 (GMT) (envelope-from hq@FreeBSD.org) Received: from freefall.freebsd.org (hq@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id j16G2tv0095231; Sun, 6 Feb 2005 16:02:55 GMT (envelope-from hq@freefall.freebsd.org) Received: (from hq@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id j16G2tDa095227; Sun, 6 Feb 2005 16:02:55 GMT (envelope-from hq) Date: Sun, 6 Feb 2005 16:02:55 GMT From: Herve Quiroz Message-Id: <200502061602.j16G2tDa095227@freefall.freebsd.org> To: bati@nostromo.cz, hq@FreeBSD.org, freebsd-java@FreeBSD.org Subject: Re: ports/75348: Tomcat port overwrites server.xml config file X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Feb 2005 16:02:56 -0000 Synopsis: Tomcat port overwrites server.xml config file State-Changed-From-To: open->feedback State-Changed-By: hq State-Changed-When: Sun Feb 6 16:02:01 GMT 2005 State-Changed-Why: It seems like this issue is fixed. Shall we close this PR? http://www.freebsd.org/cgi/query-pr.cgi?pr=75348 From owner-freebsd-java@FreeBSD.ORG Sun Feb 6 20:50:23 2005 Return-Path: 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 38EB616A4CE for ; Sun, 6 Feb 2005 20:50:23 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1BB7943D1D for ; Sun, 6 Feb 2005 20:50:23 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id j16KoM0E032256 for ; Sun, 6 Feb 2005 20:50:22 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id j16KoMmH032255; Sun, 6 Feb 2005 20:50:22 GMT (envelope-from gnats) Date: Sun, 6 Feb 2005 20:50:22 GMT Message-Id: <200502062050.j16KoMmH032255@freefall.freebsd.org> To: freebsd-java@FreeBSD.org From: Francois Tigeot Subject: Re: ports/75852: [patch] Make java/linux-sun-jdk14 install on amd64 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Francois Tigeot List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Feb 2005 20:50:23 -0000 The following reply was made to PR ports/75852; it has been noted by GNATS. From: Francois Tigeot To: freebsd-gnats-submit@FreeBSD.org Cc: ftigeot@wolfpond.org Subject: Re: ports/75852: [patch] Make java/linux-sun-jdk14 install on amd64 Date: Sun, 6 Feb 2005 21:41:45 +0100 --IJpNTDwzlM2Ie8A6 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline New patch for linux-gtk with the correct use of bsd.port.{pre,post}.mk -- Francois Tigeot --IJpNTDwzlM2Ie8A6 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=patch-linux-gtk --- x11-toolkits/linux-gtk/Makefile.orig Fri Dec 31 19:24:09 2004 +++ x11-toolkits/linux-gtk/Makefile Sun Feb 6 21:15:26 2005 @@ -24,7 +24,14 @@ USE_LINUX_PREFIX= yes USE_LINUX= yes -ONLY_FOR_ARCHS?= i386 alpha +ONLY_FOR_ARCHS?= i386 alpha amd64 + +.include + +.if (${ARCH} == "amd64") +MACHINE_ARCH= i386 +.endif + DIST_SUBDIR?= rpm EXTRACT_ONLY= NO_BUILD= yes @@ -49,6 +56,9 @@ DBPATH= /var/lib/rpm RPMFLAGS= --ignoreos --root ${PREFIX} --dbpath ${DBPATH} \ --nodeps --replacepkgs +.if (${ARCH} == "amd64") +RPMFLAGS+= --ignorearch +.endif RPMDIR= ${DISTDIR}/${DIST_SUBDIR} do-install: @@ -66,4 +76,4 @@ ${FIND} -d * -type d | ${SED} -e 's:^:@dirrm :' \ >> ${PLIST}.new -.include +.include --IJpNTDwzlM2Ie8A6-- From owner-freebsd-java@FreeBSD.ORG Mon Feb 7 07:35:30 2005 Return-Path: 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 62E3516A4CE for ; Mon, 7 Feb 2005 07:35:30 +0000 (GMT) Received: from matrix.gatewaynet.com (matrix.gatewaynet.com [217.19.69.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 41BF143D3F for ; Mon, 7 Feb 2005 07:35:29 +0000 (GMT) (envelope-from achill@matrix.gatewaynet.com) Received: from matrix.gatewaynet.com (localhost.localdomain [127.0.0.1]) by matrix.gatewaynet.com (8.12.8/8.12.8) with ESMTP id j178CQeM002440; Mon, 7 Feb 2005 10:12:26 +0200 Received: from localhost (achill@localhost)j178COhY002436; Mon, 7 Feb 2005 10:12:25 +0200 Date: Mon, 7 Feb 2005 10:12:24 +0200 (EET) From: Achilleus Mantzios To: Andrew Holt In-Reply-To: <5f2cbeef829dc7c916e4d54e1d68290b@4asolutions.co.uk> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=ISO-8859-7 Content-Transfer-Encoding: 8BIT cc: freebsd-java@freebsd.org Subject: Re: sun jdk 1.4.2_02 and freebsd 5.2 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Feb 2005 07:35:30 -0000 O Andrew Holt έγραψε στις Feb 5, 2005 : > Hi, > > I found you mail regarding java and FreeBSD. > > I have installed diablo-jdk-1.3.1.0 on FreeBSD 5.2.1 when I run > > /usr/local/diablo-jdk1.3.1/bin/java -version > > I get > > Segmentation fault (core dumped) > > /usr/local/diablo-jdk1.3.1/bin/java > > Also in you mail you say > > > > An alternative is to install the Diablo JDK or JRE, which are > > pre-compiled native code, but only Java 1.3.1 and they have to run in > > FreeBSD 4.x compatability mode. > > > > I am unclear what you mean by "FreeBSD 4.x compatability mode" I have > the compat4x package, is there something else I need to do ? Yes, make sure you have the line options COMPAT_FREEBSD4 # Compatible with FreeBSD4 in your kernel config file, and then build, install the new kernel if not. If that is not the root of the problem, further investigation is needed. > > Any help or suggestions much appreciated. > > Regards, > Andrew > > > ============================================ > Andrew Holt, Managing Director > 4A Solutions Ltd. > > Office : +44(0)1257 268351 > Mobile: +44(0)7841 340608 > email: andrew.holt@4asolutions.co.uk > > veritas vos liberabit -- The truth will set you free > ============================================ > > _______________________________________________ > 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" > -- -Achilleus From owner-freebsd-java@FreeBSD.ORG Mon Feb 7 11:01:46 2005 Return-Path: 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 C4F9216A4CE for ; Mon, 7 Feb 2005 11:01:46 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id AA6DA43D5D for ; Mon, 7 Feb 2005 11:01:46 +0000 (GMT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id j17B1k3L059319 for ; Mon, 7 Feb 2005 11:01:46 GMT (envelope-from owner-bugmaster@freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id j17B1jSX059313 for freebsd-java@freebsd.org; Mon, 7 Feb 2005 11:01:45 GMT (envelope-from owner-bugmaster@freebsd.org) Date: Mon, 7 Feb 2005 11:01:45 GMT Message-Id: <200502071101.j17B1jSX059313@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: peter set sender to owner-bugmaster@freebsd.org using -f From: FreeBSD bugmaster To: freebsd-java@FreeBSD.org Subject: Current problem reports assigned to you X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Feb 2005 11:01:46 -0000 Current FreeBSD problem reports Critical problems Serious problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- f [2002/05/13] ports/38018 java www/jakarta-tomcat4: make passing of JVM f [2002/05/13] ports/38020 java www/jakarta-tomcat4: stop tomcat via java o [2004/05/01] java/66151 java JBuilderX (sun jvm 1.4.1 builtin) crashes f [2004/07/13] java/68972 java unpack crashes during make install of lin o [2004/07/27] ports/69675 java Eclipse slow typing o [2004/09/22] ports/72014 java Eclipse doesn't work (SigBus 10) if it ha o [2004/10/20] ports/72902 java Make of /usr/ports/java/jdk14 fails with o [2004/12/06] ports/74760 java javavmwrapper messes up amavisd-new f [2004/12/21] ports/75348 java Tomcat port overwrites server.xml config o [2005/01/24] java/76631 java any port linux-*-jdk12 will core dump if o [2005/01/25] java/76658 java font.properties actual font file cannot p o [2005/02/06] java/77162 java Tomcat5 regression with jdk15-p1 12 problems total. Non-critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- s [2003/09/16] ports/56928 java jce-aba port should install to $JAVA_HOME o [2004/08/11] java/70292 java jdk14 compile problem f [2004/11/24] ports/74344 java [proposal] tomcat41ctl: support for passi o [2005/01/05] ports/75852 java [patch] Make java/linux-sun-jdk14 install 4 problems total. From owner-freebsd-java@FreeBSD.ORG Mon Feb 7 18:12:55 2005 Return-Path: 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 F343016A4CE for ; Mon, 7 Feb 2005 18:12:54 +0000 (GMT) Received: from postfix3-1.free.fr (postfix3-1.free.fr [213.228.0.44]) by mx1.FreeBSD.org (Postfix) with ESMTP id 978B743D46 for ; Mon, 7 Feb 2005 18:12:54 +0000 (GMT) (envelope-from follet@free.fr) Received: from imp2-q.free.fr (imp2-q.free.fr [212.27.42.2]) by postfix3-1.free.fr (Postfix) with ESMTP id 70F86173575 for ; Mon, 7 Feb 2005 19:12:53 +0100 (CET) Received: by imp2-q.free.fr (Postfix, from userid 33) id 3D2BC62AFE; Mon, 7 Feb 2005 19:12:53 +0100 (MET) Received: from lns-vlq-39f-81-56-150-104.adsl.proxad.net (lns-vlq-39f-81-56-150-104.adsl.proxad.net [81.56.150.104]) by imp2-q.free.fr (IMP) with HTTP for ; Mon, 7 Feb 2005 19:12:53 +0100 Message-ID: <1107799973.4207afa52130c@imp2-q.free.fr> Date: Mon, 7 Feb 2005 19:12:53 +0100 From: follet@free.fr To: freebsd-java@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: Internet Messaging Program (IMP) 3.2.5 X-Originating-IP: 81.56.150.104 Subject: linux-sun-jdk14 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Feb 2005 18:12:55 -0000 Hi evrybody, I'm trying to install Java on my box, but the following error appears. I tryed to edit the file but it seems like binary... I don't understand I've you any idea to resolve it ? thank, N. Follet # pwd /usr/ports/java/linux-sun-jdk14 l# make ====================================================================== Warning: This JDK may be unstable. You are advised to use the native FreeBSD JDK, in ports/java/jdk14. This Java VM will attempt to obtain some system information by accessing files in linux's procfs. You must install the Linux emulation procfs filesystem for this to work correctly. The JVM will exhibit various problems otherwise. This can be accomplished by adding the following line to your /etc/fstab file: linprocfs /compat/linux/proc linprocfs rw 0 0 and then, as root, executing the commands: kldload linprocfs mount /compat/linux/proc ====================================================================== ===> Vulnerability check disabled, database not found ===> Extracting for linux-sun-jdk-1.4.2.06 >> Checksum OK for j2sdk-1_4_2_06-linux-i586.bin. ===> linux-sun-jdk-1.4.2.06 depends on file: /compat/linux/lib/libc.so.6 - found /usr/ports/java/linux-sun-jdk14/work/install.sfx: 1: Syntax error: word unexpected (expecting ")") *** Error code 2 Stop in /usr/ports/java/linux-sun-jdk14. From owner-freebsd-java@FreeBSD.ORG Mon Feb 7 18:50:18 2005 Return-Path: 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 798AF16A4CE for ; Mon, 7 Feb 2005 18:50:18 +0000 (GMT) Received: from hotmail.com (bay14-f28.bay14.hotmail.com [64.4.49.28]) by mx1.FreeBSD.org (Postfix) with ESMTP id 497E643D41 for ; Mon, 7 Feb 2005 18:50:18 +0000 (GMT) (envelope-from emo102@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Mon, 7 Feb 2005 10:46:01 -0800 Message-ID: Received: from 83.148.101.58 by by14fd.bay14.hotmail.msn.com with HTTP; Mon, 07 Feb 2005 18:45:22 GMT X-Originating-IP: [83.148.101.58] X-Originating-Email: [emo102@hotmail.com] X-Sender: emo102@hotmail.com From: "Emil Petkov" To: freebsd-java@freebsd.org Date: Mon, 07 Feb 2005 18:45:22 +0000 Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_9d7_6c83_18b8" X-OriginalArrivalTime: 07 Feb 2005 18:46:01.0253 (UTC) FILETIME=[45105550:01C50D45] X-Content-Filtered-By: Mailman/MimeDel 2.1.1 Subject: intellij idea 4.5.3 install: another problem X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Feb 2005 18:50:18 -0000 This is a multi-part message in MIME format. ------=_NextPart_000_9d7_6c83_18b8 Content-Type: text/plain; format=flowed When I run Idea 4.5 (./idea.sh) I get these two errors: 1. Error Copying File: Cannot copy /usr/local/idea-2250/lib/resources.jar to /home/me/.IntellijIdea/system/jars/resources.jar.1d63cafc. Function not implemented. 2. Error Copying File: Cannot copy /usr/local/idea-2250/plugins/weblogicIntegration.jar to /home/me/.IntellijIdea/system/jars/weblogicIntegration.jar.10915cad Function not implemented. Also when I try to create the first project, there is something strange: I cannot find the jdk home directory?? I am using the GUI window provided by Intellij in Preferences--> JDK and Global Libraries. I guess it should be /usr/local/linux-sun-jdk1.4.2/ but in the "Select JDK home directory" window it doesn't show /usr/local directory at all? So I don't know how to specify the jdk home dir. I have attached a snapshot of the the problematic window for easier reference. Any help will be appreciated. Best regards, Emil _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ ------=_NextPart_000_9d7_6c83_18b8-- From owner-freebsd-java@FreeBSD.ORG Mon Feb 7 21:33:48 2005 Return-Path: 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 1C0B316A4E3 for ; Mon, 7 Feb 2005 21:33:48 +0000 (GMT) Received: from mailhost.freebsd.lublin.pl (mailhost.freebsd.lublin.pl [193.138.118.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4417F43D39 for ; Mon, 7 Feb 2005 21:33:47 +0000 (GMT) (envelope-from venglin@freebsd.lublin.pl) Received: from [193.138.118.66] (clitoris.waw.czuby.net [193.138.118.66]) j17LXiHG041723 for ; Mon, 7 Feb 2005 22:33:45 +0100 (CET) (envelope-from venglin@freebsd.lublin.pl) Message-ID: <4207DEAB.5010107@freebsd.lublin.pl> Date: Mon, 07 Feb 2005 22:33:31 +0100 From: Przemyslaw Frasunek User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: pl, en-us, en MIME-Version: 1.0 To: freebsd-java@freebsd.org Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.80/689/Thu Jan 27 14:33:10 2005 clamav-milter version 0.80j on mailhost.freebsd.lublin.pl X-Virus-Status: Clean Subject: jdk1.5.0p1 crash when compiling JBoss X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Feb 2005 21:33:48 -0000 Hello, I have installed jdk1.5.0p1 from ports (cvsup'd today) on FreeBSD 4.10-STABLE (as of 2.10.2004) and experiencing the following crash when compiling ports/java/jboss4: cache:venglin:/usr/ports/java/jboss4# make ===> Building for jboss-4.0.1 (cd /root/ports/usr/ports/java/jboss4/work && cc -O -pipe -march=k6 -o jboss4ctl daemonctl.c) [...] _module-jmx-most: ====================================================================== == Executing 'most' in module 'system'... == _buildmagic:init: configure: _default:task-init: init: _buildmagic:build-bypass-checker: _buildmagic:build-bypass-notice: _buildmagic:build-bypass-check: jars: _buildmagic:init: init: _buildmagic:mbean-bypass-checker: _default:compile-mbean-sources: _default:compile-classes: _default:compile-resources: _default:compile-etc: _default:compile-bin: _buildmagic:init: init: _default:fix-bin: # # An unexpected error has been detected by HotSpot Virtual Machine: # # SIGBUS (0xa) at pc=0x480f9c5a, pid=16285, tid=0x8059000 # # Java VM: Java HotSpot(TM) Client VM (1.5.0-p1-venglin_07_feb_2005_12_50 mixed mode) # Problematic frame: # C [libc_r.so.4+0x86c5a] bzero+0x26 # # An error report file with more information is saved as hs_err_pid16285.log # # If you would like to submit a bug report, please write # a letter to freebsd-java@FreeBSD.org mailing list # Abort trap *** Error code 134 The crash is perfectly repetable, it occurs on every attempt to compile JBoss, while precompiled JBoss (and other Java software) works properly. The hs_err_pid16285.log can be found here: http://www.frasunek.com/jvmcrash.log Are there any chances to resolve this problem? Your help would be very appreciated. -- * Fido: 2:480/124 ** WWW: http://www.frasunek.com/ ** NICHDL: PMF9-RIPE * * JID: venglin@jabber.atman.pl ** PGP ID: 2578FCAD ** HAM-RADIO: SQ8JIV * From owner-freebsd-java@FreeBSD.ORG Wed Feb 9 07:57:30 2005 Return-Path: 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 895E416A4CE for ; Wed, 9 Feb 2005 07:57:30 +0000 (GMT) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.207]) by mx1.FreeBSD.org (Postfix) with ESMTP id 11B5E43D1D for ; Wed, 9 Feb 2005 07:57:30 +0000 (GMT) (envelope-from soheil.h.y@gmail.com) Received: by rproxy.gmail.com with SMTP id 34so80244rns for ; Tue, 08 Feb 2005 23:57:29 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding; b=hjemJ95yFSyeqRXiPvKCt3xdMw/UaB1axkBkp/rVUDk3C2ju40PqY8PLXogMZv+DjxP0adjo8LlquaayZeSUeVmBC3xPngN6Mu/i1YdeRYh4CR0IeLbuUpf7EKiUxkgXbFETNKn7QrL4i2QyBnww3hhCU/hhuiXqJf3mbJmLmvU= Received: by 10.38.179.70 with SMTP id b70mr307453rnf; Tue, 08 Feb 2005 23:57:29 -0800 (PST) Received: by 10.38.179.59 with HTTP; Tue, 8 Feb 2005 23:57:27 -0800 (PST) Message-ID: <4c90b772050208235738ac4648@mail.gmail.com> Date: Wed, 9 Feb 2005 11:27:27 +0330 From: Soheil Hassas Yeganeh To: freebsd-java@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: java -server X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Soheil Hassas Yeganeh List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Feb 2005 07:57:30 -0000 Dear All, I had installed the linux-sun-java and jdk14 from ports. But there is something strange hear. java -server is not working. ( e.g. The original copy of JBoss can run. ) What can I do for this ? Best Regards, Soheil From owner-freebsd-java@FreeBSD.ORG Wed Feb 9 08:50:24 2005 Return-Path: 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 4194F16A4CE for ; Wed, 9 Feb 2005 08:50:24 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2321F43D53 for ; Wed, 9 Feb 2005 08:50:24 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id j198oNgn053036 for ; Wed, 9 Feb 2005 08:50:24 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id j198oNb4053035; Wed, 9 Feb 2005 08:50:23 GMT (envelope-from gnats) Date: Wed, 9 Feb 2005 08:50:23 GMT Message-Id: <200502090850.j198oNb4053035@freefall.freebsd.org> To: freebsd-java@FreeBSD.org From: Alexey Zelkin Subject: Re: java/77162: Tomcat5 regression with jdk15-p1 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Alexey Zelkin List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Feb 2005 08:50:24 -0000 The following reply was made to PR java/77162; it has been noted by GNATS. From: Alexey Zelkin To: Anthony Ginepro Cc: FreeBSD-gnats-submit@freebsd.org Subject: Re: java/77162: Tomcat5 regression with jdk15-p1 Date: Wed, 9 Feb 2005 10:46:15 +0200 On Sun, Feb 06, 2005 at 11:06:48AM +0100, Anthony Ginepro wrote: > > >Number: 77162 > >Category: java > >Synopsis: Tomcat5 regression with jdk15-p1 > >Confidential: no > Tomcat 5.x becomes much slower with jdk15-p1 than jdk15-exp > as reported in : > http://marc.theaimsgroup.com/?l=freebsd-java&m=110633266311615&w=2 > > After some experiments, I get back normal operations when reverting > hotspot/src/os/bsd/vm/os_bsd.cpp (which is what the patch joined does). Can you try following patch (on stock jdk1.5.0-p1), and notice me if it's fixes your problem? Thanks! Index: os_bsd.cpp =================================================================== RCS file: /home/cvs/javacvs/jdk150/hotspot/src/os/bsd/vm/os_bsd.cpp,v retrieving revision 1.16 diff -u -r1.16 os_bsd.cpp --- os_bsd.cpp 16 Jan 2005 10:16:25 -0000 1.16 +++ os_bsd.cpp 9 Feb 2005 08:40:04 -0000 @@ -1898,7 +1898,7 @@ } while ((res == OS_ERR) && (errno == EINTR)); } else { assert(Thread::current()->is_Java_thread(), "must be java thread"); - INTERRUPTIBLE_NORESTART(nanosleep(&t, &t), res, os::Bsd::clear_interrupted); + INTERRUPTIBLE_NORESTART_VM(nanosleep(&t, &t), res, os::Bsd::clear_interrupted); } // INTERRUPTIBLE_NORESTART_VM returns res == OS_INTRPT for thread.Interrupt From owner-freebsd-java@FreeBSD.ORG Wed Feb 9 08:50:42 2005 Return-Path: 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 92F0416A4CE; Wed, 9 Feb 2005 08:50:42 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6BFAC43D2D; Wed, 9 Feb 2005 08:50:42 +0000 (GMT) (envelope-from phantom@FreeBSD.org) Received: from freefall.freebsd.org (phantom@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id j198og8b053108; Wed, 9 Feb 2005 08:50:42 GMT (envelope-from phantom@freefall.freebsd.org) Received: (from phantom@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id j198ofno053104; Wed, 9 Feb 2005 08:50:42 GMT (envelope-from phantom) Date: Wed, 9 Feb 2005 08:50:42 GMT From: Alexey Zelkin Message-Id: <200502090850.j198ofno053104@freefall.freebsd.org> To: phantom@FreeBSD.org, freebsd-java@FreeBSD.org, phantom@FreeBSD.org Subject: Re: ports/75852: [patch] Make java/linux-sun-jdk14 install on amd64 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Feb 2005 08:50:42 -0000 Synopsis: [patch] Make java/linux-sun-jdk14 install on amd64 Responsible-Changed-From-To: freebsd-java->phantom Responsible-Changed-By: phantom Responsible-Changed-When: Wed Feb 9 08:49:56 GMT 2005 Responsible-Changed-Why: I'll take a look http://www.freebsd.org/cgi/query-pr.cgi?pr=75852 From owner-freebsd-java@FreeBSD.ORG Thu Feb 10 19:23:17 2005 Return-Path: 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 2559616A4CE for ; Thu, 10 Feb 2005 19:23:17 +0000 (GMT) Received: from obsecurity.dyndns.org (CPE0050040655c8-CM00111ae02aac.cpe.net.cable.rogers.com [69.199.47.57]) by mx1.FreeBSD.org (Postfix) with ESMTP id AFA9143D39 for ; Thu, 10 Feb 2005 19:23:16 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 0C97151473; Thu, 10 Feb 2005 11:23:15 -0800 (PST) Date: Thu, 10 Feb 2005 11:23:15 -0800 From: Kris Kennaway To: java@FreeBSD.ORG Message-ID: <20050210192315.GB78076@xor.obsecurity.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="mxv5cy4qt+RJ9ypb" Content-Disposition: inline User-Agent: Mutt/1.4.2.1i Subject: [ports-i386@FreeBSD.org: eclipse-3.0.1_3 pkg-plist errors on i386 5] X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Feb 2005 19:23:17 -0000 --mxv5cy4qt+RJ9ypb Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Dear port maintainer, The following port has an incomplete pkg-plist, or other errors in the files installed by the port. This may mean that the package is incomplete or non-functional; at the very least, your port does not leave the filesystem in the same state it was before the port was installed. Can you please investigate? In the near future, this condition will be treated as an error on the package cluster, which means that the package will not be made available on the ftp site. Thanks, Kris "Ports Janitor" Kennaway ----- Forwarded message from User Ports-i386 ----- X-Original-To: kkenn@localhost Delivered-To: kkenn@localhost.obsecurity.org Delivered-To: kris@freebsd.org Date: Thu, 10 Feb 2005 09:17:06 GMT From: User Ports-i386 To: krion@FreeBSD.org, kris@FreeBSD.org Subject: eclipse-3.0.1_3 pkg-plist errors on i386 5 X-UIDL: B[A"!+D+#!VBB!!:2&#! X-Bogosity: No, tests=3Dbogofilter, spamicity=3D0.000000, version=3D0.92.8 building eclipse-3.0.1_3 on gohan24.freebsd.org in directory /x/tmp/5/chroot/827 maintained by: java@FreeBSD.ORG port directory: /usr/ports/java/eclipse For the full build log, see http://pointyhat.freebsd.org/errorlogs/i386-errorlogs/a.5.2004121802/ecli= pse-3.0.1_3.log list of extra files and directories in / (not present before this port was = installed but present after it was deinstalled) 381378 8 drwxr-xr-x 3 root wheel 512 = Feb 10 09:13 usr/local/eclipse 387625 8 drwxr-xr-x 3 root wheel 3584 = Feb 10 09:13 usr/local/eclipse/plugins 524580 8 drwxr-xr-x 3 root wheel 512 = Feb 10 09:12 usr/local/eclipse/plugins/org.eclipse.core.resources.freebsd_3= .0.0 524582 8 drwxr-xr-x 3 root wheel 512 = Feb 10 09:13 usr/local/eclipse/plugins/org.eclipse.core.resources.freebsd_3= .0.0/os 524586 8 drwxr-xr-x 3 root wheel 512 = Feb 10 09:02 usr/local/eclipse/plugins/org.eclipse.core.resources.freebsd_3= .0.0/os/linux 524587 8 drwxr-xr-x 2 root wheel 512 = Feb 10 09:02 usr/local/eclipse/plugins/org.eclipse.core.resources.freebsd_3= .0.0/os/linux/x86 ----- End forwarded message ----- --mxv5cy4qt+RJ9ypb Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQFCC7SjWry0BWjoQKURAmoMAKCyAkMe7AiSZtRLp50SfcNOuUCi0wCgnE+3 SIecdujqLqkoKsJpZ5ZoCqs= =UI8t -----END PGP SIGNATURE----- --mxv5cy4qt+RJ9ypb-- From owner-freebsd-java@FreeBSD.ORG Fri Feb 11 04:34:02 2005 Return-Path: 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 5D74D16A4CE for ; Fri, 11 Feb 2005 04:34:02 +0000 (GMT) Received: from hotmail.com (bay101-f13.bay101.hotmail.com [64.4.56.23]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3610343D48 for ; Fri, 11 Feb 2005 04:34:02 +0000 (GMT) (envelope-from graemedocherty@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 10 Feb 2005 20:34:01 -0800 Message-ID: Received: from 221.188.25.92 by by101fd.bay101.hotmail.msn.com with HTTP; Fri, 11 Feb 2005 04:33:16 GMT X-Originating-IP: [221.188.25.92] X-Originating-Email: [graemedocherty@hotmail.com] X-Sender: graemedocherty@hotmail.com In-Reply-To: <200502090850.j198oNb4053035@freefall.freebsd.org> From: "Graeme Docherty" To: phantom@FreeBSD.org.ua, freebsd-java@FreeBSD.org Date: Fri, 11 Feb 2005 04:33:16 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-OriginalArrivalTime: 11 Feb 2005 04:34:01.0531 (UTC) FILETIME=[E8FCC8B0:01C50FF2] Subject: Re: java/77162: Tomcat5 regression with jdk15-p1 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Feb 2005 04:34:02 -0000 Alexey, That patch appears to work for me. I can now start Tomcat using jdk1.5.0 and also launch from Netbeans (running jdk1.5.0) without any problem. FYI: I'm running 5.3 RELEASE on a Celeron-D. Thanks Graeme >From: Alexey Zelkin >Reply-To: Alexey Zelkin >To: freebsd-java@FreeBSD.org >Subject: Re: java/77162: Tomcat5 regression with jdk15-p1 >Date: Wed, 9 Feb 2005 08:50:23 GMT > >The following reply was made to PR java/77162; it has been noted by GNATS. > >From: Alexey Zelkin >To: Anthony Ginepro >Cc: FreeBSD-gnats-submit@freebsd.org >Subject: Re: java/77162: Tomcat5 regression with jdk15-p1 >Date: Wed, 9 Feb 2005 10:46:15 +0200 > > On Sun, Feb 06, 2005 at 11:06:48AM +0100, Anthony Ginepro wrote: > > > > >Number: 77162 > > >Category: java > > >Synopsis: Tomcat5 regression with jdk15-p1 > > >Confidential: no > > > Tomcat 5.x becomes much slower with jdk15-p1 than jdk15-exp > > as reported in : > > http://marc.theaimsgroup.com/?l=freebsd-java&m=110633266311615&w=2 > > > > After some experiments, I get back normal operations when reverting > > hotspot/src/os/bsd/vm/os_bsd.cpp (which is what the patch joined >does). > > Can you try following patch (on stock jdk1.5.0-p1), and notice me if it's > fixes your problem? Thanks! > > Index: os_bsd.cpp > =================================================================== > RCS file: /home/cvs/javacvs/jdk150/hotspot/src/os/bsd/vm/os_bsd.cpp,v > retrieving revision 1.16 > diff -u -r1.16 os_bsd.cpp > --- os_bsd.cpp 16 Jan 2005 10:16:25 -0000 1.16 > +++ os_bsd.cpp 9 Feb 2005 08:40:04 -0000 > @@ -1898,7 +1898,7 @@ > } while ((res == OS_ERR) && (errno == EINTR)); > } else { > assert(Thread::current()->is_Java_thread(), "must be java thread"); > - INTERRUPTIBLE_NORESTART(nanosleep(&t, &t), res, >os::Bsd::clear_interrupted); > + INTERRUPTIBLE_NORESTART_VM(nanosleep(&t, &t), res, >os::Bsd::clear_interrupted); > } > // INTERRUPTIBLE_NORESTART_VM returns res == OS_INTRPT for >thread.Interrupt > >_______________________________________________ >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 Fri Feb 11 12:28:35 2005 Return-Path: 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 966B016A4CE for ; Fri, 11 Feb 2005 12:28:35 +0000 (GMT) Received: from male.aldigital.co.uk (male.thebunker.net [213.129.64.13]) by mx1.FreeBSD.org (Postfix) with ESMTP id E643943D2F for ; Fri, 11 Feb 2005 12:28:34 +0000 (GMT) (envelope-from matthew@thebunker.net) Received: from gravitas.thebunker.net (gateway.ash.thebunker.net [213.129.64.4]) (using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits)) (No client certificate requested) by male.aldigital.co.uk (Postfix) with ESMTP id A52999774A for ; Fri, 11 Feb 2005 12:28:33 +0000 (GMT) Received: from gravitas.thebunker.net (localhost [127.0.0.1]) by gravitas.thebunker.net (8.13.1/8.13.1) with ESMTP id j1BCSROB064873 for ; Fri, 11 Feb 2005 12:28:27 GMT (envelope-from matthew@gravitas.thebunker.net) Received: (from matthew@localhost) by gravitas.thebunker.net (8.13.1/8.13.1/Submit) id j1BCSQ1k064872 for freebsd-java@freebsd.org; Fri, 11 Feb 2005 12:28:26 GMT (envelope-from matthew) Date: Fri, 11 Feb 2005 12:28:26 +0000 From: Matthew Seaman To: freebsd-java@freebsd.org Message-ID: <20050211122826.GB61803@gravitas.thebunker.net> Mail-Followup-To: freebsd-java@freebsd.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="PmA2V3Z32TCmWXqI" Content-Disposition: inline User-Agent: Mutt/1.5.7i Subject: Setting java properties for tomcat5.0 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Feb 2005 12:28:35 -0000 --PmA2V3Z32TCmWXqI Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Dear list, I've got a standard installation of the www/jakarta-tomcat5 port, which is working pretty well. However I need to start tomcat including setting the 'java.awt.headless=3Dtrue' property. Now, all the instructions I've been able to dig up on the web say 'set JAVA_OPTS in the environment', which assumes you're using the catalina.sh script bundled with the tomcat sources. By default the FreeBSD port uses a setuid binary 'tomcat50ctl' to control startup and shutdown of tomcat, and by my reading of the daemonctl.c source code (which is what gets compiled into tomcat50ctl) it seems that environment variables are not passed through to the java command line, and experiment bears out that the effect I want is not generated. As far as I can tell I need to place this value in a Java .properties file somewhere -- the question is: where? Cheers Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 8 Dane Court Manor School Rd PGP: http://www.infracaninophile.co.uk/pgpkey Tilmanstone Tel: +44 1304 617253 Kent, CT14 0JL UK --PmA2V3Z32TCmWXqI Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iQCVAwUBQgyk6pr7OpndfbmCAQK6lwQAo47IjyvljeXfsh0kwo1d/+cf8KKciKU/ R/bKNPupQ45gRDVywDdp0j4feRe47Qxiv6mmGjNHnyxlZ7Il23DGuXu1Lj+r7wEb 4aim7UGImFKKQfQrDHkHFr1DFeElzjFs6n1v1K5LvkQs07Da1xdAunsCYjV5paeA nCQxE+8lSuY= =wWxq -----END PGP SIGNATURE----- --PmA2V3Z32TCmWXqI-- From owner-freebsd-java@FreeBSD.ORG Fri Feb 11 14:10:08 2005 Return-Path: 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 B74FC16A4CE for ; Fri, 11 Feb 2005 14:10:08 +0000 (GMT) Received: from matrix.gatewaynet.com (matrix.gatewaynet.com [217.19.69.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9448343D53 for ; Fri, 11 Feb 2005 14:10:07 +0000 (GMT) (envelope-from achill@matrix.gatewaynet.com) Received: from matrix.gatewaynet.com (localhost.localdomain [127.0.0.1]) by matrix.gatewaynet.com (8.12.8/8.12.8) with ESMTP id j1BElQ1M009226; Fri, 11 Feb 2005 16:47:26 +0200 Received: from localhost (achill@localhost)j1BElPgP009222; Fri, 11 Feb 2005 16:47:26 +0200 Date: Fri, 11 Feb 2005 16:47:25 +0200 (EET) From: Achilleus Mantzios To: Matthew Seaman In-Reply-To: <20050211122826.GB61803@gravitas.thebunker.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=ISO-8859-7 Content-Transfer-Encoding: 8BIT cc: freebsd-java@freebsd.org Subject: Re: Setting java properties for tomcat5.0 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Feb 2005 14:10:08 -0000 O Matthew Seaman έγραψε στις Feb 11, 2005 : > Dear list, > > I've got a standard installation of the www/jakarta-tomcat5 port, > which is working pretty well. However I need to start tomcat > including setting the 'java.awt.headless=true' property. Why dont you edit /usr/local/jakarta-tomcat5.0/bin/catalina.sh and put a -Djava.awt.headless=true \ line at the appropriate location. Use this catalina.sh instead of tomcat50ctl. > > Now, all the instructions I've been able to dig up on the web say 'set > JAVA_OPTS in the environment', which assumes you're using the > catalina.sh script bundled with the tomcat sources. By default the > FreeBSD port uses a setuid binary 'tomcat50ctl' to control startup and > shutdown of tomcat, and by my reading of the daemonctl.c source code > (which is what gets compiled into tomcat50ctl) it seems that > environment variables are not passed through to the java command line, > and experiment bears out that the effect I want is not generated. > > As far as I can tell I need to place this value in a Java .properties > file somewhere -- the question is: where? > > Cheers > > Matthew > > -- -Achilleus From owner-freebsd-java@FreeBSD.ORG Fri Feb 11 16:19:23 2005 Return-Path: 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 19FD216A4CE for ; Fri, 11 Feb 2005 16:19:23 +0000 (GMT) Received: from male.aldigital.co.uk (male.thebunker.net [213.129.64.13]) by mx1.FreeBSD.org (Postfix) with ESMTP id A10F943D31 for ; Fri, 11 Feb 2005 16:19:22 +0000 (GMT) (envelope-from matthew@thebunker.net) Received: from gravitas.thebunker.net (gateway.ash.thebunker.net [213.129.64.4]) (using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits)) (No client certificate requested) by male.aldigital.co.uk (Postfix) with ESMTP id 287D097704; Fri, 11 Feb 2005 16:19:21 +0000 (GMT) Received: from gravitas.thebunker.net (localhost [127.0.0.1]) j1BGJDSA067749; Fri, 11 Feb 2005 16:19:13 GMT (envelope-from matthew@gravitas.thebunker.net) Received: (from matthew@localhost) by gravitas.thebunker.net (8.13.1/8.13.1/Submit) id j1BGJDxQ067748; Fri, 11 Feb 2005 16:19:13 GMT (envelope-from matthew) Date: Fri, 11 Feb 2005 16:19:13 +0000 From: Matthew Seaman To: Achilleus Mantzios Message-ID: <20050211161913.GA67712@gravitas.thebunker.net> Mail-Followup-To: Achilleus Mantzios , freebsd-java@freebsd.org References: <20050211122826.GB61803@gravitas.thebunker.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="vtzGhvizbBRQ85DL" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.7i cc: freebsd-java@freebsd.org Subject: Re: Setting java properties for tomcat5.0 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Feb 2005 16:19:23 -0000 --vtzGhvizbBRQ85DL Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Feb 11, 2005 at 04:47:25PM +0200, Achilleus Mantzios wrote: > O Matthew Seaman ?????? ???? Feb 11, 2005 : >=20 > > Dear list, > >=20 > > I've got a standard installation of the www/jakarta-tomcat5 port, > > which is working pretty well. However I need to start tomcat > > including setting the 'java.awt.headless=3Dtrue' property. >=20 > Why dont you edit > /usr/local/jakarta-tomcat5.0/bin/catalina.sh > and put a > -Djava.awt.headless=3Dtrue \ > line at the appropriate location. >=20 > Use this catalina.sh instead of tomcat50ctl. >=20 That's certainly a possibility, but it means you need root access in order to bounce the tomcat server (ie. because the rc.d script will use su(1) to change the tomcat process to running as user www:www) If I can avoid that necessity it would be good. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 8 Dane Court Manor School Rd PGP: http://www.infracaninophile.co.uk/pgpkey Tilmanstone Tel: +44 1304 617253 Kent, CT14 0JL UK --vtzGhvizbBRQ85DL Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iQCVAwUBQgzbAZr7OpndfbmCAQJA/wP/Y9nZM8p1alqXwD16eDh2pd0100v6K80N WCjysToSZyBNtGsYy2PqwkhhNH+ra0NdaSFkGu3uoAvlEfXI0pvn0dMJYCfv1FOP MzYp52TYcNxnKjeBcWp8TCpAf6aAKGVwXzUcOjIKr1K9WZo881iw02iUv+yY7Uc5 3YHkQsv791A= =276t -----END PGP SIGNATURE----- --vtzGhvizbBRQ85DL-- From owner-freebsd-java@FreeBSD.ORG Fri Feb 11 16:46:42 2005 Return-Path: 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 83F3C16A4CE for ; Fri, 11 Feb 2005 16:46:42 +0000 (GMT) Received: from ms-smtp-04-eri0.southeast.rr.com (ms-smtp-04-lbl.southeast.rr.com [24.25.9.103]) by mx1.FreeBSD.org (Postfix) with ESMTP id 35FA343D1F for ; Fri, 11 Feb 2005 16:46:39 +0000 (GMT) (envelope-from brent@svalin.rcfile.org) Received: from svalin.rcfile.org (cpe-069-134-146-135.nc.rr.com [69.134.146.135])j1BGkWCh018609; Fri, 11 Feb 2005 11:46:35 -0500 (EST) Received: from svalin.rcfile.org (localhost [127.0.0.1]) by svalin.rcfile.org (8.13.1/8.13.1) with ESMTP id j1BGkrmk015541; Fri, 11 Feb 2005 11:46:53 -0500 (EST) (envelope-from brent@svalin.rcfile.org) Received: (from brent@localhost) by svalin.rcfile.org (8.13.1/8.13.1/Submit) id j1BGkrkN015540; Fri, 11 Feb 2005 11:46:53 -0500 (EST) (envelope-from brent) Date: Fri, 11 Feb 2005 11:46:52 -0500 From: Brent Verner To: Achilleus Mantzios , freebsd-java@freebsd.org Message-ID: <20050211164652.GA15083@rcfile.org> References: <20050211122826.GB61803@gravitas.thebunker.net> <20050211161913.GA67712@gravitas.thebunker.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050211161913.GA67712@gravitas.thebunker.net> X-muttrc: $Id: .muttrc,v 1.10 2003/02/08 08:35:24 brent Exp $ X-uname: FreeBSD 5.3-STABLE #6: Thu Feb 10 03:52:08 EST 2005 root@svalin.rcfile.org:/usr/obj/usr/src/sys/MINI User-Agent: Mutt/1.5.6i X-Spam-Status: No, score=-2.8 required=5.0 tests=ALL_TRUSTED autolearn=failed version=3.0.2 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on svalin.rcfile.org X-Virus-Scanned: Symantec AntiVirus Scan Engine Subject: Re: Setting java properties for tomcat5.0 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Feb 2005 16:46:42 -0000 [2005-02-11 16:19] Matthew Seaman said: | That's certainly a possibility, but it means you need root access in | order to bounce the tomcat server (ie. because the rc.d script will | use su(1) to change the tomcat process to running as user www:www) If | I can avoid that necessity it would be good. I felt the same pain, and ended up implementing an alternate daemonctl program that has external configuration file to define env entries (among other things). http://rcfile.org/daemonctl/ http://svalin.rcfile.org/daemonctl/readme.txt You can fetch the daemonctl-port-0.2.tar.gz file and copy the port into your ports tree and install it from there. The tomcat-rc-script.sh can be used to replace the rc script provided by the tomcat50 port. cheers. Brent From owner-freebsd-java@FreeBSD.ORG Fri Feb 11 17:45:21 2005 Return-Path: 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 B7A7F16A4CE for ; Fri, 11 Feb 2005 17:45:21 +0000 (GMT) Received: from mail.dti.supsi.ch (mail.dti.supsi.ch [193.5.153.13]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5186B43D54 for ; Fri, 11 Feb 2005 17:45:18 +0000 (GMT) (envelope-from roberto.nunnari@supsi.ch) Received: from [193.5.152.27] (pcm2027.dti.supsi.ch [193.5.152.27]) by mail.dti.supsi.ch (8.11.6/8.11.6) with ESMTP id j1BHjD009200; Fri, 11 Feb 2005 18:45:13 +0100 Message-ID: <420CEEFC.90302@supsi.ch> Date: Fri, 11 Feb 2005 18:44:28 +0100 From: Roberto Nunnari User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041217 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Matthew Seaman References: <20050211122826.GB61803@gravitas.thebunker.net> <20050211161913.GA67712@gravitas.thebunker.net> In-Reply-To: <20050211161913.GA67712@gravitas.thebunker.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-java@freebsd.org Subject: Re: Setting java properties for tomcat5.0 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Feb 2005 17:45:21 -0000 I had to modify daemonctl and Makefile.. not sure I still have them around.. but it's just 10 minutes work once you make you're way round.. If I find them I'll send to you. Best regards. Matthew Seaman wrote: > On Fri, Feb 11, 2005 at 04:47:25PM +0200, Achilleus Mantzios wrote: > >>O Matthew Seaman ?????? ???? Feb 11, 2005 : >> >> >>>Dear list, >>> >>>I've got a standard installation of the www/jakarta-tomcat5 port, >>>which is working pretty well. However I need to start tomcat >>>including setting the 'java.awt.headless=true' property. >> >>Why dont you edit >>/usr/local/jakarta-tomcat5.0/bin/catalina.sh >>and put a >>-Djava.awt.headless=true \ >>line at the appropriate location. >> >>Use this catalina.sh instead of tomcat50ctl. >> > > > That's certainly a possibility, but it means you need root access in > order to bounce the tomcat server (ie. because the rc.d script will > use su(1) to change the tomcat process to running as user www:www) If > I can avoid that necessity it would be good. > > Cheers, > > Matthew > -- Roberto Nunnari -software engineer- mailto:roberto.nunnari@supsi.ch Scuola Universitaria Professionale della Svizzera Italiana Dipartimento Tecnologie Innovative http://www.dti.supsi.ch SUPSI-DTI Via Cantonale tel: +41-91-6108561 6928 Manno """ fax: +41-91-6108570 Switzerland (o o) =======================oOO==(_)==OOo======================== From owner-freebsd-java@FreeBSD.ORG Fri Feb 11 18:40:24 2005 Return-Path: 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 7B29016A4CE for ; Fri, 11 Feb 2005 18:40:24 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 495C943D45 for ; Fri, 11 Feb 2005 18:40:24 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id j1BIeO3B046126 for ; Fri, 11 Feb 2005 18:40:24 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id j1BIeOKU046125; Fri, 11 Feb 2005 18:40:24 GMT (envelope-from gnats) Date: Fri, 11 Feb 2005 18:40:24 GMT Message-Id: <200502111840.j1BIeOKU046125@freefall.freebsd.org> To: freebsd-java@FreeBSD.org From: Anthony Ginepro Subject: Re: java/77162: Tomcat5 regression with jdk15-p1 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Anthony Ginepro List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Feb 2005 18:40:24 -0000 The following reply was made to PR java/77162; it has been noted by GNATS. From: Anthony Ginepro To: freebsd-gnats-submit@FreeBSD.org, phantom@FreeBSD.org.ua Cc: Subject: Re: java/77162: Tomcat5 regression with jdk15-p1 Date: Fri, 11 Feb 2005 19:34:00 +0100 Hi Alexey, Thanks for your patch it perfectly corrected my problem, now tomcat under jdk15-p1 performance is on par with jdk15-exp ! I looked at both startup time and jsp execution times. Anthony. From owner-freebsd-java@FreeBSD.ORG Sat Feb 12 00:47:31 2005 Return-Path: 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 8BC2116A4CE; Sat, 12 Feb 2005 00:47:31 +0000 (GMT) Received: from melon.pingpong.net (82.milagro.bahnhof.net [195.178.168.82]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3D1CB43D45; Sat, 12 Feb 2005 00:47:31 +0000 (GMT) (envelope-from girgen@FreeBSD.org) Received: from localhost (localhost.pingpong.net [127.0.0.1]) by melon.pingpong.net (Postfix) with ESMTP id 4535D4AC98; Sat, 12 Feb 2005 01:47:30 +0100 (CET) Received: from melon.pingpong.net ([127.0.0.1]) by localhost (melon.pingpong.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 67638-02; Sat, 12 Feb 2005 01:47:30 +0100 (CET) Received: from palle.girgensohn.se (1-2-8-5a.asp.sth.bostream.se [82.182.157.66]) by melon.pingpong.net (Postfix) with ESMTP id 0A7E04AC33; Sat, 12 Feb 2005 01:47:30 +0100 (CET) Date: Sat, 12 Feb 2005 01:47:29 +0100 From: Palle Girgensohn To: freebsd-java@freebsd.org, freebsd-amd64@freebsd.org Message-ID: <1B49ACBB4A9C57A2665FA14C@palle.girgensohn.se> X-Mailer: Mulberry/3.1.6 (Linux/x86) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: by amavisd-new at pingpong.net Subject: 32-bit jdk1.4.2 on amd64? X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Feb 2005 00:47:31 -0000 Hi! I'd like to get java running on an amd64, and not wanting to experiment with 1.5.0 just yet, I'd rather run the jdk-1.4.2 in 32-bit mode. How can I do this? $ /usr/local/jdk1.4.2/bin/java /libexec/ld-elf.so.1: /usr/lib32/libpthread.so.1: Undefined symbol "i386_set_ldt" $ uname -a FreeBSD hostname 5.3-STABLE FreeBSD 5.3-STABLE #2: Thu Dec 9 03:30:27 CET 2004 girgen@hostname:/usr/obj/usr/src/sys/MELON amd64 make.conf has WITH_LIB32=YES Any ideas welcome, Palle From owner-freebsd-java@FreeBSD.ORG Sat Feb 12 07:53:23 2005 Return-Path: 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 869AD16A4CE; Sat, 12 Feb 2005 07:53:23 +0000 (GMT) Received: from dragon.nuxi.com (trang.nuxi.com [66.93.134.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id 33FEF43D3F; Sat, 12 Feb 2005 07:53:23 +0000 (GMT) (envelope-from obrien@NUXI.com) Received: from dragon.nuxi.com (obrien@localhost [127.0.0.1]) by dragon.nuxi.com (8.13.1/8.13.1) with ESMTP id j1C7rMgt083073; Fri, 11 Feb 2005 23:53:22 -0800 (PST) (envelope-from obrien@dragon.nuxi.com) Received: (from obrien@localhost) by dragon.nuxi.com (8.13.1/8.13.1/Submit) id j1C7rMKY083072; Fri, 11 Feb 2005 23:53:22 -0800 (PST) (envelope-from obrien) Date: Fri, 11 Feb 2005 23:53:22 -0800 From: "David O'Brien" To: Palle Girgensohn Message-ID: <20050212075322.GB68054@dragon.nuxi.com> References: <1B49ACBB4A9C57A2665FA14C@palle.girgensohn.se> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1B49ACBB4A9C57A2665FA14C@palle.girgensohn.se> User-Agent: Mutt/1.4.1i X-Operating-System: FreeBSD 6.0-CURRENT Organization: The NUXI BSD Group X-Pgp-Rsa-Fingerprint: B7 4D 3E E9 11 39 5F A3 90 76 5D 69 58 D9 98 7A X-Pgp-Rsa-Keyid: 1024/34F9F9D5 cc: freebsd-amd64@FreeBSD.org cc: freebsd-java@FreeBSD.org Subject: Re: 32-bit jdk1.4.2 on amd64? X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: freebsd-java@FreeBSD.org, freebsd-amd64@FreeBSD.org List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Feb 2005 07:53:23 -0000 On Sat, Feb 12, 2005 at 01:47:29AM +0100, Palle Girgensohn wrote: > I'd like to get java running on an amd64, and not wanting to experiment > with 1.5.0 just yet, I'd rather run the jdk-1.4.2 in 32-bit mode. How can I > do this? .. > Any ideas welcome, You might have better luck running the 32-bit Linux jdk 1.4.2. See the mailing list archives -- search for "i386_set_ldt". This has become an FAQ and has been discussed several times. -- -- David (obrien@FreeBSD.org) From owner-freebsd-java@FreeBSD.ORG Sat Feb 12 10:12:00 2005 Return-Path: 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 E054E16A4CE; Sat, 12 Feb 2005 10:12:00 +0000 (GMT) Received: from melon.pingpong.net (82.milagro.bahnhof.net [195.178.168.82]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4A89143D45; Sat, 12 Feb 2005 10:11:58 +0000 (GMT) (envelope-from girgen@FreeBSD.org) Received: from localhost (localhost.pingpong.net [127.0.0.1]) by melon.pingpong.net (Postfix) with ESMTP id A7E9C4ACB6; Sat, 12 Feb 2005 11:11:56 +0100 (CET) Received: from melon.pingpong.net ([127.0.0.1]) by localhost (melon.pingpong.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 58764-01-7; Sat, 12 Feb 2005 11:11:56 +0100 (CET) Received: from palle.girgensohn.se (1-2-8-5a.asp.sth.bostream.se [82.182.157.66]) by melon.pingpong.net (Postfix) with ESMTP id 0E14B4ACA1; Sat, 12 Feb 2005 11:11:55 +0100 (CET) Date: Sat, 12 Feb 2005 11:11:55 +0100 From: Palle Girgensohn To: freebsd-java@FreeBSD.org Message-ID: In-Reply-To: <20050212075322.GB68054@dragon.nuxi.com> References: <1B49ACBB4A9C57A2665FA14C@palle.girgensohn.se> <20050212075322.GB68054@dragon.nuxi.com> X-Mailer: Mulberry/3.1.6 (Linux/x86) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: by amavisd-new at pingpong.net cc: dR cc: freebsd-amd64@FreeBSD.org cc: freebsd-java@FreeBSD.org Subject: Re: 32-bit jdk1.4.2 on amd64? X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Feb 2005 10:12:01 -0000 --On fredag, februari 11, 2005 23.53.22 -0800 David O'Brien wrote: > On Sat, Feb 12, 2005 at 01:47:29AM +0100, Palle Girgensohn wrote: >> I'd like to get java running on an amd64, and not wanting to experiment >> with 1.5.0 just yet, I'd rather run the jdk-1.4.2 in 32-bit mode. How >> can I do this? > .. >> Any ideas welcome, > > You might have better luck running the 32-bit Linux jdk 1.4.2. > See the mailing list archives -- search for "i386_set_ldt". This has > become an FAQ and has been discussed several times. > > -- > -- David (obrien@FreeBSD.org) You guessed it, since I forgot to mention, I've installed a 32-bit native package built in i386. OK, so linux version would be stable enough to run tomcat? Fine I'll try that. Thanks. /Palle From owner-freebsd-java@FreeBSD.ORG Sat Feb 12 11:31:16 2005 Return-Path: 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 76F7216A4CE for ; Sat, 12 Feb 2005 11:31:16 +0000 (GMT) Received: from dirg.bris.ac.uk (dirg.bris.ac.uk [137.222.10.102]) by mx1.FreeBSD.org (Postfix) with ESMTP id F386A43D53 for ; Sat, 12 Feb 2005 11:31:15 +0000 (GMT) (envelope-from Jan.Grant@bristol.ac.uk) Received: from mail.ilrt.bris.ac.uk ([137.222.16.62]) by dirg.bris.ac.uk with esmtp (Exim 4.44) id 1CzvUX-0001o5-Po for freebsd-java@freebsd.org; Sat, 12 Feb 2005 11:31:15 +0000 Received: from cmjg (helo=localhost) by mail.ilrt.bris.ac.uk with local-esmtp (Exim 4.44) id 1CzvUX-0006qi-82; Sat, 12 Feb 2005 11:31:13 +0000 Date: Sat, 12 Feb 2005 11:31:13 +0000 (GMT) From: Jan Grant X-X-Sender: cmjg@mail.ilrt.bris.ac.uk To: freebsd-java@freebsd.org Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: Jan Grant X-Spam-Score: -2.8 X-Spam-Level: -- Subject: General security issue with tomcat, jboss (possibly other java ports)? X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Feb 2005 11:31:16 -0000 Just noticed that the ports appear to install every tomcat, jboss4, etc, file under /usr/local with ownership www:www; these include the suid tomcat50ctl and jboss4ctl. Since that's the user that the actual jboss, tomcat etc process are launched as (by default), the www user, that struck me as a little risky. That's ok, though, because each of these come with a security policy: [[ > cat /usr/local/jboss4/server/default/conf/server.policy /// ====================================================================== /// // // // JBoss Security Policy // // // /// ====================================================================== /// // $Id: server.policy,v 1.4 2003/08/27 04:31:53 patriot1burke Exp $ grant { // Allow everything for now permission java.security.AllPermission; }; ]] In short, in the spirit of defence in depth, I think more careful use of unix file permissions should be made when installing this software: that is, root:wheel (as is common elsewhere throughout the ports-installed stuff: eg, apache2, which commonly runs as the www:www user). This is especially the case with a server like jboss which permits the dynamic uploading and deployment of new services. Whilst we're at it, I was under the impression that www:www was intended to be a web-process-only (or apache-only) user/group - that is, that only web servicing processes should be in the www group. Looking at jboss4ctl, tomcat50ctl, it appears that these ports extend the semantics of the www group to include "users who should be able to control these web processes". It's not difficult to add a second wwwctl, tomcat50ctl, jboss4ctl, etc group and have the *ctl utilities honour that group membership instead: or alternatively, to simply follow the apache port and require root privileges (or appropriate sudo configuration) to control this server port. Indeed, it's not quite clear why the tomcat, jboss etc. ports reuse this user and group when the creation of new ones is pretty trivial. It's worthwhile pointing out that the security issues with having the jboss stuff in www:www work in the other direction, too: a compromise of (say) a PHP script under apache would permit the modification of the jboss startup scripts in /usr/local/jboss4/bin. If it's simpler I can file a PR with this; thought Id just raise it here first, though, since the fixes are generally pretty straightforward, and I might have missed an obvious reason for doing things this way. Cheers, jan -- jan grant, ILRT, University of Bristol. http://www.ilrt.bris.ac.uk/ Tel +44(0)117 9287864 or +44 (0)117 9287088 http://ioctl.org/jan/ "...perl has been dead for more than 4 years." - Abigail in the Monastery