Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-09-2005, 02:21 PM
Active Member
 
Posts: 42
Exclamation Myslqd

Every so often mysqld pins my server's processor (100%) for about 1-2 minutes. I'm not sure of the exact frequency, but it's high enough that I've noticed it in top.

This is a a pretty decent server: AMD Sempron(tm) Processor 2600+ with 1G of ram.

Ideas?
Reply With Quote
  #2 (permalink)  
Old 12-09-2005, 02:30 PM
Zimbra Employee
 
Posts: 4,792
Default

What version do you have? M2 had a new logger process that didn't have enough data indexes. This will be fixed going forward.
__________________
Bugzilla - Wiki - Downloads - Offline Client
Reply With Quote
  #3 (permalink)  
Old 12-09-2005, 02:52 PM
Active Member
 
Posts: 42
Default

Quote:
Originally Posted by KevinH
What version do you have? M2 had a new logger process that didn't have enough data indexes. This will be fixed going forward.
I'm using M2. Is there a sql script I could use to update the log tables to add these indexes? This is causing some serious performance problems for me.

Thanks!
Reply With Quote
  #4 (permalink)  
Old 12-09-2005, 05:06 PM
Zimbra Employee
 
Posts: 2,103
Default indices to add

su - zimbra
logmysql
use zimbra_logger;

alter table mta add index i_arrive_time (arrive_time);
alter table amavis add index i_arrive_time (arrive_time);
alter table mta_aggregate add index i_period_start (period_start);
alter table mta_aggregate add index i_period_end (period_end);
alter table amavis_aggregate add index i_period_start (period_start);
alter table amavis_aggregate add index i_period_end (period_end);
Reply With Quote
  #5 (permalink)  
Old 12-12-2005, 06:39 AM
Active Member
 
Posts: 42
Default

Quote:
Originally Posted by marcmac
su - zimbra
logmysql
use zimbra_logger;

alter table mta add index i_arrive_time (arrive_time);
alter table amavis add index i_arrive_time (arrive_time);
alter table mta_aggregate add index i_period_start (period_start);
alter table mta_aggregate add index i_period_end (period_end);
alter table amavis_aggregate add index i_period_start (period_start);
alter table amavis_aggregate add index i_period_end (period_end);
Yeah, that fixed it. It used to take 2 minutes at 100% processor. Now it takes 3 seconds at 7%.

Thanks for the quick turnaround.

bp
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.