Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions

Reply
 
Thread Tools Display Modes
  #1  
Old 06-12-2014, 09:16 AM
DreadsUK's Avatar
DreadsUK DreadsUK is offline
 
Join Date: Jan 2014
Posts: 355
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Memory maxing out on forum

OK, so our server had to be rebooted the other morning because we'd maxed out the memory. This is the first time this has happened so im looking at whats best to be done.

The server hosts have suggested we upgrade to a bigger memory package.I am wondering if there are practical things i can do this end first.

Is there a way we can work out where most of the memory is going? Are there things that can be deleted that won't then return 404 errors?

Thanks
Reply With Quote
  #2  
Old 06-12-2014, 09:42 AM
Disco_Dave's Avatar
Disco_Dave Disco_Dave is offline
 
Join Date: May 2011
Location: Belfast
Posts: 586
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What host are you with?
Reply With Quote
  #3  
Old 06-12-2014, 09:57 AM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Server and site specs would help also.
Reply With Quote
  #4  
Old 06-12-2014, 10:07 AM
DreadsUK's Avatar
DreadsUK DreadsUK is offline
 
Join Date: Jan 2014
Posts: 355
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Disco_Dave View Post
What host are you with?
Currently with Nimbus Hosting on the package: -

Whirlwind
1GB Memory
20GB Disk Space
100GB Bandwidth Transfer
Plesk 10 Domain License
Reply With Quote
  #5  
Old 06-12-2014, 03:35 PM
final kaoss final kaoss is offline
 
Join Date: Apr 2006
Posts: 1,314
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here you go dreads, I can recommend flipperhost to you. I've been using them for a couple of years and very satisfied.

FlipperHost – $6.99/month 2GB OpenVZ VPS

4 CPU Cores
2GB RAM
2GB vSwap
100GB Disk space
3TB Bandwidth
100Mbps uplink
1x IPv4 address
OpenVZ/SolusVM
$6.99/Month | Order

