Welcome, Guest. Please Login or Register.
November 02, 2024, 01:36:52 PM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  English User Help  |  English Help  |  Memory leak with yabbse 1.5.1 code? « previous next »
Pages: [1] 2 Reply Ignore Print
Author Topic: Memory leak with yabbse 1.5.1 code?  (Read 1216 times)
Brad
Sr. Member
****
Posts: 316


Promoter of YaBB

ICQ - 83017998 WWW
Memory leak with yabbse 1.5.1 code?
« on: April 13, 2003, 07:13:11 PM »
Reply with quote

I am having issues with my boards hitting the memory limits of php.  I have had to up it 3 times now.  I now have it set to 32MB.  Quite often I would get these type of errors.

Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 11520 bytes) in /home/virtual/site1/fst/var/www/html/yabbse/Sources/Subs.php on line 1035

There must be some bad code somewhere?

Logged

David
Destroyer Dave
Global Moderator
YaBB God
*****
Posts: 5761


I'm not a llama!

WWW
Re:Memory leak with yabbse 1.5.1 code?
« Reply #1 on: April 13, 2003, 07:15:10 PM »
Reply with quote

Do you have any mods installed?
Logged

Brad
Sr. Member
****
Posts: 316


Promoter of YaBB

ICQ - 83017998 WWW
Re:Memory leak with yabbse 1.5.1 code?
« Reply #2 on: April 13, 2003, 07:28:35 PM »
Reply with quote

None at all.
Logged

andrea
Global Moderator
YaBB God
*****
Posts: 4400


Peace on Earth

WWW
Re:Memory leak with yabbse 1.5.1 code?
« Reply #3 on: April 13, 2003, 07:34:54 PM »
Reply with quote

Line 1035 is in my 1.5.1 Subs.php this one here:

   global $REMOTE_ADDR, $username, $db_prefix, $ID_MEMBER;

is $REMOTE_ADDR not anyway global?
Logged

Brad
Sr. Member
****
Posts: 316


Promoter of YaBB

ICQ - 83017998 WWW
Re:Memory leak with yabbse 1.5.1 code?
« Reply #4 on: April 13, 2003, 07:40:41 PM »
Reply with quote

I'm not understanding what you are trying to ask?
Logged

andrea
Global Moderator
YaBB God
*****
Posts: 4400


Peace on Earth

WWW
Re:Memory leak with yabbse 1.5.1 code?
« Reply #5 on: April 13, 2003, 07:54:33 PM »
Reply with quote

Quote from: bradst on April 13, 2003, 07:40:41 PM
I'm not understanding what you are trying to ask?

I just looked for line 1035 in Subs.php. Is the memory error always with the same line? And does the error occur with a specific action in the board?
Logged

Brad
Sr. Member
****
Posts: 316


Promoter of YaBB

ICQ - 83017998 WWW
Re:Memory leak with yabbse 1.5.1 code?
« Reply #6 on: April 13, 2003, 07:55:50 PM »
Reply with quote

Mmmm,  I'm not sure?  Will have to monitor that?  The error occurs when I'm just clicking on different links on the boards.
Logged

Gobalopper
Mod Team
YaBB God
*****
Posts: 993


Cookie Monster

WWW
Re:Memory leak with yabbse 1.5.1 code?
« Reply #7 on: April 13, 2003, 08:49:36 PM »
Reply with quote

What version of PHP are you running?
Logged
Brad
Sr. Member
****
Posts: 316


Promoter of YaBB

ICQ - 83017998 WWW
Re:Memory leak with yabbse 1.5.1 code?
« Reply #8 on: April 13, 2003, 09:30:45 PM »
Reply with quote

My site is on a dedicated server.  Here is the list of features I have...
http://www.olm.net/virtualprivateservers/features.html
Logged

David
Destroyer Dave
Global Moderator
YaBB God
*****
Posts: 5761


I'm not a llama!

WWW
Re:Memory leak with yabbse 1.5.1 code?
« Reply #9 on: April 14, 2003, 01:31:57 AM »
Reply with quote

That just says PHP4.  You should make a phpinfo page, if you don't know how there is a FAQ.
Logged

[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:Memory leak with yabbse 1.5.1 code?
« Reply #10 on: April 14, 2003, 06:15:52 AM »
Reply with quote

Quote from: David on April 14, 2003, 01:31:57 AM
That just says PHP4.  You should make a phpinfo page, if you don't know how there is a FAQ.

I've got one.  Don't worry... it's a nice server, and up to specs.

-[Unknown]
Logged
J_Peterson
Sr. Member
****
Posts: 286


Re:Memory leak with yabbse 1.5.1 code?
« Reply #11 on: April 14, 2003, 05:17:30 PM »
Reply with quote

Quote from: bradst on April 13, 2003, 07:13:11 PM
Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 11520 bytes) in /home/virtual/site1/fst/var/www/html/yabbse/Sources/Subs.php on line 1035

Try increasing the ammount of memory a PHP script is allowed to use in the php.ini
Worked fine for me.
Logged

||Find, build and improve online communities||[/b]
[/b]
[/b][/size]
Brad
Sr. Member
****
Posts: 316


Promoter of YaBB

ICQ - 83017998 WWW
Re:Memory leak with yabbse 1.5.1 code?
« Reply #12 on: April 14, 2003, 06:52:40 PM »
Reply with quote

I did that, I now have it set to 32MB but it shouldn't be using that much?  That is why I brought this to the developers attention.

Brad
Logged

David
Destroyer Dave
Global Moderator
YaBB God
*****
Posts: 5761


I'm not a llama!

WWW
Re:Memory leak with yabbse 1.5.1 code?
« Reply #13 on: April 14, 2003, 07:48:02 PM »
Reply with quote

Quote from: bradst on April 14, 2003, 06:52:40 PM
I did that, I now have it set to 32MB but it shouldn't be using that much?  That is why I brought this to the developers attention.

Brad
There's no way it can be using that much.

How does the PHP memory limit work?  I don't think it is on a per script per instance basis.
Logged

groundup
Disciple of Joe, Head Cleric
Mod Team
YaBB God
*****
Posts: 2983


Error 309: Please notify the administrator of this

WWW
Re:Memory leak with yabbse 1.5.1 code?
« Reply #14 on: April 14, 2003, 08:11:47 PM »
Reply with quote

The maximum PHP can use.
Logged

http://www.fastfinancialfreedom.org - financial freedom is a myth
http://www.fastfinancialfreedom.org - financial freedom is a myth
http://www.fastfinancialfreedom.org - financial freedom is a myth
fastfinancialfreedom.org
Pages: [1] 2 Reply Ignore Print 
YaBB SE Community  |  English User Help  |  English Help  |  Memory leak with yabbse 1.5.1 code? « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.097 seconds with 20 queries.