Hi,<br>&nbsp; I have mongrel 0.3.14, with ruby 1.8.5, rails 1.1.6 and mongrel cluster 0.2.1, on debian sage 3.1 with apache 2.0, and fastthread 0.6.1.<br>I am load balancing 3 mongrel processes using the random port trick.<br><br>
When I start mongrel the processes have about 60MB, but after some hour of usage the memory ballons upto more than 180MB and the site becomes terribly slow. Forcing me to restart mongrel cluster.<br><br>Also, it reports me 9 mongrel processes instead of three. I am not able to understand why that&#39;s happening. Are really 9 mongrel processes started instead of three?
<br><br>Please help. Thanks.<br><br>ssinghi@galle1:~$ ps aux|grep mongrel<br>ssinghi&nbsp; 18252&nbsp; 6.6 20.2 198464 183200 ?&nbsp;&nbsp;&nbsp;&nbsp; S&nbsp;&nbsp;&nbsp; 05:47&nbsp; 17:09 /usr/bin/ruby1.8 /usr/bin/mongrel_rails start -d -e production -p 8002 -a <a href="http://127.0.0.1">
127.0.0.1</a> -P log/mongrel.8002.pid -c /home/ssinghi/test.com/current<br>ssinghi&nbsp; 18257&nbsp; 0.0 20.2 198464 183200 ?&nbsp;&nbsp;&nbsp;&nbsp; S&nbsp;&nbsp;&nbsp; 05:47&nbsp;&nbsp; 0:00 /usr/bin/ruby1.8 /usr/bin/mongrel_rails start -d -e production -p 8002 -a <a href="http://127.0.0.1">
127.0.0.1</a> -P log/mongrel.8002.pid -c /home/ssinghi/test.com/current<br>ssinghi&nbsp; 18258&nbsp; 0.0 20.2 198464 183200 ?&nbsp;&nbsp;&nbsp;&nbsp; S&nbsp;&nbsp;&nbsp; 05:47&nbsp;&nbsp; 0:00 /usr/bin/ruby1.8 /usr/bin/mongrel_rails start -d -e production -p 8002 -a <a href="http://127.0.0.1">
127.0.0.1</a> -P log/mongrel.8002.pid -c /home/ssinghi/test.com/current<br>ssinghi&nbsp; 18276&nbsp; 6.6 20.3 199324 184576 ?&nbsp;&nbsp;&nbsp;&nbsp; S&nbsp;&nbsp;&nbsp; 05:47&nbsp; 17:07 /usr/bin/ruby1.8 /usr/bin/mongrel_rails start -d -e production -p 8000 -a <a href="http://127.0.0.1">
127.0.0.1</a> -P log/mongrel.8000.pid -c /home/ssinghi/test.com/current<br>ssinghi&nbsp; 18279&nbsp; 6.4 20.4 200772 185528 ?&nbsp;&nbsp;&nbsp;&nbsp; S&nbsp;&nbsp;&nbsp; 05:47&nbsp; 16:37 /usr/bin/ruby1.8 /usr/bin/mongrel_rails start -d -e production -p 8001 -a <a href="http://127.0.0.1">
127.0.0.1</a> -P log/mongrel.8001.pid -c /home/ssinghi/test.com/current<br>ssinghi&nbsp; 18283&nbsp; 0.0 20.3 199324 184576 ?&nbsp;&nbsp;&nbsp;&nbsp; S&nbsp;&nbsp;&nbsp; 05:47&nbsp;&nbsp; 0:00 /usr/bin/ruby1.8 /usr/bin/mongrel_rails start -d -e production -p 8000 -a <a href="http://127.0.0.1">
127.0.0.1</a> -P log/mongrel.8000.pid -c /home/ssinghi/test.com/current<br>ssinghi&nbsp; 18284&nbsp; 0.0 20.3 199324 184576 ?&nbsp;&nbsp;&nbsp;&nbsp; S&nbsp;&nbsp;&nbsp; 05:47&nbsp;&nbsp; 0:00 /usr/bin/ruby1.8 /usr/bin/mongrel_rails start -d -e production -p 8000 -a <a href="http://127.0.0.1">
127.0.0.1</a> -P log/mongrel.8000.pid -c /home/ssinghi/test.com/current<br>ssinghi&nbsp; 18285&nbsp; 0.0 20.4 200772 185528 ?&nbsp;&nbsp;&nbsp;&nbsp; S&nbsp;&nbsp;&nbsp; 05:47&nbsp;&nbsp; 0:00 /usr/bin/ruby1.8 /usr/bin/mongrel_rails start -d -e production -p 8001 -a <a href="http://127.0.0.1">
127.0.0.1</a> -P log/mongrel.8001.pid -c /home/ssinghi/test.com/current<br>ssinghi&nbsp; 18286&nbsp; 0.0 20.4 200772 185528 ?&nbsp;&nbsp;&nbsp;&nbsp; S&nbsp;&nbsp;&nbsp; 05:47&nbsp;&nbsp; 0:00 /usr/bin/ruby1.8 /usr/bin/mongrel_rails start -d -e production -p 8001 -a <a href="http://127.0.0.1">
127.0.0.1</a> -P log/mongrel.8001.pid -c /home/ssinghi/test.com/current<br>ssinghi&nbsp; 19556&nbsp; 0.0&nbsp; 0.0&nbsp; 1820&nbsp; 572 pts/0&nbsp;&nbsp;&nbsp; R+&nbsp;&nbsp; 10:06&nbsp;&nbsp; 0:00 grep mongrel<br><br><br>My mongrel_cluster.yml file has<br><br>cwd: /home/ssinghi/test.com/current
<br>port: &quot;8000&quot;<br>environment: production<br>address: <a href="http://127.0.0.1">127.0.0.1</a><br>pid_file: log/mongrel.pid<br>servers: 3<br><br clear="all"><br>-- <br>Surendra Singhi<br><a href="http://ssinghi.kreeti.com">
http://ssinghi.kreeti.com</a>, <a href="http://www.kreeti.com">http://www.kreeti.com</a>