Or another great vps deal (which I've never used yet):

VPSDime High Memory
6GB RAM
30GB disk space
4 vCPU cores
2TB bandwidth
1Gbps uplink
1x IPv4 address
IPv6 in Dallas/LA
OpenVZ/Custom Panel
Dallas, New Jersey
Los Angeles
$7/month
Order here

Also there is a way to tell what's using up memory on linux but I forget the method atm. I'll post back if I find it.

Run the top command and you'll get results like this.

HTML Code:
top - 11:23:34 up 2 days, 19:20,  2 users,  load average: 0.00, 0.00, 0.00
Tasks: 202 total,   1 running, 201 sleeping,   0 stopped,   0 zombie
Cpu(s):  0.0%us,  0.0%sy,  0.0%ni,100.0%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
Mem:  32940056k total, 19210460k used, 13729596k free,   182428k buffers
Swap:  2031608k total,        0k used,  2031608k free, 18688628k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND                                                        
32326 csxbot    15   0 12760 1168  812 R  0.3  0.0   0:00.02 top                                                             
    1 root      15   0 10368  700  584 S  0.0  0.0   0:02.17 init                                                            
    2 root      RT  -5     0    0    0 S  0.0  0.0   0:00.00 migration/0                                                     
    3 root      34  19     0    0    0 S  0.0  0.0   0:00.00 ksoftirqd/0                                                     
    4 root      RT  -5     0    0    0 S  0.0  0.0   0:00.00 watchdog/0                                                      
    5 root      RT  -5     0    0    0 S  0.0  0.0   0:00.00 migration/1                                                     
    6 root      34  19     0    0    0 S  0.0  0.0   0:00.00 ksoftirqd/1                                                     
    7 root      RT  -5     0    0    0 S  0.0  0.0   0:00.00 watchdog/1
Reply With Quote
  #6  
Old 06-12-2014, 04:13 PM
tpearl5's Avatar
tpearl5 tpearl5 is offline
 
Join Date: Nov 2001
Location: PA
Posts: 1,014
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Do you have any caching mechanism installed, like xcache? If not, do that and install vboptimize before you switch hosts.

And, yeah, see what is taking up memory like final kaoss mentioned. It's either mysql or apache.
Reply With Quote
  #7  
Old 06-13-2014, 08:44 AM
DreadsUK's Avatar
DreadsUK DreadsUK is offline
 
Join Date: Jan 2014
Posts: 355
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by final kaoss View Post
Here you go dreads, I can recommend flipperhost to you. I've been using them for a couple of years and very satisfied.

FlipperHost ? $6.99/month 2GB OpenVZ VPS

4 CPU Cores
2GB RAM
2GB vSwap
100GB Disk space
3TB Bandwidth
100Mbps uplink
1x IPv4 address
OpenVZ/SolusVM
$6.99/Month | Order

Or another great vps deal (which I've never used yet):

VPSDime High Memory
6GB RAM
30GB disk space
4 vCPU cores
2TB bandwidth
1Gbps uplink
1x IPv4 address
IPv6 in Dallas/LA
OpenVZ/Custom Panel
Dallas, New Jersey
Los Angeles
$7/month
Order here
Thanks mate, thats really helpful. Gonna take a look at those. clearly better specs. My only concern is we are uk based and we'd be hosted in the states. Would this be an issue?

Quote:
Originally Posted by final kaoss View Post
Also there is a way to tell what's using up memory on linux but I forget the method atm. I'll post back if I find it.

Run the top command and you'll get results like this.

HTML Code:
top - 11:23:34 up 2 days, 19:20,  2 users,  load average: 0.00, 0.00, 0.00
Tasks: 202 total,   1 running, 201 sleeping,   0 stopped,   0 zombie
Cpu(s):  0.0%us,  0.0%sy,  0.0%ni,100.0%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
Mem:  32940056k total, 19210460k used, 13729596k free,   182428k buffers
Swap:  2031608k total,        0k used,  2031608k free, 18688628k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND                                                        
32326 csxbot    15   0 12760 1168  812 R  0.3  0.0   0:00.02 top                                                             
    1 root      15   0 10368  700  584 S  0.0  0.0   0:02.17 init                                                            
    2 root      RT  -5     0    0    0 S  0.0  0.0   0:00.00 migration/0                                                     
    3 root      34  19     0    0    0 S  0.0  0.0   0:00.00 ksoftirqd/0                                                     
    4 root      RT  -5     0    0    0 S  0.0  0.0   0:00.00 watchdog/0                                                      
    5 root      RT  -5     0    0    0 S  0.0  0.0   0:00.00 migration/1                                                     
    6 root      34  19     0    0    0 S  0.0  0.0   0:00.00 ksoftirqd/1                                                     
    7 root      RT  -5     0    0    0 S  0.0  0.0   0:00.00 watchdog/1
Where do i go to run this? never done this before or know what it is. Noob here
Reply With Quote
  #8  
Old 06-13-2014, 02:01 PM
Dave Dave is offline
 
Join Date: May 2010
Posts: 2,583
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by DreadsUK View Post
Thanks mate, thats really helpful. Gonna take a look at those. clearly better specs. My only concern is we are uk based and we'd be hosted in the states. Would this be an issue?



Where do i go to run this? never done this before or know what it is. Noob here
I believe the latency between UK and USA is somewhere between 50 and 100ms, so you can expect such delay added to your HTTP requests. Personally, I wouldn't buy a host based in USA when my customers are from UK.
Reply With Quote
  #9  
Old 06-13-2014, 05:18 PM
final kaoss final kaoss is offline
 
Join Date: Apr 2006
Posts: 1,314
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This should be able to help you with it.
http://linux.about.com/od/commands/l/blcmdl1_top.htm
Reply With Quote
  #10  
Old 06-13-2014, 05:30 PM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Why do you think the server is maxing out its memory, and why does your host think that?
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

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

Forum Jump


All times are GMT. The time now is 02:17 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06030 seconds
  • Memory Usage 2,260KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_html
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete