Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online
1 registered (Gizmo), 31 Guests and 7 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 08/15/11
Posts: 17
Top Posters (30 Days)
Ruben 46
Bert 26
Gizmo 18
Rob Provencher 10
Rimex 9
SD 7
sw55 6
Eugene 5
Matthias1976 4
Dunny 3
Latest Photos
Uhm...
Mayan End of World
Gas Station Disco Video Shoot
Test Pictures
Audrey Kate
Page 2 of 2 < 1 2
Topic Options
#249490 - 06/11/12 08:22 PM Re: PHP Fatal error: memory limit [Re: Myke]
Myke Offline
member
Registered: 07/07/06
Posts: 128
Well, since I do have access smile are there any suggestions as to how I may debug this?
Top
Express Hosting
Express Hosting "We are the official hosting company of UBB.threads. Ask us about our free migration services to migrate your UBB.threads installation."
#249523 - 06/16/12 06:54 AM Re: PHP Fatal error: memory limit [Re: Myke]
Blust Offline
stranger
Registered: 09/24/06
Posts: 3
Meh crazy
Top
#251131 - 12/06/12 12:11 PM Re: PHP Fatal error: memory limit [Re: Myke]
Charlie Heidal Offline
stranger
Registered: 12/28/03
Posts: 16
Loc: San Diego California
So I'm having this same problem with memory allocation and resource s are being eaten. It looks like its eating a gig!

lep is entry process limit, essentially the number of scripts and such that can be run
Amem = average mem
Mmem = max memory usage
lmem = mem limit
memf = number of times the scripts have trashed because it reached the memory limit.


From To aCPU mCpu aEP mEP lEP aMEM mMEM lMEM MemF MepF
12-06 12:00 12-06 12:05 0 16 0 0 20 0 0 1.0G 0 0
12-06 11:00 12-06 12:00 0 33 0 0 20 492K 89.1M 1.0G 0 0
12-06 10:00 12-06 11:00 0 33 0 0 20 972K 290.0M 1.0G 0 0
12-06 09:00 12-06 10:00 0 33 0 0 20 0 0 1.0G 0 0
12-06 08:00 12-06 09:00 0 50 0 0 20 6.6M 1.0G 1.0G 233 0
12-06 07:00 12-06 08:00 0 66 0 0 20 13.5M 1.0G 1.0G 1090 0
12-06 06:00 12-06 07:00 0 50 0 0 20 6.3M 1.0G 1.0G 231 0
12-06 05:00 12-06 06:00 0 33 0 0 20 124K 87.7M 1.0G 0 0

So the question is this: What can I do to reduce the amount of memory this is eating (because the ISP has already said they will not increase my memory. They are using CloudLinux and it limits the cpu and memory usage per user). I'm somewhat stuck here. Do I need to seek a different ISP?
_________________________
If at First you do not succeed then Skydiving is not for you..
Top
#251134 - 12/06/12 03:43 PM Re: PHP Fatal error: memory limit [Re: Myke]
Gizmo Online   cat

Registered: 06/05/06
Posts: 15455
Loc: Portland, OR; USA
Have they told you WHAT is eating all of the resources? There isn't much you can do if you can't see what scripts are effecting apache/mysql, if apache/mysql are indeed what's going crazy, etc.

If you have a large site I'd recommend running a VPS (I use Interserver for mine [3 slice CentOS VPS with no included cpanel in the NJ center]).
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime Supporter, Beta Tester & Resident Post-A-Holic.
Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Top
#251136 - 12/06/12 09:28 PM Re: PHP Fatal error: memory limit [Re: Gizmo]
Charlie Heidal Offline
stranger
Registered: 12/28/03
Posts: 16
Loc: San Diego California
So after further checking its not UBBS, its wordpress that is screwing up. UBBs is running happy as a clam...until wordpress sucks up all the resources... Time to go hit a different blog...

Thanks





Edited by Charlie Heidal (12/06/12 09:35 PM)
_________________________
If at First you do not succeed then Skydiving is not for you..
Top
#251137 - 12/07/12 12:27 AM Re: PHP Fatal error: memory limit [Re: Myke]
Gizmo Online   cat

