Current time: 05-08-2024, 03:35 AM Hello There, Guest! (LoginRegister)


Post Reply 
Large maillog processing causes performance problem
Author Message
am115998 Offline


Posts: 2
Joined: Jul 2010
Reputation: 0
Post: #1
Large maillog processing causes performance problem
Hi,

I'm and ispCP & Linux newbie (all Solaris & AIX experience!) - please don't flame me for dumb questions. Point me to correct man pages is necessary.

I have ispCP running on CentOS and the maillog processing (running diff between maillog & maillog.prev) causes CentOS to dump MySQL to swap (only 2GB RAM in system) with attendant loss of response from ezPublish.

I am in process of trying different swappiness settings in CentOS but real issue is maillog not being trimmed/truncated. We want maybe weekly or monthly stats only.
[If anyone knows of better diff binary for CentOS or can recommend swappiness=0, please let me know.]

Questions:
1) Is the log trimming a logrotate.d setting? I have never used logrotate before but can read man pages (again!) if need be - not aware how it interacts with other packages e.g. ispCP.

2) What process/subsystem of ispCP generates the maillog? Is this where I need to make changes?

Your help greatly appreciated.
Alex

[root@server3993 rc2.d]# ls -l /var/log/ispcp/mail*
-rw------- 1 root root 912660056 Jul 2 11:00 /var/log/ispcp/maillog
-rw-r--r-- 1 root root 0 Jul 2 11:00 /var/log/ispcp/maillog.diff
-rw------- 1 root root 912482683 Jul 2 10:32 /var/log/ispcp/maillog.prev
07-12-2010 08:14 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
Large maillog processing causes performance problem - am115998 - 07-12-2010 08:14 PM

Forum Jump:


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