Subject: Re: How to globally increase maximum data segment size?
To: Chris <humptymoo@gmail.com>
From: Andrew Doran <ad@netbsd.org>
List: netbsd-users
Date: 06/19/2007 10:33:02
On Tue, Jun 19, 2007 at 10:01:14AM +0100, Chris wrote:

> I'm trying to run a Java application, but it fails with an out of
> memory exception. On a Linux box, I
> can see that it's using almost 1Gb of memory:
> 
>                                   VIRT   RES    SHR
> 27726 root      25   0 1021m 558m  14m S    0 22.0  96:02.11 java
> 
> I've tried to increase the various limits on my NetBSD box using
> /etc/login.conf, but it appears
> that the hard limits compiled into the GENERIC kernel (it's netbsd-4
> from a recent daily build),
> are too low. Reading options(4) I see that I can set various options
> such as MAXDSIZ and
> build a custom kernel. I was wondering what options I would need to
> set, and what to set the
> to, in order to ensure that a process like the one shown above would
> run on my NetBSD box.

Are you running a native JVM or a Linux JVM? Have you tried altering the
memory options to Java (for example -ms64m -mx256m)?

Andrew