From: Hongli Lai <hon...@phusion.nl>
Date: Mon, 14 Apr 2008 10:58:59 +0200
Local: Mon, Apr 14 2008 4:58 am
Subject: Re: httpd processes use a HUGE amount of swap, even with ulimit -s set to 2MB
Clarke wrote: Hi. > No matter how I try to change the ulimit as suggested in the docs to > fix this problem httpd's process end up using ~150MB of swap each over > time: > (this is swap) > Obviously, this is a problem. Perhaps I'm not setting ulimit -s > sudo su -c 'ulimit -s 2048' -s /bin/sh daemon > no love. > How can we fix this? Are you sure this is *actual memory usage* and not just VM size? Passenger creates multiple threads. Because of the nature of threads, People usually read the "VM size" or "VSZ" column from process reporting You probably don't have GNOME System Monitor installed. But you can also grep Private_Dirty /proc/XXXX/smaps | awk '{ print $2 }' | xargs ruby -e where 'XXXX' is the PID of a process. This reports memory usage in KB. The best way for you to find out how much memory Apache (i.e. all Apache Many people have been fooled by this phenomenon, and indeed, I don't Wikipedia also elaborates this phenomena at -- Web: http://www.phusion.nl/ You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||