Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-04-27, 18:09:16

Author Topic: Always full of Ram because Qmail service.  (Read 13049 times)

0 Members and 1 Guest are viewing this topic.

Offline hoangkoha

  • Junior Member
  • *
  • Posts: 40
  • Karma: +0/-0
    • View Profile
Always full of Ram because Qmail service.
« on: 2014-04-18, 04:56:51 »
This is my system:



I run it on VMware Vsphere. It always increase to full of Ram and i found this issue : qmail-remote PID.
Before kill qmail-remote PID:




Then i kill it



I can't stop qmail service because i need server mail  :-[ What should i do ?

Have a nice day to everyone  ;D

//Sorry about my large font size, it easier to read than characters in picture
« Last Edit: 2014-04-18, 05:03:58 by hoangkoha »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Always full of Ram because Qmail service.
« Reply #1 on: 2014-04-18, 06:03:15 »
Go to 'Server Mail Settings' and decreasing value of 'Max SMTP Instances'
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Kloxo-DR

  • Senior Member
  • *
  • Posts: 239
  • Karma: +3/-9
    • View Profile
Re: Always full of Ram because Qmail service.
« Reply #2 on: 2014-04-18, 08:20:23 »
Hi,
I can't stop qmail service because i need server mail  :-[ What should i do ?

Try to reinstall the toaster:

yum reinstall *toaster
sh /script/cleanup

This will try to bring all the original binaries of the toaster into the server and cleanup everything.

Check if you have qmail-remote.orig in the binary dir. I think it should not be in there or should be renamed or removed.

Did you identify to which domain and email address the qmail-remote is trying to make a connection? Thats also very important.

For this, install csf and make a detection on qmail-remote binary to identify which email address and domain is used.

Offline hoangkoha

  • Junior Member
  • *
  • Posts: 40
  • Karma: +0/-0
    • View Profile
Re: Always full of Ram because Qmail service.
« Reply #3 on: 2014-04-18, 09:09:41 »
Thank you a lot, my English is bad  ;D
I have a cluster in Hyper-V before, it 's good. I try to install a new cluster in VMware, all my setup still the same before. 
Thank for your help, I reinstall qmail follow your step, then i downgrade phpmyadmin and everything seems to be right  ;D I'm looking after my cluster.
Best regards, Kloxo-DR.

Offline Kloxo-DR

  • Senior Member
  • *
  • Posts: 239
  • Karma: +3/-9
    • View Profile
Re: Always full of Ram because Qmail service.
« Reply #4 on: 2014-04-18, 09:17:52 »
Hi,
Thank you a lot, my English is bad  ;D
Best regards, Kloxo-DR.

For the understanding of your issue, one did not require any english knowledge because the jpeg describes everything perfect.

You are welcome...

Offline hoangkoha

  • Junior Member
  • *
  • Posts: 40
  • Karma: +0/-0
    • View Profile
Re: Always full of Ram because Qmail service.
« Reply #5 on: 2014-04-18, 11:01:15 »
Sorry, nothing good today :( The "qmail-remote" PID still use a lot of RAM and CPU :( but it increase more slowly than before.

Check if you have qmail-remote.orig in the binary dir. I think it should not be in there or should be renamed or removed.
Where is the "binary dir" ? I'm a noob :(
« Last Edit: 2014-04-18, 11:05:34 by hoangkoha »

Offline Kloxo-DR

  • Senior Member
  • *
  • Posts: 239
  • Karma: +3/-9
    • View Profile
Re: Always full of Ram because Qmail service.
« Reply #6 on: 2014-04-18, 11:12:34 »
Hi,

Thats a bad news.

See the qmail-remote.org in /var/qmail/bin if it is there. Try to rename qmail-remote with qmail-remote.now and thereafter qmail-remote.org to qmail-remote.

See if this makes a difference.

It appears that there are some binaries not in syncron.

Offline hoangkoha

  • Junior Member
  • *
  • Posts: 40
  • Karma: +0/-0
    • View Profile
Re: Always full of Ram because Qmail service.
« Reply #7 on: 2014-04-19, 12:59:05 »
It 's here  ;D

You want me try to rename qmail-remote to qmail-remote.now and qmail-remote.orig to qmail-remote ? And what will i do after ?
Sorry, i response lately because some broblem in my system lead to i can't remote to control my server.
« Last Edit: 2014-04-19, 13:05:24 by hoangkoha »

Offline Kloxo-DR

  • Senior Member
  • *
  • Posts: 239
  • Karma: +3/-9
    • View Profile
Re: Always full of Ram because Qmail service.
« Reply #8 on: 2014-04-19, 15:30:25 »
Hi,

1) qmail-remote

Yes, change the name and execute # qmailctl start. Then see if qmail-remote increases RAM or not.

2) Generate tcp.smtp

