Jump to:

22979 Posts in 11815 Topics by 2826 members

General Questions

SilverStripe Forums » General Questions » Very High Memory Usage

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1 2
Go to End
Author Topic: 9599 Views
  • BigChris
    Avatar
    Community Member
    63 Posts

    Re: Very High Memory Usage Link to this post

    Hi Barry,

    Thanks for that.

    I'll keep looking over the info you sent but the first thing that leapt out at me was the php.ini settings for max_execution_time 600.

    This by default on PHP is set to 30, I never needed to have it any bigger than 30 - but you may need this. It should kill off any processes taking time at the 30 second mark.

    Chris

  • swaiba
    Avatar
    Forum Moderator
    1769 Posts

    Re: Very High Memory Usage Link to this post

    Chris - that is a fantastic observation - I think it was upped recently to allow a particularly long (but stand alone) script to run and then not lowered. It still doesn't answer why all these sapphire/main scripts are persisting and eating up memory - but is most definitely something!

  • SightUnseen
    Avatar
    Community Member
    28 Posts

    Re: Very High Memory Usage Link to this post

    We're seeing the same issue here, on a site upgraded from 2.3.4 to 2.3.7. Even since this has happened memory has been spiralling up until eventually Apache restarts itself. Normal memory usage on the server is 280-320MB, it'll hit 800MB or so before dying.

    lsof -p xxxxx indicates its httpdocs/sapphire. Investigating presently.

  • edwardlewis
    Avatar
    Community Member
    32 Posts

    Re: Very High Memory Usage Link to this post

    Did anyone manage to find a solution to this?

    We have a site which is using up a very high amount of bandwidth and the guy who looks after our server has said that it is /sapphire/main.php that is triggering all of the alerts his end

    The site gets on average 300 views a month but has used up 2gb of bandwidth so far this month..

    The site uses silverstripe version 2.4.2

    Is this a known problem?

  • Willr
    Avatar
    Forum Moderator
    5462 Posts

    Re: Very High Memory Usage Link to this post

    edward - /sapphire/main.php is the main file behind SilverStripe, it loads everything so that may not be the bottle neck.

    The site gets on average 300 views a month but has used up 2gb of bandwidth so far this month.

    Bandwidth is different to how much resources the site is using. Bandwidth is normally the files you are serving, people loading your pages, pictures... that sort of thing not usually related to the core of SS. The alerts your sysadmin is likely getting from SilverStripe could be memory limit issues which is a common issue.

  • edwardlewis
    Avatar
    Community Member
    32 Posts

    Re: Very High Memory Usage Link to this post

    @Willr.. sorry.. thats me just rushing and not reading things properly!

    I will have another search through the forum or create a new thread

    9599 Views
Page: 1 2
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.