Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
Who's Online
4 registered (PianoWorld, theskyking, WebMagic, 1 invisible), 13 Guests and 22 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 01/30/08
Posts: 22
Top Posters (30 Days)
Ruben Rocha 165
Rick 116
Gizmo 105
Thelockman 61
driv 50
AllenAyres 35
ScriptKeeper 34
Mark S 30
Ian 30
phoebe 25
Latest Photos
My Home System
test photo gallery
Bernese Mountain Dogs
My Daimler
Dorado and shark
Page 1 of 2 1 2 >
Topic Options
Rate This Topic
#213388 - 05/25/08 12:44 PM Apache Crashing Due to Memory Limit Being Reached On VPS
doug Offline
member

Registered: 01/24/07
Posts: 121
I just moved to a new VPS which on paper is better than my old VPS - faster processor, more RAM, more bandwidth, etc. - but I have just discovered it all means nothing.

Apparently the only thing that really matters is how much kernel memory you are allotted when they set up the VPS and I assume that is dependent on how many VPS's are on the server.

So, my new VPS gives me slightly less memory than my old - which is causing hpptd to crash - even with this light weekend traffic. I am going to hate to see what happens after this long weekend!

Any ideas as to what I can change to reduce this memory usage - which incidentally seems to be high even when the forums are closed?

Something doesn't seem right as it seems from the memory being used that I need a dedicated server and not a VPS just to run the BB.

Top
#213390 - 05/25/08 01:01 PM Re: Apache Crashing Due to Memory Limit Being Reached On VPS [Re: doug]
Thelockman Offline
addict
****

Registered: 02/10/07
Posts: 409
Loc: Pennsylvania
Are you getting CPU exceeded pages and such on your site?

I have seen this with many hosting companies causing many interactive sites to be CPU limited and causing outages on the site.
_________________________
Beagle World - A forum for those who are owned by beagles.
Track Thunder - The Unofficial Racing Forum

Top
#213391 - 05/25/08 01:08 PM Re: Apache Crashing Due to Memory Limit Being Reached On VPS [Re: Thelockman]
doug Offline
member

Registered: 01/24/07
Posts: 121
I am not really sure what you are asking as I really do not know much about the technical end smile

Right now though, with about half the normal traffic I receive "server load" is flashing red at "2.19" so another crash is imminent by the looks of things.

Top
#213392 - 05/25/08 02:34 PM Re: Apache Crashing Due to Memory Limit Being Reached On VPS [Re: doug]
doug Offline
member

Registered: 01/24/07
Posts: 121
I might have jumped to some false conclusions about the memory limits and was reading some numbers wrong. The culprit may be statistics software running in the background. I have limited when they can run now so I will have to monitor this I guess.

Top
#213395 - 05/25/08 07:11 PM Re: Apache Crashing Due to Memory Limit Being Reached On VPS [Re: doug]
Gizmo Moderator Offline

***

Registered: 06/04/06
Posts: 11968
Loc: Portland, OR; USA
You may need to tune apache to work properly on the new server; it's usually configured (by default) to have ultimately unlimited resources
_________________________
UGN Security, Elite Web Gamers & VNC Web Design Owner
Longtime UBB Supporter, UBB7 Beta Tester & Resident Post-A-Holic

Top
#213398 - 05/25/08 08:01 PM Re: Apache Crashing Due to Memory Limit Being Reached On VPS [Re: Gizmo]
doug Offline
member

Registered: 01/24/07
Posts: 121
You have'nt written one of your excellent FAQs on the subject by any chance have you?

I was searching the net for one and keep finding links to one that sounds excellent - but the site no longer exists...

Top
#213399 - 05/25/08 08:12 PM Re: Apache Crashing Due to Memory Limit Being Reached On VPS [Re: doug]
Gizmo Moderator Offline

***

Registered: 06/04/06
Posts: 11968
Loc: Portland, OR; USA
Well, it can honestly vary, and a lot of it can be just trial and error... We have 384mb ram allocated, so our config is tuned low:
Code:
<IfModule prefork.c>
StartServers            8
MinSpareServers         5
MaxSpareServers         20
ServerLimit             30
MaxClients              30
MaxRequestsPerChild     8000
</IfModule>
_________________________
UGN Security, Elite Web Gamers & VNC Web Design Owner
Longtime UBB Supporter, UBB7 Beta Tester & Resident Post-A-Holic

Top
#213400 - 05/25/08 08:25 PM Re: Apache Crashing Due to Memory Limit Being Reached On VPS [Re: Gizmo]
doug Offline
member

Registered: 01/24/07
Posts: 121
Thanks Gizmo, that gives me a starting point.

I am using WHM and they have a link there for Memory Restrictions - "This tool will calculate new Apache memory limits based upon past memory usage. The new memory limits will be updated in the Apache configuration."

I don't know if using this would be a good thing or a bad thing - does anyone have any experience with this tool? If I am crashing because of lack of memory it seems to me using a "Memory Restriction" tool may not be what I am looking for...

Top
#213401 - 05/25/08 08:41 PM Re: Apache Crashing Due to Memory Limit Being Reached On VPS [Re: doug]
Gizmo Moderator Offline

***

Registered: 06/04/06
Posts: 11968
Loc: Portland, OR; USA
Personally, I find these CP's everyone uses for small setups overkill... they use a lot of resources lol.. you probably run under 20 sites on your vps? I run over 50, and just use WebMin/VirtualMin, which leave a tiny footprint on the server.
_________________________
UGN Security, Elite Web Gamers & VNC Web Design Owner
Longtime UBB Supporter, UBB7 Beta Tester & Resident Post-A-Holic

Top
#213402 - 05/25/08 08:52 PM Re: Apache Crashing Due to Memory Limit Being Reached On VPS [Re: doug]
doug Offline
member

Registered: 01/24/07
Posts: 121
Gizmo, you have MaxRequestsPerChild 8000
I have MaxRequestsPerChild 0 - zero, diddly - can't be good, can it?

Top
Page 1 of 2 1 2 >


Moderator:  Gizmo 
Shout Box

Today's Birthdays
Eric Flyxe, mark_l_88@yahoo.com
Recent Topics
restricting a media tag to a single forum...
by bakerzdosen
Yesterday at 12:52 PM
Recover topics??
by femistyle
Yesterday at 12:22 PM
duplicate entries in viewmessage.php lang file (7.4.1)
by alnadabi
Yesterday at 05:54 AM
Order of variables in language files should be permanent
by alnadabi
Yesterday at 05:12 AM
How do I set Moderation Queue for an individual user?
by luket
11/20/08 11:28 AM
Forum Stats
4249 Members
33 Forums
30488 Topics
154661 Posts

Max Online: 978 @ 06/24/07 08:19 PM