Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 27th August 2009, 01:15
MrM MrM is offline
Join Date: Oct 2008
Location: Ljubljana, Slovenia
Posts: 58
Thanks: 6
Thanked 0 Times in 0 Posts

Sorry for not replying for a while. I was quite busy the last couple of days.

Originally Posted by bajodel View Post
So.. MrM ..how things are going ?
Is swap devouring your expensive server ?
I do believe, that swap usage has stopped increasing ever since I changed swappines to 0. I have also not observed any adverse effects of this change.

Originally Posted by bajodel View Post
(in case) ..i think it should stop growing.. at least.
No reboot is required.

But ..if you want to test the 'trend' from the initial status (low swap) you can:
# echo "0" > /proc/sys/vm/swappiness (mod swappiness behaviour)
# sync (recommended before drop cached memory)
# echo "3" > /proc/sys/vm/drop_caches (drop chached memory)
# swapoff -a (disable swap)
# swapon -a (re-enable swap)

It's heavy to swallow for your server ..but i think it's (quite) equivalent to rebooting. At worst you can cron that in a script :-) if you cannot find a solution
I will now try this, to clear the swap without having to reboot, and cross my fingers it doesn't start growing again. I'll also make the swappines change permanent, by setting vm.swappiness=0 in /etc/sysctl.conf.

Originally Posted by bajodel View Post
For 'top' the default view is kb (when not explicit) ..in your case is surely mb .. but consider:

p: SWAP -- Swapped size (kb)
The swapped out portion of a taskâs total virtual memory image.

o: VIRT -- Virtual Image (kb)
The total amount of virtual memory used by the task. It includes
all code, data and shared libraries plus pages that have been
swapped out.


q: RES -- Resident size (kb)
The non-swapped physical memory a task has used.

I'm not sure I entirely understand this. So, is 270MB per apache process normal?

Thank you very much for taking the time to help me solve this problem, bajodel. It appears, for now, that the swappiness setting did the trick. I would never have figured this out on my own.
Reply With Quote
Sponsored Links


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
High swap usage. tonysch General 3 28th June 2009 23:28
Apache2 fills my memory and my swap! batman Server Operation 1 10th February 2009 18:29
Squid Proxy Caching on Linux obzerver Installation/Configuration 4 13th August 2008 20:51
Memory usage on debian etch devnull3d Installation/Configuration 4 17th January 2008 17:19
iptables issue with xen perfect setup - debian alexnz HOWTO-Related Questions 3 25th November 2006 14:49

All times are GMT +2. The time now is 11:00.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.