Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Member
    Join Date
    Aug 2006
    Posts
    18

    Default cpbandwd uses all memory / hangs server

    Hi, I'm currently having a bad problem with cpbandwd. When it starts, it uses up all the RAM and causes the server to become unresponsive. Has anyone seen this before? Any help would be greatly appreciated. Please see details below.

    This is a cPanel server that is being used only for email. The load of email is pretty heavy, almost 33,000 per hour if you count sender verification failures and unexpected disconnections. As a result the log files are pretty large, but not way out of line. The maillog is usually about 250-300 MB when they get rotated and the exim_mainlog is about 140 - 170 MB (we had to start rotating that one every day).

    Yesterday the load increased so that the server became unresponsive and we had to reboot it twice before we found that the problem was being caused by cpbandwd. We killed the process and everything was fine. This morning I tried running /scripts/runlogsnow to see if the problem was still there and I almost lost the server again within 15 seconds. cpbandwd immediately paged out all the RAM and saturated the swap drive with requests.


    WHM 11.1.0 cPanel 11.4.19-R14379
    REDHAT Enterprise 4 i686 - WHM X v3.1.0

  2. #2
    cPanel Staff
    Join Date
    Mar 2004
    Posts
    704

    Default

    Quote Originally Posted by esolutions View Post
    cpbandwd. When it starts, it uses up all the RAM and causes the server to become unresponsive.

    Hello,

    Excellent details. I'm reviewing our code currently to see where thi smight happen. In the meantime: this could happen if File::Tail was not using a buffer and the initiial read (or subsequent reload if it was rotated) was very large. Since we don't set a buffer size it should default to 16384 bytes.

    What does this output as roto via SSH:

    perl -MFile::Tail -le 'print $File::Tail::VERSION;print $];'

  3. #3
    cPanel Staff
    Join Date
    Mar 2004
    Posts
    704

    Default

    Quote Originally Posted by esolutions View Post
    Hi, I'm currently having a bad problem with cpbandwd. When it starts, it uses up all the RAM and causes the server to become unresponsive. Has anyone seen this before? Any help would be greatly appreciated. Please see details below.
    I see one place that is a bit inefficient and have a patch for it. If you create a ticket I'd be happy to apply this patch to your box to see if that helps or not, and if not investigate it further

    thanks, please let me know the ticket ID and mark it 'ATTN Dan'

    thanks!

  4. #4
    cPanel Staff
    Join Date
    Mar 2004
    Posts
    704

    Default

    Quote Originally Posted by cpdan View Post
    ...create a ticket ...

    thanks, please let me know the ticket id and mark it 'ATTN Dan'
    You can do that at support.cpanel.net

  5. #5
    Member
    Join Date
    Aug 2006
    Posts
    18

    Default

    Thank you for your quick response and attention to this problem.

    Here is the output of the perl command:

    Code:
    root@vinemail [/home/admin]# perl -MFile::Tail -le 'print $File::Tail::VERSION;print $];'
    0.99.3
    5.008008
    root@vinemail [/home/admin]#

    I have created a support ticket as you requested.
    The Request ID is 202984

    Thanks again.

Similar Threads & Tags
Similar threads

  1. How to Disable cPBandwd
    By Imai in forum Optimization
    Replies: 2
    Last Post: 09-02-2010, 06:16 PM
  2. cpbandwd taking up over 80 % of the memory
    By wipl in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 03-05-2006, 11:38 PM
  3. cpbandwd taking up 99% memory and 60%+ CPU
    By iisnet in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 01-17-2006, 12:35 PM
  4. Server Backup's - Server Load's / Memory
    By demomen in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 03-07-2005, 09:56 AM
  5. /scripts/fixquotas hangs server...
    By brianteeter in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 05-16-2003, 12:17 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube