Your HostICan Community  


Go Back   Your HostICan Community > HostICan Web Hosting > Virtual Private Servers (VPS)
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Virtual Private Servers (VPS) Need help with your VPS plan on HostICan? Please feel free to ask and we'll give you the answers!

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-11-2008, 07:44 AM
Junior Member
 
Join Date: Jun 2008
Posts: 12
Default php hitting the wall a lot.

I am attempting to diagnose a issue with a VPS rage for a business I work with.

We seem to be getting a lot of memory allocation errors throughout the day, most noticeably with 50 plus visitors to a Joomla site. Of course I have run into it at night as well with far less users but less frequently.

I have raised the mem_limit to a rather abnormally high value via .htaccess.

php_value memory_limit 200M

as well as crankd up max_execution

php_value max_execution_time 120

Yet we still seem to white screen of death sometimes. is this a limitation of how much ram we have allocated to the VPS? How can I best diagnose this? I'm hoping it's just a tweak needed not a ram upgrade.

This looks discouraging.
Code:
         total            used             free       shared       buffers          cached
Mem:      12453500   12380304      73196          0          108876       5712004
-/+ buffers/cache:    6559424    5894076
Swap:     16779884        592   16779292
Reply With Quote
  #2 (permalink)  
Old 06-11-2008, 09:50 AM
Junior Member
 
Join Date: Jun 2008
Posts: 12
Default

example.


Fatal error: Out of memory (allocated 3670016) (tried to allocate 4864 bytes)

Fatal error: Out of memory (allocated 524288) (tried to allocate 77824 bytes)

Fatal error: Out of memory (allocated 2883584) (tried to allocate 19456 bytes)

Last edited by ColumbusGEEK : 06-11-2008 at 11:07 AM.
Reply With Quote
  #3 (permalink)  
Old 06-11-2008, 12:38 PM
Junior Member
 
Join Date: Jun 2008
Posts: 12
Default

Looking at the RES column and adding it up seems to point the finger to us using all of our allocated ram resources.

Going to do some tweaking to bring the total usage down. Let's see if that solves it.
Reply With Quote
  #4 (permalink)  
Old 06-11-2008, 12:38 PM
lnxcode's Avatar
The British Kid
 
Join Date: Sep 2007
Location: Richmond, VA
Posts: 1,754
Send a message via AIM to lnxcode Send a message via Skype™ to lnxcode
Default

Quote:
Originally Posted by ColumbusGEEK View Post
example.


Fatal error: Out of memory (allocated 3670016) (tried to allocate 4864 bytes)

Fatal error: Out of memory (allocated 524288) (tried to allocate 77824 bytes)

Fatal error: Out of memory (allocated 2883584) (tried to allocate 19456 bytes)
Please run the command "Free" and let us know the output, but it looks like your using up all your RAM avaliable on the VPS.
__________________
Thanks,

Denis Motova
Affiliate / Operations Manager

HostICan Answers | HostICan Newsletter | HostICan Blog | Become a HostICan Affiliate | Create a Support Ticket.
Reply With Quote
  #5 (permalink)  
Old 06-12-2008, 11:37 AM
Junior Member
 
Join Date: Jun 2008
Posts: 12
Default

I did some tweaking and drastically freed up some ram. Once the node issues clear up I can do some testing to see if I resolved it.
Reply With Quote
  #6 (permalink)  
Old 06-13-2008, 05:53 PM
lnxcode's Avatar
The British Kid
 
Join Date: Sep 2007
Location: Richmond, VA
Posts: 1,754
Send a message via AIM to lnxcode Send a message via Skype™ to lnxcode
Default

I would suggest:

1. Doing an update to cPanel:

# /scripts/upcp (in ssh)

2. Disable Spam Assassin *(TAKES HUGE AMOUNT OF RAM)*

3. Reboot after that.
__________________
Thanks,

Denis Motova
Affiliate / Operations Manager

HostICan Answers | HostICan Newsletter | HostICan Blog | Become a HostICan Affiliate | Create a Support Ticket.
Reply With Quote
  #7 (permalink)  
Old 06-13-2008, 06:30 PM
Shazam's Avatar
Forum Whip-Cracker
 
Join Date: Sep 2007
Posts: 789
Default

Quote:
Originally Posted by lnxcode View Post
I would suggest:

1. Doing an update to cPanel:

# /scripts/upcp (in ssh)

2. Disable Spam Assassin *(TAKES HUGE AMOUNT OF RAM)*

3. Reboot after that.
Maybe, but why would you want to disable the email spam checking mechanism?
__________________
Best,
Shazam
HostICan Community Superhero
Reply With Quote
  #8 (permalink)  
Old 06-14-2008, 12:18 PM
Junior Member
 
Join Date: Jun 2008
Posts: 12
Default

Appreciate the suggestions guys, monitoring memory via top and disabling unneeded resources like spamassasan was the first thing I did. It wasn't enough.

I updated cPanel, we will see how that works out.

Shazam we use Google apps for all of our email needs. It is far superior to anything any hosting provider offers and integrates seamlessly, therefore Spamassasain is not needed. Good thing too, because we would be dropping and losing emails like crazy recently.
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 06:33 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0

Copyright © 2003 - 2008 HostICan. All Rights Reserved.