Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 29 Feb 2012, 12:42
BadgerDog BadgerDog is offline
 
Join Date: Oct 2006
Real name: Doug
Question Memory limit being used differs from Master Value set?

I have a problem that I've been looking for an answer to for months, so I thought I'd try a post here and see if anyone can help...

I have two 4.1.3 forums, a development forum and a live forum.

There's a "in use" PHP memory_limit variable that is different between the two forums, even though the Master Value is the same for both.

The Master Value 64M is set in PHP.INI file, but there's apparently also an actual "current real time" value 134217728 being set someplace else on the live forum and to -1 on the devforum that is a mystery.

Attached are a couple of pics that demonstrate the different values in the memory limit variable….

The one shows the values for the devforum and the other shows the values for the live forum.

I have no idea why it says -1 on the devforum and memory_limit 134217728 on the live forum, while the master value from php.ini on both environments shows 64M

I don't know where to change the variables that are currently being used by both forums to other values for testing? How can we track down where both forums are overriding the master 64M value someplace?

Thanks for any help ...

Regards,
Doug
Attached Images
File Type: jpg devforum_memory_limit.jpg (85.4 KB, 10 views)
File Type: jpg liveforum_memory_limit.jpg (77.7 KB, 8 views)
Reply With Quote
  #2  
Old 29 Feb 2012, 14:27
kh99 kh99 is offline
 
Join Date: Aug 2009
Real name: Kevin
Searching the code I find a number of scripts with this line:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


which changes that value, and 128 * 1024 * 1024 = 134217728. But I don't know why it would remain at that setting after the script ends, or why it would report different values between your two sites. Maybe it has something to do with web server threads or something.
Reply With Quote
  #3  
Old 29 Feb 2012, 14:43
BadgerDog BadgerDog is offline
 
Join Date: Oct 2006
Real name: Doug
Thank you for the quick response ...

What would a value of -1 represent? Unlimited allocation or something like that?

Regards,
Doug
Reply With Quote
  #4  
Old 29 Feb 2012, 14:46
kh99 kh99 is offline
 
Join Date: Aug 2009
Real name: Kevin
Originally Posted by BadgerDog View Post
What would a value of -1 represent? Unlimited allocation or something like that?
Yes, looks like that's right. The php manual has a page of all variables that can be set, what the values mean, and where they can be set (some need to be set in the .ini file, others can be set by calling ini_set() in a script): http://us2.php.net/manual/en/ini.list.php
Reply With Quote
  #5  
Old 02 Mar 2012, 13:19
BadgerDog BadgerDog is offline
 
Join Date: Oct 2006
Real name: Doug
Thank you everyone ...

Regards,
Doug
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 21:57.

Layout Options | Width: Wide Color: