Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 28th March 2013, 14:54
darinpeterson darinpeterson is offline
HowtoForge Supporter
 
Join Date: Nov 2011
Posts: 153
Thanks: 35
Thanked 13 Times in 13 Posts
Default Mail Server Memory Allocation Problems and Table Lookup Issues

I have installed an OpenVZ server on Debian Squeeze. The virtual server has 8GB RAM, 586GB hard disk space, and I'm having forking issues with amavis. At times I go into the virtual server using vzctl enter mail, and begin getting fork errors right away.

Additionally there seems to be a lock issue with mysql.

Here are the results of: netstat -tap | grep mysql
root@mail:/# netstat -tap | grep mysql
tcp 0 0 *:mysql *:* LISTEN 1393/mysqld
tcp 0 0 localhost:34323 localhost:mysql ESTABLISHED 2090/smtp
tcp 0 0 localhost:mysql localhost:34322 ESTABLISHED 1393/mysqld
tcp 0 0 mail.domain:52579 www.domain.:mysql TIME_WAIT -
tcp 0 0 localhost:mysql localhost:34326 ESTABLISHED 1393/mysqld
tcp 0 0 localhost:34322 localhost:mysql ESTABLISHED 2089/smtp
tcp 0 0 localhost:mysql localhost:34323 ESTABLISHED 1393/mysqld
tcp 0 0 localhost:34326 localhost:mysql ESTABLISHED 2094/error

Here is the tail of my mail error log:
Mar 28 09:23:31 mail postfix/trivial-rewrite[1334]: fatal: proxy:mysql:/etc/postfix/mysql-virtual_domains.cf(0,lock|fold_fix): table lookup problem
Mar 28 09:23:33 mail postfix/trivial-rewrite[1413]: fatal: proxy:mysql:/etc/postfix/mysql-virtual_domains.cf(0,lock|fold_fix): table lookup problem

I don't understand why I'm still having issues with 8GB of memory allocated:
root@mail:/# free
total used free shared buffers cached
Mem: 8388608 582428 7806180 0 0 0
-/+ buffers/cache: 582428 7806180
Swap: 0 0 0

Can anyone help?

Thanks,
Darin
Reply With Quote
Sponsored Links
  #2  
Old 28th March 2013, 23:55
todgerme todgerme is offline
Member
 
Join Date: Dec 2005
Location: Belfast, Northern Ireland
Posts: 56
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Have a look in the syslog and your beancounters and look for resource shortages.

Allocating 8GB isn't enough for openvz, you'll probably need to increase kmemsize, and the various tcpsnd|rcvbuf will need upped as well.
Reply With Quote
  #3  
Old 29th March 2013, 00:36
darinpeterson darinpeterson is offline
HowtoForge Supporter
 
Join Date: Nov 2011
Posts: 153
Thanks: 35
Thanked 13 Times in 13 Posts
 
Default

Quote:
Originally Posted by todgerme View Post
Have a look in the syslog and your beancounters and look for resource shortages.

Allocating 8GB isn't enough for openvz, you'll probably need to increase kmemsize, and the various tcpsnd|rcvbuf will need upped as well.
Hi Tod,

So my hardware node has 24GB I am running 8GB on the mail server node only. You're saying that isn't enough? Wow, I thought that should be more than enough. What is considered enough?

Thanks,
Darin
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
postfix problems with smtp linkdeb Server Operation 13 15th March 2014 17:58
User unknown in relay recipient table Taxick Installation/Configuration 12 9th April 2013 12:31
mail recipient linux_red Installation/Configuration 6 9th March 2012 14:24
Management/system config/settings & /server/settings not working!! dactor Installation/Configuration 9 6th February 2008 09:11
Empty Recycle Bin jon335 General 40 6th May 2006 11:56


All times are GMT +2. The time now is 22:45.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.