Memory problems
Christian Gross
yellowdog-general@lists.terrasoftsolutions.com
Sat May 11 22:37:01 2002
THanks for your help. Everything worked as stated (except you need
/sbin/mkswap, but that is a minor detail). However it still did not solve
anything. I already had a swap area and expanded it to about 600MB. I am
wondering if there is something in the YDL 2.2 memory allocation or
something like that that is causing things not to work. Meaning that this
a problem within the java runtime.
One quick question. I would like to test a theory, but I was wondering how
to I stop X. I keep trying to kill it and it just restarts. I am thinking
that maybe X is taking too much memory and just see if java runs at
all. What do I need to do?
Christian Gross
At 19:45 11/05/2002 -0700, Timothy A. Seufert wrote:
>At 2:16 AM +0200 5/12/02, Christian Gross wrote:
>>I have installed YDL 2.2 yesterday and I have some major problems. I use
>>java and it gives me out of memory exceptions. I looked at my RAM and it
>>seems most of it 126 MB of 128 MB are used. How do I control this? This
>>worked with YDL 2.1 without problems.
>
>Do you have a swap partition? If so, is it really active? To check, use
>the 'free' command; you should see some swap space listed, like this:
>
>$ free
> total used free shared buffers cached
>Mem: 77564 73212 4352 0 1704 54420
>-/+ buffers/cache: 17088 60476
>Swap: 262136 124 262012
>
>If you have the same physical RAM and swap active as with YDL 2.1, it is
>probably a matter of something in YDL 2.2 taking up more memory than
>before, pushing you into out-of-memory. To test this theory, you can add
>some temporary extra swap space. Use the 'dd' and 'mkswap' tools to set
>up an additional swap file and 'swapon' to activate it. In the example
>below I create and activate a 16MB swap file on the same computer I used
>for the example 'free' output above.
>
>(Note that you must be root to run the 'swapon' command, and the swap file
>will only remain in use until you reboot Linux. To make it more permanent
>you can set up a /etc/fstab entry for your swap file.)
>
>[root@localhost /root]# dd if=/dev/zero of=swapfile bs=1M count=16
>16+0 records in
>16+0 records out
>[root@localhost /root]# mkswap swapfile
>Setting up swapspace version 1, size = 16773120 bytes
>[root@localhost /root]# swapon swapfile
>[root@localhost /root]# free
> total used free shared buffers cached
>Mem: 77564 66880 10684 0 1604 49112
>-/+ buffers/cache: 16164 61400
>Swap: 278512 124 278388
>
>--
>Tim Seufert
>_______________________________________________
>yellowdog-general mailing list
>yellowdog-general@lists.terrasoftsolutions.com
>http://lists.terrasoftsolutions.com/mailman/listinfo/yellowdog-general
Christian Gross
Software Engineering Consultant
http://www.devspace.com
North America: 1-450-675-4208
Europe +41.1.701.1166