See if there is something in /etc/tcprules.d/tcp.smtp which you can modify. If you did modify, then you should execute # qmailctl cdb to recreate cdb files for qmail. I do not know if this could be helpful or affects qmail-remote.

3) See softlimit

See if the file softlimit is in /var/qmal/control/ there. If not, create by touch /var/qmal/control/softlimit and enter the values mentioned in the run files of emails. I do not know if this could be helpful or affects qmail-remote.

4) Make cron to run qmailctl every xx minutes.

If you restart qmail by qmailctl start every xx minutes, the qmail-remote prog must die and invoked again. I do not know if this could be helpful or affects qmail-remote.

5) SMTP connection timeout

See if you could change the SMTP connection timeout. May be there are emails to be delivered to domains or emails that does not exists. Hence qmail-remote increases RAM. I do not know if this could be helpful or affects qmail-remote.

Always restart qmail by qmailctl start and see if the memory increases.

Offline Kloxo-DR

  • Senior Member
  • *
  • Posts: 239
  • Karma: +3/-9
    • View Profile
Re: Always full of Ram because Qmail service.
« Reply #9 on: 2014-04-19, 15:34:32 »
You want me try to rename qmail-remote to qmail-remote.now and qmail-remote.orig to qmail-remote ? And what will i do after ?

Wait to see if RAM increases. If it does, then the problem is not in the new binary itself. Then you can bring the old back by renaming it again.

If there is a change, and there is no RAM increase, then tell here so that Mustafa can try to understand the problem from this aspect. he knows what was in there and what was changed.

to troubleshoot, one begins to exclude the possibility from all these points.

Offline hoangkoha

  • Junior Member
  • *
  • Posts: 40
  • Karma: +0/-0
    • View Profile
Re: Always full of Ram because Qmail service.
« Reply #10 on: 2014-04-20, 06:27:30 »
Thank you a lot Kloxo-DR. I'm trying one by one from your solution. Have a nice day to you  ;D

Offline hoangkoha

  • Junior Member
  • *
  • Posts: 40
  • Karma: +0/-0
    • View Profile
Re: Always full of Ram because Qmail service.
« Reply #11 on: 2014-04-21, 03:20:02 »
I renamed qmail-remote to qmail-remote.now and then restarted qmail service. No qmail-remote PID appear.
Now, i config "spam status" in a demo domain and nothing change, i need retart qmail to apply it.
I think the Master use qmail-remote PID to control Mail Slave, but some bug lead to RAM increases  :-[
My cluster:
         10.0.0.240 Master,
         10.0.0.241 Web server (Apache) + Mail server (Qmail), 
         10.0.0.242 Mysql server.
Now i use the "Cron Scheduled Tasks" to restart qmail service once a hour.  ;D
//The new ram killer appears  :-\
« Last Edit: 2014-04-21, 04:33:53 by hoangkoha »

Offline Kloxo-DR

  • Senior Member
  • *
  • Posts: 239
  • Karma: +3/-9
    • View Profile
Re: Always full of Ram because Qmail service.
« Reply #12 on: 2014-04-21, 13:21:21 »
Hi,

I see in the jpg that qmail-remote is active for 68 minutes and got fat with 7 GIGABYTES OF RAM! Terrible.

My limit has reached to help you because I have Zero knowledge in managing Master and cluster.

Mustafa should help you for solving the problem occuring from qmail-remote in clustered environment. I have never tried tio use qmail-remoe in a cluster environment.

Offline Kloxo-DR

  • Senior Member
  • *
  • Posts: 239
  • Karma: +3/-9
    • View Profile
Re: Always full of Ram because Qmail service.
« Reply #13 on: 2014-04-21, 13:27:40 »
Hello  Mustafa,

In the above jpg, why is the command sh?

The command should be qmail-rspawn, right?

Perhaphs thats the problem.

In that case, I advise you to use 1) qmailctl stop; yum remove *toaster; 2) yum clean all; and 3) yum install *toaster again; qmailctl start;.

"DO NOT REINSTALL" BUT REMOVE AND INSTALL it.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Always full of Ram because Qmail service.
« Reply #14 on: 2014-04-21, 13:38:49 »
Qmail-remote using bash script to dkimsign.pl or qmail-remote.orig (propose from chrisf related to dkim).
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

 


Top 10 Social Networking:    Facebook    Twitter    LinkedIn    Pinterest    Google Plus    Tumblr    Instagram    VK    Flickr    Vine
Click Here

Page created in 0.084 seconds with 18 queries.

web stats analysis