From owner-freebsd-java@FreeBSD.ORG Fri Dec 13 20:02:58 2013 Return-Path: Delivered-To: java@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 32841613 for ; Fri, 13 Dec 2013 20:02:58 +0000 (UTC) Received: from smtp.rcn.com (smtp.rcn.com [69.168.97.78]) by mx1.freebsd.org (Postfix) with ESMTP id D8D551765 for ; Fri, 13 Dec 2013 20:02:57 +0000 (UTC) X_CMAE_Category: 0,0 Undefined,Undefined X-CNFS-Analysis: v=2.1 cv=caPr8BzM c=1 sm=0 tr=0 a=fEl05wXzeJCkBz9gs2itqQ==:117 a=fEl05wXzeJCkBz9gs2itqQ==:17 a=K-v-2zaBAAAA:8 a=N1DYviGaBlcA:10 a=rwWR8M-SXMwA:10 a=YNqtyO0l_hcA:10 a=LaogzpLLAAAA:8 a=hBFbeQkNOwAA:10 a=r77TgQKjGQsHNAKrUKIA:9 a=9iDbn-4jx3cA:10 a=cKsnjEOsciEA:10 a=uLNmW0lR86XZhRP1oFYA:9 a=wPNLvfGTeEIA:10 a=5BlJD4dB-iLggilZ-rIA:9 a=VFrm-V2OJxTIJ8oJ:21 a=_W_S_7VecoQA:10 X-CM-Score: 0 X-Scanned-by: Cloudmark Authority Engine Authentication-Results: smtp01.rcn.cmh.synacor.com header.from=mi+thun@aldan.algebra.com; sender-id=neutral Authentication-Results: smtp01.rcn.cmh.synacor.com smtp.mail=mi+thun@aldan.algebra.com; spf=neutral; sender-id=neutral Authentication-Results: smtp01.rcn.cmh.synacor.com smtp.user=anat; auth=pass (PLAIN) Received-SPF: neutral (smtp01.rcn.cmh.synacor.com: 209.6.63.29 is neither permitted nor denied by domain of aldan.algebra.com) Received: from [209.6.63.29] ([209.6.63.29:26197] helo=utka.zajac) by smtp.rcn.com (envelope-from ) (ecelerity 2.2.3.49 r(42060/42061)) with ESMTPA id DC/C4-24449-0F76BA25; Fri, 13 Dec 2013 15:02:56 -0500 Message-ID: <52AB67F0.4030805@aldan.algebra.com> Date: Fri, 13 Dec 2013 15:02:56 -0500 From: "Mikhail T." User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:24.0) Gecko/20100101 Thunderbird/24.0 MIME-Version: 1.0 To: java@FreeBSD.org Subject: java not starting without explicit maximum memory flag Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.17 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Dec 2013 20:02:58 -0000 Hello! I'm facing this problem on my 9.2/i386 box -- java (neither 1.7 nor 1.6) would even start, unless I explicitly provide the maximum memory flag (such as -mx). For example: % java -version Error occurred during initialization of VM Could not reserve enough space for object heap Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit. with the flag -- even with very small limit -- the program starts: % java -mx2m -version openjdk version "1.7.0_25" OpenJDK Runtime Environment (build 1.7.0_25-b15) OpenJDK Server VM (build 23.21-b01, mixed mode) It is the same with the 1.6: % /opt/jdk1.6.0/bin/java -version Error occurred during initialization of VM Could not reserve enough space for object heap Could not create the Java virtual machine vs. % /opt/jdk1.6.0/bin/java -mx2m -version java version "1.6.0_03-p4" Java(TM) SE Runtime Environment (build 1.6.0_03-p4-mi_29_dec_2010_17_46-b00) Java HotSpot(TM) Server VM (build 1.6.0_03-p4-mi_29_dec_2010_17_46-b00, mixed mode) It is so bad, I can't even rebuild the JDK port because of this same problem. What's happening? Given that it affects both 1.6 and 1.7, I suspect, something is wrong with my system, but non-java apps seem fine. What can it be? Thanks! -mi