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
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
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.
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