high memory usage after 0:00u - Printable Version +- ispCP - Board - Support (http://www.isp-control.net/forum) +-- Forum: ispCP Omega Support Area (/forum-30.html) +--- Forum: Usage (/forum-34.html) +--- Thread: high memory usage after 0:00u (/thread-2865.html) |
high memory usage after 0:00u - prale - 03-28-2008 03:24 AM Hello I noticed that my server uses about 480mb ram after 0:00u. I think ispcp is making backups and statistics at that time. But the memory usage stays high, even after a few days. I have configured apache with prefork just like the ispcp tutorial "running on low resources" discribes. It doesn't seems to work. What can I do to solve this problem? RE: high memory usage after 0:00u - BeNe - 03-28-2008 03:28 AM Take a look at your Cron (ispcp & root) and see which Applications runs at this time. Use top or htop to check which Process use so much memory. Greez BeNe RE: high memory usage after 0:00u - prale - 04-01-2008 08:29 AM I attached a screenshot with the output from #top. (I masked my hostname and username in the image) I think it's php5-cgi, I already updated the latest releases from dotdeb, but it doesn't seems to help. This is my setup: ispcp rc4 monit munin+vhosts module eaccelerator apache is compiled with prefork (default config) also mysql has the default config I know about the running on low resources tutorial. Changing the fcgi config results in http connections from 5-10 seconds, so I don't want to use it. Also the mysql and apache config mods are not really making any difference. My cron is just the same as the default of ispcp. I haven't modified it. I hope someone can help me. RE: high memory usage after 0:00u - joximu - 04-01-2008 08:41 AM [sorry - I translate it...] this look very strange some vhosts are running with fastcgi (that's why there are php-cgi processes) and others are runing with apache mod-php. If you really use apache prefork, then you better switch all vhosts to mod-php. There are no php processes on midnight by ispcp - so either you have some additional crons (external?) or it's not the php... (maybe the mysql dumps?) Have you checked all cron jobs starting at midnight... /J RE: high memory usage after 0:00u - prale - 04-01-2008 08:42 AM English please or dutch, sorry. CPU model Intel® Celeron® CPU 2.40GHz CPU MHz 2399.85 CPU cache 128 KB CPU bogomips 4803.73 I have installed prefork because I only have one CPU. When you google, they say worker is only better if you have multiple cpu's. Code: /etc/cron.d/ RE: high memory usage after 0:00u - prale - 04-01-2008 09:33 AM Hmmz I googled again on "worker vs prefork" The combination fastcgi/worker seems to result in more performance I've read. I already changed to worker again: #aptitude install apache2-mpm-worker # apache2 -l Compiled in modules: core.c mod_log_config.c mod_logio.c worker.c http_core.c mod_so.c # apache2 -t -D DUMP_MODULES Loaded Modules: core_module (static) log_config_module (static) logio_module (static) mpm_worker_module (static) http_module (static) so_module (static) actions_module (shared) alias_module (shared) auth_basic_module (shared) authn_file_module (shared) authz_default_module (shared) authz_groupfile_module (shared) authz_host_module (shared) authz_user_module (shared) autoindex_module (shared) cband_module (shared) cgid_module (shared) dir_module (shared) env_module (shared) fastcgi_module (shared) info_module (shared) mime_module (shared) negotiation_module (shared) proxy_module (shared) proxy_http_module (shared) rewrite_module (shared) setenvif_module (shared) status_module (shared) suexec_module (shared) evasive20_module (shared) watch_module (shared) RE: high memory usage after 0:00u - joximu - 04-01-2008 09:50 AM cron: I'd put the backups to some later ("0 1 * * *" instead of "@daily" - or something similar) worker/prefork: worker is better in performance (with threaded processes or something like this :-) - but mod-php cannot deal with that, so with worker you need fastcgi, prefork can deal with both fastcgi and mod-php - but since fastcgi is more secure but less performant you have to decide... /J RE: high memory usage after 0:00u - prale - 04-01-2008 09:58 AM well I see that I have fastcgi_module (shared) running so I guess I'm fine with worker. php5 works fine as far as I can see. I will try the cron tomorrow, I go to sleep now work goes on tomorrow morning :S Many thanx for your help so far! RE: high memory usage after 0:00u - joximu - 04-01-2008 10:56 AM Just think about turning *all* vhosts to fastcgi... (regenerate config files...) I think you'll continue *today* /J RE: high memory usage after 0:00u - prale - 04-02-2008 02:08 AM Well I just regenerated the config files. Is there something else I must do? or is it all automatic? I'll try the cron change tonight, so at 0:00u we will see... |