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.

Help with memory leak pls!

Discussion in 'Site & Server Administration' started by cheetuh, Sep 6, 2007.

  1. #1
    Hi. i have a dedicated server with 1Gb ram and i think im having a memory leak, because when i restart i have 500Mb of free ram, but after a few hours just have about 30mb free, and i losing lots of visitors cause they cannot open my php pages.
    When looking at my processes i see this:
    User CPU % VM Size Res Size Stat Start
    root 0.0 278408 KB 70276 KB Sl 00:12 java Stop Kill
    mysql 1.3 135052 KB 25808 KB Sl 00:12 mysqld Stop Kill
    apache 0.6 41848 KB 21000 KB S 13:07 httpd Stop Kill
    apache 0.6 41844 KB 20560 KB S 16:16 httpd Stop Kill
    named 0.0 41800 KB 6436 KB Ssl 00:12 named Stop Kill
    apache 0.7 39536 KB 20880 KB S 15:02 httpd Stop Kill
    apache 0.6 39488 KB 20572 KB S 17:37 httpd Stop Kill
    apache 0.6 39488 KB 20204 KB S 17:37 httpd Stop Kill
    apache 0.6 39476 KB 20416 KB S 15:19 httpd Stop Kill
    apache 0.6 39472 KB 20188 KB S 17:25 httpd Stop Kill
    apache 0.6 39460 KB 20244 KB S 17:21 httpd Stop Kill
    apache 0.6 39456 KB 20720 KB S 17:07 httpd Stop Kill
    apache 0.6 39444 KB 20172 KB S 17:21 httpd Stop Kill
    apache 0.6 39444 KB 20144 KB S 17:37 httpd

    What i see that its taking more resources is Java followed by mysql, can i turn java off? i tought it was Tomcat, and already disabled it. What and how should i do? Thanks. im in big trouble, hope anyone can help me:)
     
    cheetuh, Sep 6, 2007 IP
  2. agnivo007

    agnivo007 Peon

    Messages:
    4,290
    Likes Received:
    289
    Best Answers:
    0
    Trophy Points:
    0
    #2
    What is that java for?...are you on linux ?
     
    agnivo007, Sep 6, 2007 IP
  3. cheetuh

    cheetuh Peon

    Messages:
    410
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    yes. now i restarted and i have 400MB of Free Ram once again. if i wait a few hours i get like 10 MB free and site wont open ok
     
    cheetuh, Sep 6, 2007 IP
  4. agnivo007

    agnivo007 Peon

    Messages:
    4,290
    Likes Received:
    289
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Well, linux caches frequently accessed files and data in memory thus showing free RAM as a low value. But as you're having problems with your site, maybe the server configuration or the OS or kernel is at fault.

    Is the server hardware upto the mark? You might want to rebuild the server and use a low resource consuming control panel like directadmin.
     
    agnivo007, Sep 7, 2007 IP
    sachin410 likes this.
  5. randomIntellections

    randomIntellections Well-Known Member

    Messages:
    985
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    180
    #5
    you need to tweak your httpd.conf , apache allocates most of the memory to its processes so as visitors access your site , memory gets used , best solution is to upgrade ram ,its perfectly normal
     
    randomIntellections, Sep 7, 2007 IP