From owner-freebsd-java@FreeBSD.ORG Thu Aug 7 13:39:05 2008 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 658A81065691 for ; Thu, 7 Aug 2008 13:39:05 +0000 (UTC) (envelope-from bofh@redwerk.com) Received: from office.redwerk.com (office.redwerk.com [85.90.206.104]) by mx1.freebsd.org (Postfix) with ESMTP id 02AE18FC1B for ; Thu, 7 Aug 2008 13:39:03 +0000 (UTC) (envelope-from bofh@redwerk.com) Received: from bofh by office.redwerk.com with local (Exim 4.69 (FreeBSD)) (envelope-from ) id 1KR56P-0002u6-MJ for freebsd-java@freebsd.org; Thu, 07 Aug 2008 16:00:25 +0300 Date: Thu, 7 Aug 2008 16:00:25 +0300 From: Eugeny N Dzhurinsky To: freebsd-java@freebsd.org Message-ID: <20080807130025.GC10350@office.redwerk.com> Mail-Followup-To: freebsd-java@freebsd.org References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="8NvZYKFJsRX2Djef" Content-Disposition: inline In-Reply-To: Subject: Re: How to increase java heap size 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, 07 Aug 2008 13:39:05 -0000 --8NvZYKFJsRX2Djef Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Aug 07, 2008 at 03:03:23PM +0300, thadeo.mutta@lafarge-tz.lafarge.c= om wrote: >=20 > Hello. > Please help as I am getting error message at my SQL server complaining on > java.lang.outofMemory Please find out where the java process is started in scripts, then search f= or lines like "-Xms" (minimal memory size) "-Xmx" (maximal memory size) and tu= ne it.=20 For example, to grant 256MB of heap to Java use -Xmx256m. If you will not f= ind any=20 of these options, just find where the java executable is defined in scripts= and then=20 append the -Xmx right after the executable name to tell Java the new value = for heap=20 size. --=20 Eugene N Dzhurinsky --8NvZYKFJsRX2Djef Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAkia8egACgkQy/i/DoZLbHxH4ACgseyDF4LsznfDPgPPQu20nG8C iY0AnRcssCnfdAS3+nWrynC7Z+xv5Aol =lfjD -----END PGP SIGNATURE----- --8NvZYKFJsRX2Djef--