Out of memory running IBM JavaVM 1.3.1

Samuel Flory yellowdog-newbie@lists.terrasoftsolutions.com
Tue, 22 Oct 2002 12:03:35 -0700


Stephen Luce wrote:

> I am running a text mode (Non X) YDL 2.3 on an 8500 with 80mb ram and 
> a 128mb swap partition.
>
> When I try to launch java I get an out of memory error. I’m not trying 
> to launch any Java classes. Just the java VM. I’m expecting the java 
> usage message.
>
> Should I try using the Blackdown.org java?
>
> Or should I try creating a larger swap partition? Increasing the size 
> of my swap partition will require a full reinstall.
>
> Will either of these work?
>
It depends on what is really occuring. You can always create a swap file 
by hand. If it works and you like it you can simply put it in your fstab.

[root@sflory root]# dd if=/dev/zero of=bigfile bs=1024 count=100000
100000+0 records in
100000+0 records out
[root@sflory root]# du -sh bigfile
98M bigfile
[root@sflory root]# free
total used free shared buffers cached
Mem: 513736 505424 8312 0 19128 347128
-/+ buffers/cache: 139168 374568
Swap: 1734972 93788 1641184
[root@sflory root]# mkswap bigfile
Setting up swapspace version 1, size = 99996 KiB
[root@sflory root]# swapon bigfile
[root@sflory root]# free
total used free shared buffers cached
Mem: 513736 505424 8312 0 19168 347040
-/+ buffers/cache: 139216 374520
Swap: 1834964 93780 1741184