Out of memory issues

If you run tt-rss on an officially unsupported platform (shared hosting, Windows, etc.) post here
Wibbly
Bear Rating Trainee
Bear Rating Trainee
Posts: 30
Joined: 03 May 2013, 12:35

Re: Out of memory issues

Postby Wibbly » 18 Sep 2013, 11:33

JustAMacUser wrote:If you're on shared hosting, setting the memory limit to 256 MB may not have any effect because the host may override it. Create a file with phpinfo() in it and see what that reports. Remember to delete the file when you're done.


phpinfo() in the link below, with references to my domain replaced. What am I looking for?

https://www.dropbox.com/s/7kjmutd5bwl0a ... %28%29.pdf

User avatar
LifeWOutMilk
Bear Rating Disaster
Bear Rating Disaster
Posts: 52
Joined: 02 Apr 2013, 21:57

Re: Out of memory issues

Postby LifeWOutMilk » 18 Sep 2013, 20:57

Is your hosting provider Cyber Host? If not, you're on a reseller's plan and I'd highly recommend moving to a real shared hosting provider at a minimum.

Edit: http://whois.domaintools.com/95.215.225.1

vilain
Bear Rating Trainee
Bear Rating Trainee
Posts: 40
Joined: 29 Jun 2013, 08:57

Re: Out of memory issues

Postby vilain » 19 Sep 2013, 00:58

Your memory_limit (in the Core php configuration) is set to 256M. This is my setting also and I'm not having any problems.

http://stackoverflow.com/questions/4399 ... php-apache

discusses the problem. You could try creating a .htaccess in your ttrss directory with

Code: Select all

php_value memory_limit 300M


in the file. If apache is configured to allow_override for your directory, localized php settings in .htaccess will work.

JustAMacUser
Bear Rating Overlord
Bear Rating Overlord
Posts: 373
Joined: 20 Aug 2013, 23:13

Re: Out of memory issues

Postby JustAMacUser » 19 Sep 2013, 19:55

As others have said, your memory is 256 MB, which should be enough in my opinion. Is there anything else running on this server?

xtaz
Bear Rating Master
Bear Rating Master
Posts: 174
Joined: 24 Dec 2009, 16:48

Re: Out of memory issues

Postby xtaz » 20 Sep 2013, 12:08

Definitely enough. My PHP memory limit is set to 128MB and I have approx 70 feeds and it works perfectly fine. There's tons of other things running on my server too including several other websites and web applications so 256MB is more than enough. Must be something else. I guess the operating system rather than PHP might be running out of memory. Your bar graph showing memory looks pretty healthy, however maybe that's just a snapshot in time and it might be spiking occasionally. Might have to keep an eye on it using top or something.

shabble
Bear Rating Trainee
Bear Rating Trainee
Posts: 33
Joined: 18 Mar 2013, 23:40

Re: Out of memory issues

Postby shabble » 20 Sep 2013, 13:52

Another datum point:

Code: Select all

/etc/php.ini:memory_limit = 128M

183 feeds. No problems here.

AngryChris
Bear Rating Master
Bear Rating Master
Posts: 135
Joined: 08 Apr 2013, 02:42

Re: Out of memory issues

Postby AngryChris » 20 Sep 2013, 18:59

I have 134 feeds with the same 128MB limit and no issues.

Code: Select all

psql (9.1.9)
Type "help" for help.

ttrssdb=> select count(*) from ttrss_feeds;
 count
-------
   134
(1 row)

ttrssdb=>

Code: Select all

[email protected]:~$ grep memory_limit /etc/php5/apache2/php.ini
memory_limit = 128M
[email protected]:~$

That said, the web server may have some ulimit setting that's preventing a thread/process from allocating enough memory for the embedded php interpreter:

Code: Select all

$ ulimit -m
unlimited
$ id
uid=33(www-data) gid=33(www-data) groups=33(www-data)
$

If you have shell access to the machine, run that command as the web server user and see what you get. Since you're on shared hosting, I'm guessing you can't do that, but it's worth looking into if you have access.

User avatar
sleeper_service
Bear Rating Overlord
Bear Rating Overlord
Posts: 884
Joined: 30 Mar 2013, 23:50
Location: Dallas, Texas

Re: Out of memory issues

Postby sleeper_service » 20 Sep 2013, 19:20

I'm probably wrong, but I don't think the number of feeds matters, they're processed pretty serially, and not all loaded into memory or whatever at once. I'd imagine.

that said, 128m, 338 feeds, five users.

User avatar
fox
^ me reading your posts ^
Posts: 6318
Joined: 27 Aug 2005, 22:53
Location: Saint-Petersburg, Russia
Contact:

Re: Out of memory issues

Postby fox » 20 Sep 2013, 19:22

sleeper_service wrote:I'm probably wrong, but I don't think the number of feeds matters, they're processed pretty serially, and not all loaded into memory or whatever at once. I'd imagine.


Yeah, you are right.

Wibbly
Bear Rating Trainee
Bear Rating Trainee
Posts: 30
Joined: 03 May 2013, 12:35

Re: Out of memory issues

Postby Wibbly » 20 Sep 2013, 23:00

Thanks for the leads, all.

Strangely the problems have gone for now, so I've nothing to chase.

That's the thrill of using shared resources, no doubt....

User avatar
LissaCoffey
BANNED_USERS
BANNED_USERS
Posts: 1
Joined: 25 Oct 2013, 14:24
Location: USA
Contact:

Re: Out of memory issues

Postby LissaCoffey » 05 Nov 2013, 13:59

Either there are multiple instances of Apache running (this may be an old model, but I've seen it), each capable of handling a certain number of requests or there's a multi-threaded version running.

User avatar
sleeper_service
Bear Rating Overlord
Bear Rating Overlord
Posts: 884
Joined: 30 Mar 2013, 23:50
Location: Dallas, Texas

Re: Out of memory issues

Postby sleeper_service » 05 Nov 2013, 18:48

LissaCoffey wrote:Either there are multiple instances of Apache running (this may be an old model, but I've seen it), each capable of handling a certain number of requests or there's a multi-threaded version running.

is there supposed to be some meaning associated with your obscure, seemingly irrelevant, *late* post?

User avatar
fox
^ me reading your posts ^
Posts: 6318
Joined: 27 Aug 2005, 22:53
Location: Saint-Petersburg, Russia
Contact:

Re: Out of memory issues

Postby fox » 05 Nov 2013, 19:06

Probably a spam bot.


Return to “Unsupported platforms”

Who is online

Users browsing this forum: No registered users and 1 guest