1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Panel memory usage eating up 3gig of ram

Discussion in 'Plesk 11.x for Linux' started by David_Br, Feb 4, 2013.

  1. David_Br

    David_Br New Pleskian

    10
    35%
    Joined:
    Feb 4, 2013
    Messages:
    9
    Likes Received:
    0
    Hello,

    Plesk server is eating up all the ram, cannot see where the problem is:

    Panel memory usage 84.3% used (3.09 GB of 3.66 GB) (?)

    Server is at AWS, Intel(R) Xeon(R) CPU E5645 @ 2.40GHz, 3.7 GB of memory.

    Furthermore, since the "Panel memory usage" is that high, i receive tons of email for "not responding and restarted" like below:
    The Plesk Web Server service on host host.adoraweb.com.br is down.
    The problem was discovered on Feb 4, 2013 12:15 PM.

    Any idea?
    Many thanks!
    David
     
  2. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,547
    Likes Received:
    1,241
    Location:
    Novosibirsk, Russia
    Have you tried to troubleshoot it somehow? Any logs, error messages, etc? Have you read any recommendations about memory consumption in KB articles or on this forum?
     
  3. David_Br

    David_Br New Pleskian

    10
    35%
    Joined:
    Feb 4, 2013
    Messages:
    9
    Likes Received:
    0
    Hello,

    At first i tought i was a configuration problem, so as it was a test server on AWS i have scratched it and created a new one.

    m1.medium instance
    CPU GenuineIntel, Intel(R) Xeon(R)CPU E5645 @ 2.40GHz
    Version Parallels Plesk Panel v11.0.9_build110120608.16 os_RedHat el6
    OS CloudLinux Server 6.3
    RAM 3.7 GB

    Now, after a few hours of (very light) use of this server, Plesk Health Monitoring reports the following:
    Panel memory usage
    29% used (1.06 GB of 3.66 GB) 2.21 (?)
    see attached graph

    [root@ip-10-0-0-160 psa]# top
    top - 11:23:32 up 2:27, 1 user, load average: 0.00, 0.02, 0.00
    Tasks: 186 total, 1 running, 185 sleeping, 0 stopped, 0 zombie
    Cpu(s): 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
    Mem: 3837524k total, 2517132k used, 1320392k free, 77284k buffers
    Swap: 0k total, 0k used, 0k free, 620436k cached

    [root@ip-10-0-0-160 psa]# free -m
    total used free shared buffers cached
    Mem: 3747 2458 1289 0 75 605
    -/+ buffers/cache: 1776 1970
    Swap: 0 0 0


    Could you please help?
    Many thanks,
    David
     

    Attached Files:

  4. David_Br

    David_Br New Pleskian

    10
    35%
    Joined:
    Feb 4, 2013
    Messages:
    9
    Likes Received:
    0
    Since then i have rebooted the server.
    Nothing changed.
    After a few minutes this Panel process is still eating up ram:

    Panel memory usage
    21.5% used (808 MB of 3.66 GB) (?)

    But a new (funny) issue came into Health Monitoring for CPU usage

    Total usage
    22667842.2% used 4946191.44 (?)

    FYI:
    [root@host ~]# top
    top - 14:24:40 up 13 min, 1 user, load average: 0.06, 0.04, 0.02
    Tasks: 111 total, 1 running, 110 sleeping, 0 stopped, 0 zombie
    Cpu(s): 0.0%us, 0.3%sy, 0.0%ni, 99.7%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
    Mem: 3837524k total, 703736k used, 3133788k free, 22768k buffers
    Swap: 0k total, 0k used, 0k free, 304076k cached

    [root@host ~]# free -m -t
    total used free shared buffers cached
    Mem: 3747 777 2970 0 23 301
    -/+ buffers/cache: 452 3295
    Swap: 0 0 0
    Total: 3747 777 2970
     
  5. David_Br

    David_Br New Pleskian

    10
    35%
    Joined:
    Feb 4, 2013
    Messages:
    9
    Likes Received:
    0
    Dear Igor,

    By pure coincidence, i found one of your very old posts related to PSA9.5
    http://forum.parallels.com/pda/index.php/t-107160.html

    I think i have exactly the same issue with PSA 11.0.9

    [root@host sw-cp-server]# ps aux | grep sw-engine-cgi | wc -l
    257

    -some process, very long list-
    psaadm 42549 0.0 0.4 327152 18784 ? S 18:26 0:01 /usr/bin/sw-engine-cgi -c /usr/local/psa/admin/conf/php.ini -d auto_prepend_file=auth.php3 -u psaadm
    psaadm 42550 0.0 0.5 331264 22692 ? S 18:26 0:01 /usr/bin/sw-engine-cgi -c /usr/local/psa/admin/conf/php.ini -d auto_prepend_file=auth.php3 -u psaadm
    psaadm 42934 0.0 0.1 216368 4464 ? Ss 18:37 0:00 /usr/bin/sw-engine-cgi -c /usr/local/psa/admin/conf/php.ini -d auto_prepend_file=auth.php3 -u psaadm
    psaadm 42951 0.1 0.6 329048 24452 ? S 18:37 0:02 /usr/bin/sw-engine-cgi -c /usr/local/psa/admin/conf/php.ini -d auto_prepend_file=auth.php3 -u psaadm
    psaadm 42952 0.0 0.6 328784 25436 ? S 18:37 0:00 /usr/bin/sw-engine-cgi -c /usr/local/psa/admin/conf/php.ini -d auto_prepend_file=auth.php3 -u psaadm
    psaadm 42953 0.0 0.6 328008 24628 ? S 18:37 0:00 /usr/bin/sw-engine-cgi -c /usr/local/psa/admin/conf/php.ini -d auto_prepend_file=auth.php3 -u psaadm
    psaadm 43166 0.0 0.3 216368 14904 ? Ss 19:09 0:00 /usr/bin/sw-engine-cgi -c /usr/local/psa/admin/conf/php.ini -d auto_prepend_file=auth.php3 -u psaadm
    psaadm 43183 0.0 0.3 316608 12612 ? S 19:09 0:00 /usr/bin/sw-engine-cgi -c /usr/local/psa/admin/conf/php.ini -d auto_prepend_file=auth.php3 -u psaadm
    psaadm 43184 0.0 0.1 216368 4712 ? S 19:09 0:00 /usr/bin/sw-engine-cgi -c /usr/local/psa/admin/conf/php.ini -d auto_prepend_file=auth.php3 -u psaadm
    psaadm 43185 0.0 0.1 216368 4712 ? S 19:09 0:00 /usr/bin/sw-engine-cgi -c /usr/local/psa/admin/conf/php.ini -d auto_prepend_file=auth.php3 -u psaadm
    root 43222 0.0 0.0 6388 728 pts/0 S+ 19:13 0:00 grep sw-engine-cgi


    And Health Monitoring reports:
    Panel memory usage
    86.3% used (3.16 GB of 3.66 GB) 1.03 (?)
    Real memory usage
    95.8% used (3.51 GB of 3.66 GB) 1.01 (?)

    I tried to fix it, but i found no occurences of "max-procs" or "min-procs" in the config files
    Where are they ?
    How can i fix this ?

    Many thanks,
    David
     
  6. David_Br

    David_Br New Pleskian

    10
    35%
    Joined:
    Feb 4, 2013
    Messages:
    9
    Likes Received:
    0
    5 minutes later, even more processes...

    [root@host sw-cp-server]# ps aux | grep sw-engine-cgi | wc -l
    261
     
  7. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,547
    Likes Received:
    1,241
    Location:
    Novosibirsk, Russia
    As possible solution you can try to set value "min-procs" to 1 or 2 in /etc/sw-cp-server/applications.d/plesk.socket.sh and restart psa service after that.
     
  8. David_Br

    David_Br New Pleskian

    10
    35%
    Joined:
    Feb 4, 2013
    Messages:
    9
    Likes Received:
    0
    Yep, it's what i found a few hours before your post.
    Since then i haven't had any memory issues.

    Maybe a thing to fix in future releases ?

    David
     
  9. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,547
    Likes Received:
    1,241
    Location:
    Novosibirsk, Russia
Loading...