X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from ncopa-desktop.alpinelinux.org (3.203.202.84.customer.cdi.no [84.202.203.3]) (using SSLv3 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: nc@alpinelinux.org) by mail.alpinelinux.org (Postfix) with ESMTPSA id EC668DC00AC; Tue, 28 May 2013 12:31:15 +0000 (UTC) Date: Tue, 28 May 2013 14:31:12 +0200 From: Natanael Copa To: Richard Johnson Cc: alpine-devel@lists.alpinelinux.org Subject: Re: [alpine-devel] Java Runtime Environment on Alpine Linux Message-ID: <20130528143112.06aa6e7a@ncopa-desktop.alpinelinux.org> In-Reply-To: <51A48FE2.1070103@qq.com> References: <51A48FE2.1070103@qq.com> X-Mailer: Claws Mail 3.9.1 (GTK+ 2.24.17; x86_64-unknown-linux-gnu) X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Tue, 28 May 2013 15:37:14 +0430 Richard Johnson wrote: > Just recently I installed the package "openjdk6-jre-base" on Alpine Linux, and I tried to run a precompiled class file, which resulted in the following error: > Error occurred during initialization of VM > Could not reserve enough space for object heap > > More Details: > - I have installed this instance of alpine from alpine-xen-2.6.0_rc3-x86_64.iso, However I did "apk upgrade" just after installing the JRE. > - I am running Java in dom0 > - I have allocated more than 800MB for dom0 > - Even when running trivial commands such as "java -version" I get the same error message > - My goal is to run a Swing application in the X environment > > Is there any solution/workaround? hm, it works for me. ncopa-desktop:~$ java -version java version "1.6.0_24" OpenJDK Runtime Environment (IcedTea6 1.11.11) (Alpine 1.6.0_p24-r7) OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode) I know that java (the JIT specificically) and PaX does not go well together. We do disable pax protection on java binaries but it might be that something slipped through. try see what paxctl tells you about the binaries: paxctl -v /usr/lib/jvm/java-1.6-openjdk/bin/* paxctl -v /usr/lib/jvm/java-1.6-openjdk/jre/bin/* You should see things like: - PaX flags: -----m-x-e-r [/usr/lib/jvm/java-1.6-openjdk/bin/java] MPROTECT is disabled RANDEXEC is disabled EMUTRAMP is disabled RANDMMAP is disabled -nc --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---