- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- swap memory almost full
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-06-2003 06:47 PM
тАО08-06-2003 06:47 PM
kb kb kb pct
TYPE AVAIL USED FREE USED
dev 1048576 957632 90944 91%
reserve - 90944 -90944
memory 372408 351572 20836 94%
As you can see, the swap space is more than 90%.
How can I decrease the swapspace usage without rebooting the machine?
How can I identify any applications or process which caused the swap space to be filled.
Thanks in advance.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-06-2003 06:54 PM
тАО08-06-2003 06:54 PM
SolutionBut swap is reserved, it might not all be in use.
You can decrease swap usage by lowering the load on the machine. Specifically, the number of proccess running.
Every time a process is spawned memory is reserved for it.
If you have an oracle database open but not in use, shut it down, that will help.
The only way to reduce swap usage is to reduce the number of processes open.
You can sit at 90% forever and its not going to hurt that much.
You might want to collect a little performance data. I'm attaching a script that might help with that.
It runs background, puts it output into /tmp and you want to look at the swap information.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-06-2003 06:54 PM
тАО08-06-2003 06:54 PM
Re: swap memory almost full
If you have Glance installed, you can use it to see which processes have a lot of memory reserved, and terminate those processes that you can. You could also add some more swap on the fly if you have the disk space, and if you can't find any suitable process candidates to terminate.
JP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-06-2003 06:57 PM
тАО08-06-2003 06:57 PM
Re: swap memory almost full
swapinfo -tam
I think I made a mistake, but swap seems three times physical memory already. Increasing swap might slow the box down too much.
Is this box running at a high load factor?
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-06-2003 06:59 PM
тАО08-06-2003 06:59 PM
Re: swap memory almost full
With that much swap being used, your machine is probably performing very poorly.
As suggested, use glance, or some other tool, to determine what programs are using the most memory and stop them.
I would highly suggest that you look into getting some more RAM for this machine. 3rd party RAM is very reasonably priced and works just fine. I have used Kingston and not had any problems.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-06-2003 07:01 PM
тАО08-06-2003 07:01 PM
Re: swap memory almost full
If the process cannot find space in memory,the less recently used space from memory are transfered to SWAP space.
So if you have a big usage of swaps mean your memory are very busy and a lot of swapping are done.
I guest the right way is to increase your memory.
regards
mB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-06-2003 07:08 PM
тАО08-06-2003 07:08 PM
Re: swap memory almost full
In case you are looking.
If you want to learn about webhosting, post a thread. My reply to you was in a doomed thread.
Apologies to owner. Zero points this post please.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-06-2003 07:11 PM
тАО08-06-2003 07:11 PM
Re: swap memory almost full
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-06-2003 07:40 PM
тАО08-06-2003 07:40 PM
Re: swap memory almost full
- extend the swap online
- kill the 'problem' process that ocuppying so much swap
- reboot the system
The most important thing is that you should be looking at what is causing the problem.
If it is an application with a memory leak, then fix it. Or you might need some RAM.