Gossamer Forum
Home : Products : Gossamer Mail : Discussion :

enough resources for running GM?

Quote Reply
enough resources for running GM?
Hello,

I'm using GM on a semi-dedicated server (SPS, from www.superb.net), it works fine, but in the last month I'm having some problems with the RAM. I had to reboot the server a couple of times within 30 days because I had no RAM available.

I have 256 Mb of dedicated RAM, and about 350 users. The statistics shows me about 10 accesses/hour.

Maybe I could have a leak in some of the CGI I've installed in the server, but I don't know how to identify them (I use the ps aux comand, but don't know how to identify the exact CGI.

Any help would be very apreciated.

Thanks a lot,

Narcís
Quote Reply
Re: [narcis] enough resources for running GM? In reply to
Hi,

10 accesss/hour should cause no load on the machine whatsoever. Are you sure there isn't something else running that is using all the memory?

Are you using mod_perl/SpeedyCGI? If not, then it can not leak memory as the program shuts down after each request.

Cheers,

Alex
--
Gossamer Threads Inc.
Quote Reply
Re: [narcis] enough resources for running GM? In reply to
Hi,

can you use the top command to see which processes are using the resource?

Cheers,

Dat

Programming and creating plugins and templates
Blog
Quote Reply
Re: [tandat] enough resources for running GM? In reply to
Hi,

The processes which are causing the problem are the following:

USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
web 5310 0.0 5.9 17980 15468 ? S 04:03 0:01 /usr/sbin/httpd -DSSL -DSSL.default -DSSL.IP.IP.IP.IP
web 5311 0.0 6.1 18452 16084 ? S 04:03 0:02 /usr/sbin/httpd -DSSL -DSSL.default -DSSL.IP.IP.IP.IP
web 5312 0.0 6.0 18272 15812 ? S 04:03 0:01 /usr/sbin/httpd -DSSL -DSSL.default -DSSL.IP.IP.IP.IP
web 5313 0.0 6.0 18248 15744 ? S 04:03 0:02 /usr/sbin/httpd -DSSL -DSSL.default -DSSL.IP.IP.IP.IP
web 5314 0.0 6.0 18240 15772 ? S 04:03 0:01 /usr/sbin/httpd -DSSL -DSSL.default -DSSL.IP.IP.IP.IP
web 9915 0.0 5.8 17932 15248 ? S 04:22 0:01 /usr/sbin/httpd -DSSL -DSSL.default -DSSL.IP.IP.IP.IP
web 23334 0.0 6.0 18236 15748 ? S 05:24 0:01 /usr/sbin/httpd -DSSL -DSSL.default -DSSL.IP.IP.IP.IP
web 23336 0.0 6.0 18192 15796 ? S 05:24 0:01 /usr/sbin/httpd -DSSL -DSSL.default -DSSL.IP.IP.IP.IP
web 23337 0.0 6.0 18280 15828 ? S 05:24 0:01 /usr/sbin/httpd -DSSL -DSSL.default -DSSL.IP.IP.IP.IP
web 23339 0.0 5.8 17968 15452 ? S 05:24 0:01 /usr/sbin/httpd -DSSL -DSSL.default -DSSL.IP.IP.IP.IP

When I restart the server, they only take about 2% of the total RAM. Now they are using about a 6%.

But I have no idea which could be this process. Any ideas?

Thanks a lot,

Narcís

Last edited by:

narcis: Apr 21, 2002, 11:46 AM
Quote Reply
Re: [narcis] enough resources for running GM? In reply to
Hi,

The process list above is all the process of your web server. These process will serve the incoming requests. I don't know if there is another process(mysqld for example) which will take the system resource when the system is heavy load.

Cheers,

Dat

Programming and creating plugins and templates
Blog
Quote Reply
Re: [tandat] enough resources for running GM? In reply to
Hi Tandat,

I have restarted the server and this is the new data. As you can see they don't take so many resources

web 16748 0.0 2.2 8600 5880 ? S 08:44 0:01 /usr/sbin/httpd -DSSL -DSSL.default -DSSL.IP
web 16749 0.0 2.4 8924 6424 ? S 08:44 0:01 /usr/sbin/httpd -DSSL -DSSL.default -DSSL.IP
web 16750 0.0 2.5 9084 6656 ? S 08:44 0:01 /usr/sbin/httpd -DSSL -DSSL.default -DSSL.IP
web 16751 0.0 2.2 8588 5860 ? S 08:44 0:01 /usr/sbin/httpd -DSSL -DSSL.default -DSSL.IP

web 16752 0.0 2.2 8596 5872 ? S 08:44 0:01 /usr/sbin/httpd -DSSL -DSSL.default -DSSL.IP
web 17465 0.0 2.2 8592 5860 ? S 08:45 0:01 /usr/sbin/httpd -DSSL -DSSL.default -DSSL.IP
web 17466 0.0 2.2 8592 5864 ? S 08:45 0:00 /usr/sbin/httpd -DSSL -DSSL.default -DSSL.IP
web 23317 0.0 2.3 8620 6072 ? S 09:09 0:01 /usr/sbin/httpd -DSSL -DSSL.default -DSSL.IP
web 24247 0.0 2.2 8616 6028 ? S 09:12 0:01 /usr/sbin/httpd -DSSL -DSSL.default -DSSL.IP
web 25866 0.0 2.4 8920 6392 ? S 09:20 0:00 /usr/sbin/httpd -DSSL -DSSL.default -DSSL.IP

Could anyone help me to find out the problem?

Thanks,


Narcís
Quote Reply
Re: [narcis] enough resources for running GM? In reply to
Hi,

This is normal if you are using mod_perl. The servers should level out at 18-21 megs of memory. Most of this is shared between httpd's, so it's not 20 megs * number of httpds. In fact it's much much less, typicall 4-5 megs.

However, for heavily loaded sites, it's important to have mod_perl running behind a proxy. See:

http://perl.apache.org/...d_One_mod_perl_enabl

for more info.

Cheers,

Alex
--
Gossamer Threads Inc.