From owner-freebsd-java@FreeBSD.ORG Mon Jul 20 11:06:59 2009 Return-Path: Delivered-To: freebsd-java@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4C5CF106566B for ; Mon, 20 Jul 2009 11:06:59 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 1F7DD8FC0A for ; Mon, 20 Jul 2009 11:06:59 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n6KB6xqf002346 for ; Mon, 20 Jul 2009 11:06:59 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n6KB6wXO002342 for freebsd-java@FreeBSD.org; Mon, 20 Jul 2009 11:06:58 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 20 Jul 2009 11:06:58 GMT Message-Id: <200907201106.n6KB6wXO002342@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-java@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-java@FreeBSD.org 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, 20 Jul 2009 11:06:59 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o ports/135002 java don't make in /usr/ports/net-im/openfire o java/128948 java java/jdk16 built from source can't bind a socket, but o java/128809 java JVM aborted when GNU RXTX write to serial port. o java/125583 java Java gui programs stop without error message o java/123555 java linux-sun-jdk15, linux-sun-jdk16 produce a coredump o java/122513 java native JDKs unbuildable with Linux ones o java/121692 java java/jdk16: Java 1.5 1.5.0.14p8 crashes in RMI TCP Con o ports/121420 java java/jdk16: Java applet fails to find class under fire o ports/121416 java java/jdk15 can't build if BIN environment variable is o ports/120372 java java/linux-sun-jdk16: linux-sun-jre1.6.0 plugin doesn' o java/120146 java java/jdk15: netbeans 6.0 causes java core dump on amd6 o ports/119732 java java/linux-sun-jre16: linux-sun-jre16 plugin doesn't w o java/119063 java An unexpected error has been detected by Java Runtime o java/118956 java eclipse and netbeans break on diablo-jdk15 o java/118496 java Eclipse packages do not work with 6.3-RC1/amd64 o ports/116841 java cannot build java/jdk16 by using java/linux-sun-jdk16 o java/116667 java linux-sun-javac1.4 hangs on SMP o ports/116082 java java/linux-sun-jdk16 jconsole is unable to connect to o java/115773 java [request] java.nio channel selectors should use kqueue o java/114644 java tomcat goes out of PermSpace, jvm crashes o ports/113751 java java/linux-sun-jdk15: linux-sun-jdk-1.5.0.12,2 - java o ports/113467 java Multiple "missing return value" errors building JDK on o java/112595 java Java appletviewer frequently hangs (kse_release loop) o java/110912 java Java krb5 client leaks UDP connections f java/105482 java diablo-jdk1.5.0/jdk-1.5.0 java.nio.Selector bug o java/97461 java Diablo JDK does not report Update level in a format su o ports/84742 java make ports/java/jdk14 use dynamic Motif librarires s java/62837 java linux-sun-jdk14 executables hang with COMPAT_LINUX in s ports/56928 java jce-aba port should install to $JAVA_HOME/jre/lib/ext 29 problems total. From owner-freebsd-java@FreeBSD.ORG Thu Jul 23 10:47:08 2009 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 543FE1065672 for ; Thu, 23 Jul 2009 10:47:08 +0000 (UTC) (envelope-from artemciy@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.153]) by mx1.freebsd.org (Postfix) with ESMTP id D3FD48FC13 for ; Thu, 23 Jul 2009 10:47:07 +0000 (UTC) (envelope-from artemciy@gmail.com) Received: by fg-out-1718.google.com with SMTP id 13so229639fge.12 for ; Thu, 23 Jul 2009 03:47:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=JV9uoKDT8e9pUidQoEuC1eVWCIVtvoDb6Jw/x4SRX4o=; b=KNahH4QeiFiObQ3fnumJSMM5Da/QzPvmSsz6jIStNUwONZspjDVy+L6WLSg5P+B64R s8wSqb9wOMNep882Gd6QfxhwcI139PKRKlG976DEOba3gcX+QrXcKF0Nkmhxuok98vjX YQe7zXyOV4i9uAcOju2xjQLNtw/EMHMmnm39s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=SRjpl7kskX3fLBVixbtiC1vVjC6yR4PrqKtRK19vAq90Bf3eUE/YMcc2nIMFnX0Wp8 T6LXrKCrR9kXzP4tgj3GGE5uXn5LxagZ8Ja4po32JxMKtFTtZOxJfDxlmzbivuY/zJj+ ND7cwOj7g/uIe9h8mGUDeiuKvRNQQxQ4c+CT0= Received: by 10.86.89.6 with SMTP id m6mr1748277fgb.1.1248346026916; Thu, 23 Jul 2009 03:47:06 -0700 (PDT) Received: from ?192.168.1.4? ([77.232.13.65]) by mx.google.com with ESMTPS id l19sm3892490fgb.6.2009.07.23.03.47.06 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 23 Jul 2009 03:47:06 -0700 (PDT) Message-ID: <4A683FA8.2080902@gmail.com> Date: Thu, 23 Jul 2009 14:47:04 +0400 From: ArtemGr User-Agent: Thunderbird 2.0.0.22 (X11/20090721) MIME-Version: 1.0 To: freebsd-java@freebsd.org References: <4A683C8F.3030608@gmail.com> In-Reply-To: <4A683C8F.3030608@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: file size growth on FileChannel.map 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, 23 Jul 2009 10:47:08 -0000 ArtemGr wrote: > When I use a FileChannel.map several times to map a large region into > memory, the file size suddenly increase. > The mapped region is always withing the file, e.g. always less than > FileChannel.position! Sorry, my bad! Gave position instead of length for the third argument of "map"... From owner-freebsd-java@FreeBSD.ORG Thu Jul 23 11:04:08 2009 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A6249106566B for ; Thu, 23 Jul 2009 11:04:08 +0000 (UTC) (envelope-from artemciy@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.152]) by mx1.freebsd.org (Postfix) with ESMTP id 346D68FC1C for ; Thu, 23 Jul 2009 11:04:07 +0000 (UTC) (envelope-from artemciy@gmail.com) Received: by fg-out-1718.google.com with SMTP id 13so232121fge.12 for ; Thu, 23 Jul 2009 04:04:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:content-type :content-transfer-encoding; bh=MmSjjlhBhjqQ/g/5zUoCSAXnBPn/S6hUNh3fVv1V/Hw=; b=GnYnMBGAoWR4P82C5rDPyPsTaVAlZROOa+TscjLJRa01gjPLA3Hus7rBAYpP62H+jC rbe+lQXGaN3lD4GubPH1kVLCt7KVM58vIBmx+Q1jba83t3SxSzYNyDXydSjPtyrIh8ON scgcGn++DLKAYbM2T/NTi4encIWzb884tHfZs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=eceGCQg160mKy42oy5ErbIsiwV2xAFElXdFTs3i7WAKZSqZP07p8Z39by4CFd01G7x rg46BXcWc9LXzYYgW/cNtzY9MV9af8bVUnlPa37mThMkidALk4lkUBKKS4DvnmpbyH97 0YF60IJiDj2sWALskh7SwG9gVE2dVBam+Hkhk= Received: by 10.86.98.18 with SMTP id v18mr1771188fgb.13.1248345234357; Thu, 23 Jul 2009 03:33:54 -0700 (PDT) Received: from ?192.168.1.4? ([77.232.13.65]) by mx.google.com with ESMTPS id l12sm19370783fgb.13.2009.07.23.03.33.53 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 23 Jul 2009 03:33:54 -0700 (PDT) Message-ID: <4A683C8F.3030608@gmail.com> Date: Thu, 23 Jul 2009 14:33:51 +0400 From: ArtemGr User-Agent: Thunderbird 2.0.0.22 (X11/20090721) MIME-Version: 1.0 To: freebsd-java@freebsd.org Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: file size growth on FileChannel.map 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, 23 Jul 2009 11:04:11 -0000 When I use a FileChannel.map several times to map a large region into memory, the file size suddenly increase. The mapped region is always withing the file, e.g. always less than FileChannel.position! I monitored FileChannel.position and FileChannel.size: FileChannel.position stays the same, yet FileChannel.size increases after mapping. The file itself increases too, with the new space containing all zeroes. The increase is large, tens and hundreds of megabytes. I had my files grow to several gigabytes just by mmaping regions of them. I don't think it is an expected behaviour, AFAIK. FreeBSD mmap might return a larger portion of memory to match a page size, but it isn't supposed to grow the underlying file. Therefore I suspect it might be a bug in (FreeBSD version of) the JDK. I encountered the problem on 7.2-RELEASE amd64, openjdk version "1.6.0-internal", ZFS and 7.2-STABLE (May 25) amd64, java version "1.6.0_07", UFS2 Had anybody seen such behaviour from FileChannel.map? Am I right supposing it shouldn't grow the file? Should I investigate further?