Current time: 11-14-2024, 05:54 AM Hello There, Guest! (LoginRegister)


Post Reply 
high memory usage after 0:00u
Author Message
prale Offline
Junior Member
*

Posts: 92
Joined: Feb 2008
Reputation: 1
Post: #11
RE: high memory usage after 0:00u
The problem is still there.

Can you please explain how to turn all vhosts to fastcgi?
Or just regenerating the config files after I switched to worker is enough?, since mod_php will not work anymore with worker.
And what about a2dismod mod_php?
04-19-2008 10:03 PM
Find all posts by this user Quote this message in a reply
prale Offline
Junior Member
*

Posts: 92
Joined: Feb 2008
Reputation: 1
Post: #12
RE: high memory usage after 0:00u
Actually i don't see mod_php in my modules.
@joximu: how can you see in my previous posts, that some vhosts are using mod_php?

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)
dav_module (shared)
dav_fs_module (shared)
dav_svn_module (shared)
authz_svn_module (shared)
dir_module (shared)
env_module (shared)
fastcgi_module (shared)
info_module (shared)
mime_module (shared)
security2_module (shared)
python_module (shared)
negotiation_module (shared)
proxy_module (shared)
proxy_http_module (shared)
rewrite_module (shared)
setenvif_module (shared)
status_module (shared)
suexec_module (shared)
unique_id_module (shared)
watch_module (shared)
04-19-2008 10:11 PM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #13
RE: high memory usage after 0:00u
Sorry

no, it seems ok with the php thing.

About the midnight thing:
did you already switch the backup format to gzip instead of bzip2 (see /etc/ispcp/ispcp.conf)

and then, I'd suggest to move the backup to something like 3 o clock:

eg:
[ccode]
# Backup
0 3 * * * root /var/www/ispcp/engine/backup/ispcp-backup-all yes &>/var/log/ispcp/ispcp-backup-all-mngr.log
30 2 * * * root /var/www/ispcp/engine/backup/ispcp-backup-ispcp noreport &>/var/log/ispcp/ispcp-backup-ispcp-mngr.log
[/code]

bzip2 takes alot of cpu - you can search for the bzip2/gzip discussion in the forum (i think it was somewhere in january).

/J
04-19-2008 10:30 PM
Visit this user's website Find all posts by this user Quote this message in a reply
ephigenie Offline
Project Leader
*******
Administrators

Posts: 1,578
Joined: Oct 2006
Reputation: 15
Post: #14
RE: high memory usage after 0:00u
as far as i see - its nothing wrong with the memory consuming - since this seems to be a graph out of munin - so far i know it just means that the mem is beeing used for cache - and thats normal....
Only the green color is mem your applications are really using - so no need to worry about that. Its normal linux / Unix behaviour to tell you its caching things in mem if there's enough available ... (instead of win32 platform) .
04-19-2008 10:45 PM
Visit this user's website Find all posts by this user Quote this message in a reply
prale Offline
Junior Member
*

Posts: 92
Joined: Feb 2008
Reputation: 1
Post: #15
RE: high memory usage after 0:00u
Well when I don't reboot it for a week, it's using some swap cache and the ram has only a few mb's left.
I don't think this is normal.

Thanx joximu for the cron explaination.
I'm gonna try it right away.
04-20-2008 12:54 AM
Find all posts by this user Quote this message in a reply
prale Offline
Junior Member
*

Posts: 92
Joined: Feb 2008
Reputation: 1
Post: #16
RE: high memory usage after 0:00u
I just switched backups from bzip2 to gzip in the ispcp.conf

Also in /cron.d/ispcp I changed:

Code:
@daily root /var/www/ispcp/engine/backup/ispcp-backup-all yes &>/var/log/ispcp/ispcp-backup-all-mngr.log
@daily root /var/www/ispcp/engine/backup/ispcp-backup-ispcp noreport &>/var/log/ispcp/ispcp-backup-ispcp-mngr.log

to

Code:
0 3 * * * root /var/www/ispcp/engine/backup/ispcp-backup-all yes &>/var/log/ispcp/ispcp-backup-all-mngr.log
30 2 * * * root /var/www/ispcp/engine/backup/ispcp-backup-ispcp noreport &>/var/log/ispcp/ispcp-backup-ispcp-mngr.log

Lets see what happens now at 0:00, or hopefully at 3:00 Wink
(This post was last modified: 04-20-2008 01:10 AM by prale.)
04-20-2008 01:09 AM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #17
RE: high memory usage after 0:00u
hi prale

the memory "consumption" is normal in linux if it takes the whole you have - theres no need to "not use" any Byte if it's available? Why are you paying for 512MB of ram and then only use 400MB - only for you to be able to say: well, I still have enough RAM...

Unix takes the whole RAM - if needed. Windows (at least Vista I think) does this too but does not show this in the same way, "free" means "free or used for cache" in Redmond...

/J
04-20-2008 03:13 AM
Visit this user's website Find all posts by this user Quote this message in a reply
ephigenie Offline
Project Leader
*******
Administrators

Posts: 1,578
Joined: Oct 2006
Reputation: 15
Post: #18
RE: high memory usage after 0:00u
yeah maybe you should make sure you've a bug-free php version ...
the debian etch / stable version has a bug which causes that child php - processes won't get killed if they've reached their lifetime.

Regarding your memory use : even your "top" output shows total normal values ...
500m used, ~340m cached ... and so on thats normal.
04-20-2008 03:13 AM
Visit this user's website Find all posts by this user Quote this message in a reply
prale Offline
Junior Member
*

Posts: 92
Joined: Feb 2008
Reputation: 1
Post: #19
RE: high memory usage after 0:00u
it's using 256.13 MB RAM now at 0:05 Rolleyes
so let's see what happens at 2:30 and 3:00
(This post was last modified: 04-20-2008 08:08 AM by prale.)
04-20-2008 08:07 AM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #20
RE: high memory usage after 0:00u
Hopefully it will be more - otherwise the software does not use all of the hardware that is available... :-)
04-20-2008 09:16 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 5 Guest(s)