Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Page 2 of 2 FirstFirst 1 2
Results 16 to 20 of 20
  1. #16
    cPanel Quality Assurance Analyst cPanelDon's Avatar
    Join Date
    Nov 2008
    Location
    Houston, Texas, U.S.A.
    Posts
    2,555
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default

    Quote Originally Posted by lehels View Post
    The same situation we are experiencing after downgrade from Release to Stable. There is a php.in in horde/ folder with memory_limit 256M, but does not take any effect -
    Fatal error: Out of memory (allocated 92274688) (tried to allocate 28331723 bytes) in /usr/local/cpanel/3rdparty/lib/php/Net/SMTP.php on line 836 -

    Any to suggest a possible solution [?].

    Thanks,
    Lehel
    Please refer to this earlier post: cPanel Forums - View Single Post

    Quote Originally Posted by cpanelkenneth View Post
    Both the SMTP and MIME PEAR modules used by Horde have flaws that cause them to consume insane amounts of memory. The only reliable workaround found is to modify the SMTP and MIME modules, setting the memory limits directly within them.

  2. #17
    Registered User
    Join Date
    Apr 2010
    Posts
    4

    Default

    Quote Originally Posted by tom5599 View Post
    It was showing 8M, I increased that to 32M and increase the timeout setting to 60sec from 30sec.

    All is working fine now!!

    THANK YOU VERY MUCH!!!

    Tom
    How to do that!

  3. #18
    cPanel Quality Assurance Analyst cPanelDon's Avatar
    Join Date
    Nov 2008
    Location
    Houston, Texas, U.S.A.
    Posts
    2,555
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default

    Quote Originally Posted by huafeihua116 View Post
    Quote Originally Posted by tom5599 View Post
    Quote Originally Posted by rpmws View Post
    what memory limit do you see in:
    /usr/local/cpanel/3rdparty/etc/php.ini

    Try increasing that and then restart cpanel.
    It was showing 8M, I increased that to 32M and increase the timeout setting to 60sec from 30sec.

    All is working fine now!!

    THANK YOU VERY MUCH!!!

    Tom
    How to do that!
    If referring to the memory limits defined in a PHP configuration file, the files named "php.ini" may be modified using any command-line text editor (e.g., vi, vim, nano, pico); here are two commands you may use to locate the current value:
    Code:
    # grep -i "^memory_limit" /usr/local/cpanel/3rdparty/etc/php.ini
    # grep -i "^memory_limit" /usr/local/cpanel/3rdparty/etc/horde/php.ini
    Here is an example of the command-line output from the above examples and in this case there is a PHP memory limit of 128MB defined as "128M"; the 8MB reference I am seeing only in a descriptive comment on the same line:
    Code:
    # grep -i "^memory_limit" /usr/local/cpanel/3rdparty/etc/php.ini
    memory_limit = 128M			; Maximum amount of memory a script may consume (8MB)
    # grep -i "^memory_limit" /usr/local/cpanel/3rdparty/etc/horde/php.ini
    memory_limit = 128M			; Maximum amount of memory a script may consume (8MB)
    Last edited by cPanelDon; 04-28-2010 at 05:27 PM. Reason: Clarification

  4. #19
    Member
    Join Date
    Jul 2006
    Posts
    90

    Default Still not good

    The result is the same,

    I configured 256M in 3 php.ini-s [/usr/local/cpanel/3rdparty/etc/php.ini + roundcube/php.ini horde/php.ini], - anyway the main php.ini after cpanel restart - resets to 128M, even added
    ini_set('memory_limit','256M'); in SMTP.php + mime.php .

    The same error occurs [horde]:

    Fatal error: Out of memory (allocated 92274688) (tried to allocate 28331707 bytes) in /usr/local/cpanel/3rdparty/lib/php/Net/SMTP.php on line 836

    cPanel 11.25.0-S44718 - WHM 11.25.0 - X 3.9
    CENTOS 5.4 x86_64 standard on serverXXX

    So wherefrom is this 88MB coming - 92274688 bits /same length as my above test?

    Roundcube - remains in "Sendind message" status, and has almost the same /Out of memory/ according to the error_log:

    [04-May-2010 09:02:23] PHP Fatal error: Out of memory (allocated 105906176) (tried to allocate 28331323 bytes) in /usr/local/cpanel/base/3rdparty/roundcube/program/lib/Net/SMTP.php on line 887
    [04-May-2010 09:07:30] PHP Fatal error: Out of memory (allocated 105906176) (tried to allocate 28331329 bytes) in /usr/local/cpanel/base/3rdparty/roundcube/program/lib/Net/SMTP.php on line 887

    The only working Webmail is SquirrelMail.
    Any other hints to rewrite the memory_limit [?] or to make those other 2 webmails working with ~10MB attached files?

    Regards,
    Lehel

  5. #20
    cPanel Quality Assurance Analyst cPanelDon's Avatar
    Join Date
    Nov 2008
    Location
    Houston, Texas, U.S.A.
    Posts
    2,555
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default

    Quote Originally Posted by lehels View Post
    The result is the same,

    I configured 256M in 3 php.ini-s [/usr/local/cpanel/3rdparty/etc/php.ini + roundcube/php.ini horde/php.ini], - anyway the main php.ini after cpanel restart - resets to 128M, even added
    ini_set('memory_limit','256M'); in SMTP.php + mime.php .

    The same error occurs [horde]:

    Fatal error: Out of memory (allocated 92274688) (tried to allocate 28331707 bytes) in /usr/local/cpanel/3rdparty/lib/php/Net/SMTP.php on line 836

    cPanel 11.25.0-S44718 - WHM 11.25.0 - X 3.9
    CENTOS 5.4 x86_64 standard on serverXXX

    So wherefrom is this 88MB coming - 92274688 bits /same length as my above test?

    Roundcube - remains in "Sendind message" status, and has almost the same /Out of memory/ according to the error_log:

    [04-May-2010 09:02:23] PHP Fatal error: Out of memory (allocated 105906176) (tried to allocate 28331323 bytes) in /usr/local/cpanel/base/3rdparty/roundcube/program/lib/Net/SMTP.php on line 887
    [04-May-2010 09:07:30] PHP Fatal error: Out of memory (allocated 105906176) (tried to allocate 28331329 bytes) in /usr/local/cpanel/base/3rdparty/roundcube/program/lib/Net/SMTP.php on line 887

    The only working Webmail is SquirrelMail.
    Any other hints to rewrite the memory_limit [?] or to make those other 2 webmails working with ~10MB attached files?

    Regards,
    Lehel
    Regarding Roundcube, I believe the issue may be alleviated in a recent Beta version from the upstream vendor; the following is the applicable change log entry and reference to the related bug report that includes verbose details:
    Change Log – Roundcube Webmail

Similar Threads & Tags
Similar threads

  1. Replies: 2
    Last Post: 06-23-2011, 04:26 PM
  2. Fatal error: Out of memory
    By Kimono in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 04-07-2011, 12:36 PM
  3. memory size exhausted
    By glenn52 in forum New User Questions
    Replies: 3
    Last Post: 01-27-2011, 08:53 PM
  4. virtual memory exhausted error while upgrading apache
    By vgaspar in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 09-03-2007, 05:19 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube