HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


Host Provider Memory Setting for ocPOrtal

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#100864 (In Topic #19791)
Avatar

Honoured member

As the ocPortal platform uses significantly more memory than Simple Machines, we had our host provider up the memory limit from 1GB to 2GB. However, unfortunately we are still getting out of memory PHP errors - especially when editing content.

It's getting annoying, and sure our members do not appreciate it as well…..

Trying to end this once and for all, and have the following question if anyone can answer objectively:

What is the recommended setting?

Thanks!

Rick
Back to the top
 
Posted
Rating:
#100866
Avatar

Hi,

I think the host is misunderstanding something here.

ocPortal recommends 32MB as a minimum, which is obviously a lot lower than 1GB.

There are a lot of memory errors in your log, e.g.

Code

[23-Oct-2013 13:43:41 UTC] PHP Fatal error:  Out of memory (allocated 31457280) (tried to allocate 71 bytes) in /home/fauowlsn/public_html/sources/global.php on line 161
31457280 is exactly 30MB (31457280/1024/1024=30).

ocPortal is setting the PHP limit to 64MB (it does this on all servers that grant it permission to). 64MB is obviously more than 30MB, but the error you are seeing I believe is coming from something other than PHP. I have seen these issues caused by a VPS running out of memory, or possibly a CGI limit defined somewhere.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#100867
Avatar

Honoured member

Hi Chris,

Thanks for the quick reply.

What do you recommend we have them do?

BTW, we are not on a VPS….
Back to the top
 
Posted
Rating:
#100868
Avatar

They should try and find what is set at 30MB. My guess is something in the Apache config somewhere.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#100869
Avatar

Honoured member

Chris Graham said

They should try and find what is set at 30MB. My guess is something in the Apache config somewhere.

Ok, thanks…i have asked them to check the Apache…they indicated that the Php is set to 128, so can't be that.

On a side note:

Their initial response was "how can we recreate this issue?"

(welcome to my world)


Back to the top
 
Posted
Rating:
#100870
Avatar

Yeah, web hosts drive me crazy.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#100871
Avatar

Btw, you might tell them the errors are logged in public_html/data_custom/errorlog.php. At least they can see that they've happened and gauge if they've managed to stop them.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#100872
Avatar

Honoured member

I will pass that along. Did note that the trigger point is not always 30 MB - there are higher ones there too.

BTW, meant to also ask if there was a notification somewhere in ADMIN Zone when a new version of PHP is released and adjustments are needed?

Back to the top
 
Posted
Rating:
#100874
Avatar

Honoured member

Hi Chris,

Ok, here is the feedback they sent:

"we reviewed the log file and
found that the issue is related to MySQL. We also briefly checked it and found approx 1 000 000 records in the ocp_stats table of fauowlsn_ocpnew
database. Is this database related to the site? If so, it would be good to
clean it regularly."

They also asked what specifically they should check in the apache config settings?
Back to the top
 
Posted
Rating:
#100876
Avatar

BTW, meant to also ask if there was a notification somewhere in ADMIN Zone when a new version of PHP is released and adjustments are needed?

No, we don't track PHP versions apart from resolving code compatibility issues when they come up.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#100877
Avatar

Florida_Owl said

Hi Chris,

Ok, here is the feedback they sent:

"we reviewed the log file and
found that the issue is related to MySQL. We also briefly checked it and found approx 1 000 000 records in the ocp_stats table of fauowlsn_ocpnew
database. Is this database related to the site? If so, it would be good to
clean it regularly."

They also asked what specifically they should check in the apache config settings?

Unless they have some very subtle technical reason for coming to this conclusion, they are being completely moronic. I think whoever wrote that has the IT experience of a <insert animal reference>.

ocPortal does not read the stats table in when you edit posts. They have just gone and looked for something "big" and then assumed that caused the problem.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#100878
Avatar

Honoured member

Chris Graham said

BTW, meant to also ask if there was a notification somewhere in ADMIN Zone when a new version of PHP is released and adjustments are needed?

No, we don't track PHP versions apart from resolving code compatibility issues when they come up.

Ok, thanks Chris.

Any info on the Apache you could offer would be helpful, as they had no idea what that was…

Must say I do not either!
Back to the top
 
Posted
Rating:
#100879
Avatar

A little clue might be that the logged errors have absolutely nothing to do with stats, the code is not failing when checking stats, it's failing when executing PHP, and doing so at 30MB of memory.

30 seconds Googling…
core - Apache HTTP Server


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#100880
Avatar

The web host does not know what Apache is?

It's a web server!


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#100881
Avatar

Clearly the host is irritating me :lol:.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#100882
Avatar

Honoured member

Chris Graham said

Florida_Owl said

Hi Chris,

Ok, here is the feedback they sent:

"we reviewed the log file and
found that the issue is related to MySQL. We also briefly checked it and found approx 1 000 000 records in the ocp_stats table of fauowlsn_ocpnew
database. Is this database related to the site? If so, it would be good to
clean it regularly."

They also asked what specifically they should check in the apache config settings?

Unless they have some very subtle technical reason for coming to this conclusion, they are being completely moronic. I think whoever wrote that has the IT experience of a <insert animal reference>.

ocPortal does not read the stats table in when you edit posts. They have just gone and looked for something "big" and then assumed that caused the problem.

That is what I thought too…we ran into this same type of "questionable" feedback when bots were crawling the site. They blamed the time outs on them at the time and said it was a DDOS attack.  I then pulled all of the IP's and all belonged to regular users, and a couple Google Bots. Ha ha.

Anyway, Francois optimized the database last night. I am pushing this back to them so they can't claim it again…It makes no sense we keep getting out of memory errors when they claim the PHP setting are correct.

Regardless, they bumped up virtual memory to 2GB by request. Going to see if that makes a difference….
Back to the top
 
Posted
Rating:
#100883
Avatar

Honoured member

Chris,

Here is the Apache settings, these look good, correct?

RLimitMEM 1261102762
RLimitCPU 240
ServerLimit 150
Back to the top
 
Posted
Rating:
#100885
Avatar

RLimitMEM looks fine to me.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#100886
Avatar

Honoured member

Hmmm, well if PHP is OK, and Apache is OK too, then I am at a loss as to why the error messages are coded the way they are.

Will have to keep an eye on it…so far no allocation failure errors since vMem was set to 2GB as a test. Once that goes back to 1GB my hunch is that it may return.

Back to the top
 
Posted
Rating:
#100899
Avatar

Community saint

Oh the stories I can tell you of hosting <insert animal reference> ' s lol! At least yours asked is there a way the can recreate the issue before coping out completely.  

I have had one were after a machine upgrade I lost some data. I was out of town when their less than 24 notice came in that they were gonna upgrade. When I got back Site was reverted to old data version. I asked what happened to my data and they tried to tell me I must have deleted it? Or that my password was compromised and someone else did using my PW?
Both responses were BS as first my PW was probably close to 20 characters in length and looks something like this  Hn3fFkl!5DtrnTn31PoO and had been recently changed within 2 months So no way that PW was brute forced or Dictionary attacked and none of my machines had been compromised.

 They had no recent back up either to restore from (and neither did I since i was out of town) So I had to manually rebuild the data as best I could for important parts. But what really irked me was them trying to pass it off as my fault and out and out lied about their mistakes.

But nearly every support request I give them their first reply is always some kind of cop out and I have to research fixes myself and point them out and fight with them to implement nearly every time. It's like they're either inept or lazy I don't know which? But I suspect both!
Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Expand