1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Apache is using all my memory

Discussion in 'Apache' started by getatune, Jan 18, 2009.

  1. #1
    Apache is using all my memory. I don't think its a DDOS cause i get 30ms ping to the server. Is their any fixes to this. Its a vps with 512mb ram

    ping thetune.net
     
    getatune, Jan 18, 2009 IP
  2. torrentstorage

    torrentstorage Peon

    Messages:
    518
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You need monitor your site through putty to see whats the problem is.
    Since its a vp and you should have root access log in and restart apahce. If its not a line of poorly wrote code you may need to upgrade your memory
     
    torrentstorage, Jan 18, 2009 IP
  3. getatune

    getatune Well-Known Member

    Messages:
    1,360
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    125
    #3
    i restart it and then 30 seconds later it starts to use all the memory.
     
    getatune, Jan 18, 2009 IP
  4. torrentstorage

    torrentstorage Peon

    Messages:
    518
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #4
    well than you have a problem with your script or you are getting to much traffic for that amount of memory
     
    torrentstorage, Jan 18, 2009 IP
  5. getatune

    getatune Well-Known Member

    Messages:
    1,360
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    125
    #5
    All of a sudden it started to happen.
     
    getatune, Jan 19, 2009 IP
  6. Chuckun

    Chuckun Well-Known Member

    Messages:
    1,161
    Likes Received:
    60
    Best Answers:
    2
    Trophy Points:
    150
    #6
    What type of website(s) are you running from this specific VPS?

    512mb of RAM should be sufficient for most websites, but if your website(s) produce(s) a heavy load (ie; traffic / script is highly demanding), then you should upgrade your RAM specs.

    You may want to revise the other specs of your VPS too, it doesn't have to be down to the amount of RAM... (although it is more than likely)

    Chuckun
     
    Chuckun, Jan 19, 2009 IP
  7. getatune

    getatune Well-Known Member

    Messages:
    1,360
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    125
    #7
    im hosting a forum.
    0.4ghz
    unmetered 10mbps

    My BW went up from 26.7gb to 30.65gb from the last 8 hours.
     
    getatune, Jan 19, 2009 IP
  8. Chuckun

    Chuckun Well-Known Member

    Messages:
    1,161
    Likes Received:
    60
    Best Answers:
    2
    Trophy Points:
    150
    #8
    For a forum, you only need minimum specs... (unless it's on the same kinda level as DP, anyways :p)

    Is it possible that you're being bombarded by any unwanted traffic?
     
    Chuckun, Jan 19, 2009 IP
  9. shabbirbhimani

    shabbirbhimani Well-Known Member

    Messages:
    1,063
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    140
    #9
    I had same problem for begining of this new year and it was a DDoS attack to my server by some of the members / non-members of the forum and I had to swith from GoDaddy which was not allow me to work on their panel with Apache stopped.

    I had a server load of 890 for some time for it to be got a case of DDoS and Max Apache process running.
     
    shabbirbhimani, Jan 19, 2009 IP
  10. getatune

    getatune Well-Known Member

    Messages:
    1,360
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    125
    #10
    maybe someone is DDoSing the server. How do I check the apache logs so I can find the ip and ban them.
     
    getatune, Jan 19, 2009 IP
  11. Chuckun

    Chuckun Well-Known Member

    Messages:
    1,161
    Likes Received:
    60
    Best Answers:
    2
    Trophy Points:
    150
    #11
    To be entirely honest with you, I dont recall ever accessing apache logs... So just have a hunt around in your control panel etc for an Apache Access Log...

    There you should find the information you need to determine the problem, IF it is down to high access demands..
     
    Chuckun, Jan 19, 2009 IP
  12. shabbirbhimani

    shabbirbhimani Well-Known Member

    Messages:
    1,063
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    140
    #12
    Here are the steps to it.
    Stop Apache
    Clear apache logs or backup them
    Now start apache
    The moment you see the site down in some minutes stop apache.
    Now take the logs
    You would see lots of things out there and you need to see if there is something suspicious.
     
    shabbirbhimani, Jan 19, 2009 IP
  13. getatune

    getatune Well-Known Member

    Messages:
    1,360
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    125
    #13
    Cant access my lxadmin


    How do i do this?
     
    getatune, Jan 19, 2009 IP
  14. Chuckun

    Chuckun Well-Known Member

    Messages:
    1,161
    Likes Received:
    60
    Best Answers:
    2
    Trophy Points:
    150
    #14
    You should have full root access to every bit of information you need about your server.... =/ ?
     
    Chuckun, Jan 19, 2009 IP
  15. getatune

    getatune Well-Known Member

    Messages:
    1,360
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    125
    #15
    I do but i need to know the commands.
     
    getatune, Jan 19, 2009 IP
  16. torrentstorage

    torrentstorage Peon

    Messages:
    518
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #16
    i would suggest getting a managed server then gatatube. Let people that have experience in this field to help track down your issue
     
    torrentstorage, Jan 19, 2009 IP
  17. getatune

    getatune Well-Known Member

    Messages:
    1,360
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    125
    #17
    my vps is managed but the company is acting like they dont care
     
    getatune, Jan 19, 2009 IP
  18. torrentstorage

    torrentstorage Peon

    Messages:
    518
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #18
    well they should care you are a client
    Go else where
     
    torrentstorage, Jan 19, 2009 IP
  19. getatune

    getatune Well-Known Member

    Messages:
    1,360
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    125
    #19
    I think i will, but i dont know any good places, so anyways how do I back up everything without no lxadmin access
     
    getatune, Jan 19, 2009 IP
  20. torrentstorage

    torrentstorage Peon

    Messages:
    518
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #20
    getatune

    http://cheapwebhostinghouse.com has instant setup and are very cheap. I have been using them a year without issues
    Good Luck

    If you use the hosting company above they will transfer the site for you for free
     
    torrentstorage, Jan 19, 2009 IP