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

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

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

Quote:
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.

Quote:
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.

Quote:
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.

VIRT = SWAP + RES.

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

RES = CODE + DATA.
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
  #22  
Old 6th October 2009, 17:17
MrM MrM is offline
Member
 
Join Date: Oct 2008
Location: Ljubljana, Slovenia
Posts: 58
Thanks: 6
Thanked 0 Times in 0 Posts
Default

Sadly, I am still experiencing this problem. Even after running the swap-clearing script in a weekly cronjob.

I strongly suspect that console-kit-daemon is the culprit here. Just now, it was reportedly using almost 50% of the system's ram. After killing the process, memory usage decreased dramatically.

Googling about it, I believe this daemon is meant for desktop installations and has no real function on a server. When I try to remove it, it says the following packages will be removed: consolekit dbus dbus-x11. Is it safe to remove these packages on an ispconfig server?
Reply With Quote
  #23  
Old 7th October 2009, 10:48
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,421
Thanks: 834
Thanked 5,500 Times in 4,329 Posts
Default

as far as i know, dbus and dbus-x11 are also for a desktop instalation. But I'em not sure if removing these packages cause any problem. Maybe you should ask this question on the mailing list of the linux distribution.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #24  
Old 7th October 2009, 10:52
MrM MrM is offline
Member
 
Join Date: Oct 2008
Location: Ljubljana, Slovenia
Posts: 58
Thanks: 6
Thanked 0 Times in 0 Posts
 
Default

Quote:
Originally Posted by till View Post
as far as i know, dbus and dbus-x11 are also for a desktop instalation. But I'em not sure if removing these packages cause any problem. Maybe you should ask this question on the mailing list of the linux distribution.
Thanks! Will do that.
Reply With Quote
Reply

Bookmarks

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 22:28
Apache2 fills my memory and my swap! batman Server Operation 1 10th February 2009 17:29
Squid Proxy Caching on Linux obzerver Installation/Configuration 4 13th August 2008 19:51
Memory usage on debian etch devnull3d Installation/Configuration 4 17th January 2008 16:19
iptables issue with xen perfect setup - debian alexnz HOWTO-Related Questions 3 25th November 2006 13:49


All times are GMT +2. The time now is 06:22.


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