Adding Swap Space on a Linux System
Unable to allocate physical memory during WLS start will be resolved by adding more SWAP space as below:
- Become a superuser (root) by typing:
- Create a file in a selected directory to add swap space by typing:
where dir is a directory in which you have permission to add swap space. The myswapfile is the name of the swap file you are creating. The number_blocks_needed is an amount of 1024-byte blocks you want to create. See the dd(1) man page for more information.
- Verify that the file was created by typing:
The new file appears in the directory.
- Initialize the new swap area by typing:
See the mkswap(8) man page for more detailed information.
- Run the swapon command to enable the new swap space for paging and swapping by typing the following:
- Verify that the extra swap space was added by typing:
The output shows the allocated swap space.
IN SHORT FOLLOWING COMMANDS NEED TO BE EXECUTED :
dd if=/dev/zero of=/oraprod/myswapfile bs=2G count=5
ls -lhrt /oraprod/myswapfile
[root@shsebs121mt002 ~]# mkswap /oraprod/myswapfile
Setting up swapspace version 1, size = 10485736 KiB
no label, UUID=6eaf7636-9f19-4376-8a7e-5090bc4a3b40
chmod 600 /oraprod/myswapfile
swapon -a /oraprod/myswapfile
swapon -s
dd if=/dev/zero of=/orastage/myswapfile bs=2G count=5
Comments
Post a Comment