Registered: 06/05/06
Posts: 15455
Loc: Portland, OR; USA
Lol, not a problem; the UBB is a pretty light script, so unless you had tons of traffic it should be able to utilize it with little issue...
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime Supporter, Beta Tester & Resident Post-A-Holic.
Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Top
#251865 - 12/30/12 06:57 PM Re: PHP Fatal error: memory limit [Re: Myke]
Charlie Heidal Offline
stranger
Registered: 12/28/03
Posts: 16
Loc: San Diego California
Problem solved, moved to a new ISP with better protection for my site (spam bots were attacking the old site). Anyway, so I'm on the new system and finally (!) have access to a php5.ini file. I have memory_limit=128M to alleviate some other issues I was seeing. I have one hurdle I cannot seem to get past. I have the following variables set:
upload_max_filesize = 5M
post_max_size = 5M
yet I get this when I upload a 682K image through image manager for one of the boards.

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 6695129 bytes) in /home/content/52/10210752/html/ubbthreads/libs/ubbthreads.inc.php on line 898

It looks like its absorbing almost 7 meg to handle a < 1 meg image...or am I missing something? (*only one other user on the boards at the time and he's reading posts only).




Edited by Charlie Heidal (12/30/12 06:58 PM)
_________________________
If at First you do not succeed then Skydiving is not for you..
Top
#251879 - 12/31/12 12:12 PM Re: PHP Fatal error: memory limit [Re: Myke]
Ruben Offline

Registered: 12/20/03
Posts: 4933
Loc: Lutz,FL
well the allowed size 134217728 bytes equals 128mb which I believe is called memory_limit in php.
So your message tells me that your environment has 128mb set and did not have enough system memory free to allow up to 6695129 possible bytes that ubb is trying to reserve to use for uploading.
So that equates to 6mb which is probably the limit you set in ubb.

I am not sure how to check how much of the memory_limit is being used or what is using it.

But you could try to lower the ubb setting for now to 1mb which would be 1048576 to enter in ubb if you can't increase the memory_limit, At my site memory_limit is set to 256M
_________________________
Blue Man Group


There is no such thing as stupid questions. Just stupid answers
Top
#251880 - 12/31/12 01:35 PM Re: PHP Fatal error: memory limit [Re: Myke]
Gizmo Online   cat

Registered: 06/05/06
Posts: 15455
Loc: Portland, OR; USA
It's just the memory limit, and I'm not aware of anything to check what is in use...
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime Supporter, Beta Tester & Resident Post-A-Holic.
Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Top
#251881 - 12/31/12 01:53 PM Re: PHP Fatal error: memory limit [Re: Gizmo]
Ruben Offline

Registered: 12/20/03
Posts: 4933
Loc: Lutz,FL
Well I did find something to read it
create a php file with:
Php Code:

<?php
echo system('free');
?>


upload it to your server.
Then run it in your browser
But I can't figure out how to read what it really means.

what I got back was:
Quote:
total used free shared buffers cached Mem: 6083128 5719164 363964 0 195752 3437780 -/+ buffers/cache: 2085632 3997496 Swap: 14319608 136 14319472 Swap: 14319608 136 14319472
_________________________
Blue Man Group


There is no such thing as stupid questions. Just stupid answers
Top
Page 2 of 2 < 1 2



Moderator:  AllenAyres, Harold, Ian, Ron M 
Shout Box

Today's Birthdays
No Birthdays
Recent Topics
Time zone setup
by skicomau
05/22/13 12:16 AM
Express hosting.
by Ruben
05/16/13 03:54 PM
Level of detail in new user registration emails
by Mitch P.
05/15/13 10:20 PM
Approving users
by Bert
05/15/13 09:22 PM
Users randomly added to other group
by Bert
05/15/13 09:15 PM
Forum Stats
10967 Members
36 Forums
33958 Topics
183410 Posts

Max Online: 978 @ 06/24/07 10:19 PM
Random Image