Adding virtual memory in Linux solves the problem of insufficient swap space

Source: Internet
Author: User

1. view the current virtual memory
[root @ centos RPM] # Free-M
total used free shared buffers cached
mem: 1518 530 987 0 19 406
-/+ buffers/cache: 104 1413
swap: 2047 0 2047

2. view the current file system information
[Root @ centos RPM] # DF-H
Filesystem size used avail use % mounted on
/Dev/sda1 7.9 GB 2.9g 4.7G 39%/
None 760 m 0 760 m 0%/dev/SHM
/Dev/sda3 1004 M 276 M 678 M 29%/tmp
/Dev/sda6 5.0g 44 m 4.7G 1%/u01
/Dev/sda5 4.0g 3.6g 199 m 95%/u02

3. Increase the current swap space from 2274 MB to 227 MB, and add a MB swap file.
[Root @ centos RPM] # dd If =/dev/Zero of =/swap_increased BS = 1024 COUNT = 235000
235000 + 0 records in
235000 + 0 records out

4. Run the following command to add and enable the virtual memory.
[Root @ centos RPM] # mkswap/swap_increased
Setting up swapspace version 1, size = 240635 KB
[Root @ centos RPM] # Swapon/swap_increased
[Root @ centos RPM] # Free-m
Total used free shared buffers cached
Mem: 1518 765 752 0 20 635
-/+ Buffers/cache: 108 1409
Swap: 2276 0 2276

5. Install Oracle Database 11g
Xmanager
Netca

Dbca

For reprint, please indicate the source and original article links:

Http://blog.csdn.net/xiangsir/article/details/8570404

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.