Server Update, Too Many Apache Processes But Low Load
I have 2 almost similar webservers:
debian 3.2, P4 3GHZ, 1 Gb ram, kernel 2.6, apache2, php4
Initial apache2.conf:
Code:
Timeout 4
KeepAlive Off
KeepAliveTimeout 2
ServerLimit 1500
<IfModule prefork.c>
StartServers 10
MinSpareServers 10
MaxSpareServers 15
MaxClients 1500
MaxRequestsPerChild 3000
</IfModule>
I update the sources.list on server 1 to mirrors of the new debian 4 etc . I run apt-get update and apt-get dist-upgrade . A whole bunch of things get updated (it was long time ago that I did this anyway). After some troubles with /boot/grub/menu.lst the server boots ok, and everything is well. This server used to have loads of 15-25 at peak times, but after the update its running very smooth with loads of 2-3 at the same peak times. I dont know why exactly, as I noticed updates in OS , kernel version (from 2.6.8x to 2.6.18) , apache2 , php (4.4.4-8+etch1) , and I also needed to update eaccelerator from 0.94 to 0.95 .
A few days later I update server 2. Everything seems to go the same, although the kernel version stays at 2.6.8-3-686. I dont think kernel version at start was exactly same at server 1. But the new php version is the same as server 1, and everything else looks the same too.
But when peak times are coming up, this server starts to have troubles. It is quickly rising to total of 200-300 processes , while server 1 always stays stable at 60-70.
Server 2 also reacts slow if I click somewhere on the site. It takes 5-10 seconds to show a new page. However the load stays pretty low at 1-2 . I see no big cpu usage and also no big memory usage. I have the impression that this server 2 is somehow wasting a lot of apache processes and is making things hard for itself without a real reason.
When I check the seperate mysql database server, I also notice a lot of processes.
Around 200-250 whereas it used to be 40-60. Sometimes this adds up so hard, that all webservers are blocked because mysql has too much processes. When I check the mysql connections, I see a few dozen things like 'unauthen ip:port Connect login' just hanging. All of them have the ip of webserver 2. Those extra apache processes are somehow hanging on to the mysql server without really doing something.
I dont know what is happening, but this server is underperforming very badly now. I managed to limit the problem by drastically lowering ServerLimit and MaxClients on webserver 2 , but this is no real solution. The server is still slow, at least now its not bringing down the others.
My question : what should I check for now ? I noticed a different structure in the conf files in debian etch, maybe something new has a bad influence on my old conf files? Is there something wrong with the combination of kernel+php version? I have no idea, please point me in the right direction so I can learn from this.
View Complete Thread with Replies
Sponsored Links:
Related Forum Messages:
Server Load, And Tracing Httpd Processes
I have a server that has server load showing at 25-40 (once it was even 53!), running like that for hours. The server has 4 cpus - and yet the sites on the server seem to run fine when I check them. What I'm wondering is, what exactly is load in this context; and how can load run so high like that without the server crashing? According to top, the load is caused by httpd processes running under user 'nobody', that often take up double digit CPU percentage. Does Apache always run under 'nobody'? Is there any way to trace an httpd processes - which account it's for, or which physical script or URL is calling it? And for top itself, the TIME field on one server of mine is in the format xx:xx (e.g. 3:25), on another it's TIME+ and in the format xx:xx.xx (e.g. 30:02.77). What exactly does this mean? I would asume it's minutes:seconds and minutes:seconds:hundredths, but while watching top it doesn't seem to correlate with that.
View Replies!
View Related
High Server Load - Httpd Processes
a topic long time ago that my server load is frequently high. I'm talking about something like this Server Load 158.86 Memory Used 28.2 % Swap Used 99.57 % [url] The only way to solve this problem is to identify the load earlier and kill all httpd process. What I did was #killall -9 httpd #killall -9 httpd #killall -9 httpd x 30~40 times until no pid process found & the server load is back to normal. On previous thread, I tried to update mysql & php and it works, Right now again I am experiencing high server load again... I'm very sure it's caused by httpd but I am still unable to find out the real cause of the problem and which account user is the culprit for causing this high load. Can someone assist me by telling me where/how to begin with?
View Replies!
View Related
My Server Has A Low Load, And Still Runs Slow.
My server has a small load (about 30% of it is being used) and it is still running very slow. When I reboot it runs fast for about 5-10 min, and then it is back to slow. I reported this to hivelocity and the responded with " The problem was one of your apache process was pegged out. Restarting apache resolved this issue. If you still have issues check top and run lsof on the process ID that is pegged out." and after it continued "It will continur to happen until you isolate the source of the issue and stop it. The load looked fine just now, so I am not seeing an issue. What you can do is when it pegs out (simply restarting webserver will get it back up but not resolve) run the following command: ps -aux Look through the processes to see what is calling it." Whn I run ps -aux i see a username on my server. i suspended that username but the problem is still happening.
View Replies!
View Related
Server Load Is Low But Site Is VERY Slow
My machine is pretty good. Here are the specs: Intel Xeon-Woodcrest 5148-DualCore 3 gigs of ram 250GB Western Digital WD Cavia I run a forum with a modest amount of traffic along with a content management system handling the other sections of the website. I'm pretty sure the forum isn't the problem though. The server load for this machine is almost never above a 1. Right now as I type this the load is at 0.17, but it's unbearably slow! Taking up to 16 seconds to load a single page. What could be causing this? I'm a server n00b. Is there a setting I should be doing to one of my servers configuration files to make it run faster? My website gets 30-40,000 visitors a day and these problems always occur during peak hours. It would be easier to deal with this though if not for the fact that the server load is always so low. How is it possible for the site to get so slow while the server load is always so low?
View Replies!
View Related
CPU Load Low, Server Slow, Need More Ram
My server gets 300 - 600 concurrent connections to http port 80, has a CPU load of 1 - 2%, has practically all RAM of 1 GB used, is running apache 2 and centos 5. It tends to get slow and when I ban IPs that use many connections to my server (raping it), it becomes fast again. But soon after that new ******* users come which I again ban and the process repeats itself I'm starting to think that maybe I just don't have enough RAM to handle them because it seems at least some of those users are legit. I don't however have even that much content that needs to be cached so I'm not sure what good RAM would do but perhaps apache just needs more.
View Replies!
View Related
Long Running Apache Processes In Server-status
I'm not sure I understand the server-status page enough to know if this is a problem or not, but I have several processes that seem to run forever, or until I restart Apache. e.g. Code: 13-1 21045 0/697/4264 W 59.45 19641 0 0.0 43.28 274.97 66.249.66.133 www.example.com GET /wp/2005/01/ HTTP/1.1 19-1 408 1/834/1831 C 83.52 32463 0 14.8 149.66 263.48 66.249.66.133 www.example.com GET /wp/ HTTP/1.1 30-1 14416 0/430/431 W 35.19 13347 0 0.0 37.42 37.44 66.249.66.133 www.example.com GET /wp/category/issues/ HTTP/1.1 They are almost always on a single domain (there's about 100 on the server) that's a Wordpress site. These processes are also almost always a search engine. On the rare case I see them running on other domains on the same server they're always on Wordpress sites. The longer the processes run, the more processor/memory they use, the more they slow the server down. It seems to have just started in the past few weeks, I've had the site there for a couple years.
View Replies!
View Related
POP Server Error After Apache Update
I run a dedicated server with WHM/cPanel (10.8.0). I was recently supposed to update the Apache installation to add a module, but instead of clicking "load previous config" I clicked on "start build" by mistake. This brought the installation back to default. I waited till the build was finished and then added all the modules I could remember having installed earlier. This made Apache not wanting to start. I went back to the default and then recompiled apache over and over again, adding 1 o 2 modules every time. Apache booted up fine, but for some reason my mail is suddenly acting up. I keep getting the following error on one of my domain in my client: Code: Unable to connect to POP server mail.example.com. Error sending password: -ERR Maildir invalid (no 'cur' directory) When I click OK, I get: Code: Unable to connect to POP server mail.example.com. Error sending password: Operation now in progress I have a couple of other accounts in the mail client. None of them are receiving mails, even though I can see that there are new mails present in the mailbox via webmail. My exim is configured to use mbox as far as I know. So I don't understand why I'm getting an invalid maildir message.
View Replies!
View Related
Preventing Certain Processes From Using A Certain Load..
Is there a way to prevent a certain service from taking up a certain amount of load on the server? Like, shouldn't there be a way I can tell gzip or exim how much server load they are allowed to take up on my server? I know it may run them slower, but it will be for the better if I could set each one to only be able to have a max load peak or something.
View Replies!
View Related
High Load With Many Proftpd Processes
I have a centos 4.4 server, I noticed the load is high and when I checked the top command I found the following: Code: PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 17212 root 25 0 11504 6236 908 R 57 0.3 195:58.73 http 27994 ftp 18 0 7624 2232 336 R 48 0.1 0:02.39 proftpd 7056 nobody 15 0 27764 10m 1884 S 8 0.5 0:00.62 httpd 4738 nobody 15 0 25788 8952 1976 S 7 0.4 0:08.01 httpd 7199 root 18 0 6376 3704 760 R 6 0.2 0:02.41 top 7021 nobody 16 0 27240 10m 1964 S 5 0.5 0:01.73 httpd 3999 nobody 16 0 26888 9.9m 2008 S 5 0.5 0:09.39 httpd 7180 nobody 15 0 26524 9524 1700 S 5 0.5 0:00.16 httpd 6330 nobody 15 0 26856 9.8m 1992 S 4 0.5 0:04.34 httpd 6272 nobody 15 0 26764 9912 1968 S 2 0.5 0:05.36 httpd 6239 nobody 15 0 25428 8476 1888 S 1 0.4 0:02.95 httpd 1 root 16 0 2300 96 68 S 0 0.0 4:46.28 init 20323 ftp 16 0 5116 428 312 S 0 0.0 0:00.92 proftpd 22126 ftp 16 0 5512 428 312 S 0 0.0 0:01.03 proftpd 22313 ftp 16 0 5644 424 312 S 0 0.0 0:01.00 proftpd 22781 ftp 16 0 5644 460 304 S 0 0.0 0:01.04 proftpd 22837 ftp 16 0 5644 424 312 S 0 0.0 0:01.02 proftpd 24157 ftp 16 0 5776 432 308 S 0 0.0 0:01.09 proftpd 24176 ftp 16 0 5776 432 308 S 0 0.0 0:01.09 proftpd 24989 ftp 16 0 6040 476 316 S 0 0.0 0:00.91 proftpd 25327 ftp 16 0 6172 548 308 R 0 0.0 0:01.02 proftpd 25526 ftp 16 0 6172 808 308 R 0 0.0 0:01.03 proftpd 26013 ftp 16 0 6172 1128 308 R 0 0.1 0:00.98 proftpd 26152 ftp 16 0 6172 1144 312 R 0 0.1 0:01.00 proftpd 26306 ftp 16 0 6172 1172 308 R 0 0.1 0:01.02 proftpd 26455 ftp 16 0 6172 1420 312 S 0 0.1 0:04.02 proftpd 26860 ftp 16 0 6172 928 308 S 0 0.0 0:01.04 proftpd 26936 ftp 16 0 6172 928 308 S 0 0.0 0:00.91 proftpd 27166 ftp 16 0 6172 800 308 S 0 0.0 0:00.96 proftpd 27329 ftp 16 0 6172 716 308 S 0 0.0 0:01.01 proftpd 15659 ftp 16 0 6172 592 308 S 0 0.0 0:00.99 proftpd 4944 ftp 16 0 6172 544 336 S 0 0.0 0:00.98 proftpd 5163 ftp 16 0 6304 544 336 S 0 0.0 0:00.99 proftpd 18964 ftp 16 0 6304 608 308 S 0 0.0 0:00.96 proftpd 19151 ftp 16 0 6304 620 328 S 0 0.0 0:00.99 proftpd 4986 ftp 16 0 6304 596 308 S 0 0.0 0:00.87 proftpd 30721 ftp 16 0 6436 612 312 S 0 0.0 0:00.94 proftpd 13808 ftp 16 0 6436 644 316 S 0 0.0 0:01.01 proftpd 13905 ftp 16 0 6436 640 316 S 0 0.0 0:00.97 proftpd also when I checked the `ps aux` command I found a lot in this form: Code: ftp 22006 0.0 0.0 5512 424 ? S 01:24 0:01 proftpd: (accepting connections)
View Replies!
View Related
Load, Bandwidth, Processes, CPU With Simple Php Script
I am thinking about making a little php file that will print a flash game with a link to my site below the actual game. Other webmasters can use this php file on their site to embed this game. I'm on shared hosting with Bluehost at the moment. What will be the implications on bandwidth and CPU if these php files which serve the games become popular (get hit quite frequently per day/hour/second)?
View Replies!
View Related
Load Is Low CPU Usage Is High
I was wondering is someone can shed some light on a curious situation for me. I am running a linux server (Gentoo) and the CPU usage spikes to 90-100% but the load of the server when viewed by top is only 0.4 - 1.5 (max). The memory is OK with .5 gig free and there is no paging going on. So my question is: Is this server over used or not? Below is the output of top 3 times over aprox 2 min... please enlighten me... :-) top - 17:39:57 up 3 days, 10 min, 1 user, load average: 0.55, 0.66, 0.66 Tasks: 66 total, 2 running, 64 sleeping, 0 stopped, 0 zombie Cpu(s): 27.3% us, 0.0% sy, 0.0% ni, 72.0% id, 0.7% wa, 0.0% hi, 0.0% si Mem: 2058848k total, 2037140k used, 21708k free, 176904k buffers Swap: 2008116k total, 168k used, 2007948k free, 618380k cached PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 5501 sdb 25 0 570m 202m 18m S 26.3 10.1 1076:22 kernel 5579 root 19 0 2107m 729m 33m S 1.0 36.3 188:28.30 java 4814 root 16 0 30336 2360 1832 R 0.3 0.1 0:00.04 sshd 1 root 16 0 2560 556 472 S 0.0 0.0 0:00.20 init 2 root 34 19 0 0 0 S 0.0 0.0 0:00.01 ksoftirqd/0 3 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 events/0 4 root 19 -5 0 0 0 S 0.0 0.0 0:00.00 khelper 5 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 kthread 7 root 10 -5 0 0 0 S 0.0 0.0 0:01.20 kblockd/0 10 root 15 0 0 0 0 S 0.0 0.0 0:00.00 khubd 75 root 20 -5 0 0 0 S 0.0 0.0 0:00.00 aio/0 74 root 15 0 0 0 0 S 0.0 0.0 0:17.43 kswapd0 660 root 15 0 0 0 0 S 0.0 0.0 0:00.00 kseriod 716 root 16 0 0 0 0 S 0.0 0.0 0:00.00 scsi_eh_0 720 root 11 -5 0 0 0 S 0.0 0.0 0:00.00 ata/0 737 root 15 0 0 0 0 S 0.0 0.0 0:12.73 kjournald 788 root 21 -4 2560 512 420 S 0.0 0.0 0:00.01 udevd 4944 root 15 0 5024 824 596 S 0.0 0.0 0:00.01 syslog-ng 5357 root 16 0 17124 1772 1396 S 0.0 0.1 0:00.00 sshd 5370 root 16 0 56260 3704 2420 S 0.0 0.2 0:03.88 apache2 5437 ntp 16 0 15848 4656 3548 S 0.0 0.2 0:00.10 ntpd 5473 root 16 0 8956 788 644 S 0.0 0.0 0:00.04 cron 5483 apache 15 0 56120 3512 2236 S 0.0 0.2 0:00.00 apache2 5490 sdb 15 0 16992 1772 1476 S 0.0 0.1 0:00.27 vserver 5491 sdb 20 0 16992 1708 1416 S 0.0 0.1 0:00.00 vserver 5496 sdb 16 0 49444 7232 5928 S 0.0 0.4 0:00.74 kernel 5566 root 18 0 8736 1300 1076 S 0.0 0.1 0:00.00 run.sh top - 17:40:39 up 3 days, 10 min, 1 user, load average: 0.55, 0.65, 0.65 Tasks: 66 total, 2 running, 64 sleeping, 0 stopped, 0 zombie Cpu(s): 95.0% us, 0.3% sy, 0.0% ni, 4.7% id, 0.0% wa, 0.0% hi, 0.0% si Mem: 2058848k total, 2037264k used, 21584k free, 176908k buffers Swap: 2008116k total, 168k used, 2007948k free, 618448k cached PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 5501 sdb 25 0 570m 202m 18m S 83.6 10.1 1076:44 kernel 5579 root 19 0 2107m 729m 33m S 10.7 36.3 188:29.79 java 3738 sdb 15 0 23660 2056 1628 S 0.3 0.1 0:00.15 vserver 1 root 16 0 2560 556 472 S 0.0 0.0 0:00.20 init 2 root 34 19 0 0 0 S 0.0 0.0 0:00.01 ksoftirqd/0 3 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 events/0 4 root 19 -5 0 0 0 S 0.0 0.0 0:00.00 khelper 5 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 kthread 7 root 10 -5 0 0 0 S 0.0 0.0 0:01.20
View Replies!
View Related
Long-live Apache Processes
I have some problems with apache. As you can see below, long-live httpd processes use a lot of CPU / Ram. Usually this processes caused high LA - 8-12. Code: %CPU CPU NI S TIME COMMAND 0.2 - 0 S 00:00:27 nginx: worker process 0.3 - 0 S 00:00:29 nginx: worker process 0.3 - 0 S 00:00:30 nginx: worker process 3.3 - 0 S 00:04:09 /usr/local/apache/bin/httpd -k start -DSSL 3.4 - 0 S 00:04:16 /usr/local/apache/bin/httpd -k start -DSSL 3.5 - 0 S 00:05:50 /usr/local/apache/bin/httpd -k start -DSSL 3.6 - 0 S 00:05:40 /usr/local/apache/bin/httpd -k start -DSSL 3.6 - 0 S 00:05:16 /usr/local/apache/bin/httpd -k start -DSSL 3.6 - 0 S 00:06:04 /usr/local/apache/bin/httpd -k start -DSSL 3.7 - 0 S 00:06:06 /usr/local/apache/bin/httpd -k start -DSSL 3.7 - 0 S 00:00:55 /usr/local/apache/bin/httpd -k start -DSSL 3.7 - 0 S 00:06:10 /usr/local/apache/bin/httpd -k start -DSSL 3.7 - 0 S 00:06:10 /usr/local/apache/bin/httpd -k start -DSSL 3.7 - 0 S 00:06:10 /usr/local/apache/bin/httpd -k start -DSSL 3.8 - 0 S 00:06:12 /usr/local/apache/bin/httpd -k start -DSSL 3.8 - 0 S 00:05:40 /usr/local/apache/bin/httpd -k start -DSSL 3.9 - 0 S 00:06:28 /usr/local/apache/bin/httpd -k start -DSSL
View Replies!
View Related
How To Keep Number Of Apache Running Processes Down
I have small issue with load speed of pages when number of apache running processes goes over +-310, during peak traffic of day. IE: They load really slow. Here's pic of what I mean: => [url] Only thing that fixes it temporarily (at least until peak traffic ends) is to stop either httpd or mysql for several seconds, as everything cools down, then start it back up. Stop/starting mysql usually has longer terms temporary fix. Anyway, would you have any ideas on what to configure or change within the system in order to keep the processes under 300? The load is normal. Even at load 40, pages are blistering fast, as long as processes are under 300. So it's got nothing to do with load.
View Replies!
View Related
Server Load > 300 (only Apache)
I have two servers, one for apache hosting a vbulletin forum, and another one for hosting its database. Sometimes, I get very high load on the Apache server (>300) and the server stops responding. As a result, I have to stop apache in order to reduce the load and then start it again. when I query the number of online users using this command: Code: netstat -an | grep : 80 | wc -l I get about 1500 to 2000 but in the forum statistics, the number of online users is more than 5000. I already made sure that there are no DoS or DDoS attacks. This is the specs of my apache server: CPU: GenuineIntel Intel(R) Pentium(R) D CPU 3.40GHz RAM: 2 GB Server OS: CentOS 4.4 Apache Version: 1.3.37 and here is my httpd.conf: Code: ServerType standalone Timeout 15 KeepAlive On MaxKeepAliveRequests 200 KeepAliveTimeout 15 MinSpareServers 10 MaxSpareServers 15 StartServers 10 MaxClients 500 MaxRequestsPerChild 0 Is there anyway by which I can optimize my server for better performance and less load?
View Replies!
View Related
Apache Takes All The Server's Ram With Child Processes
I do a ps aux, and get a bunch of: /usr/sbin/httpd Each one takes up like 4% of the available ram - and when the ram is gone, the server dies (it doesn't have a swap file - half the time you can't even log in to it), and you have to reboot Apache. I thought of limiting maxchilds, but would that break something else? Should I just make a swap file? Will that defeat the point of creating child processes?
View Replies!
View Related
High Load On Apache/PHP Server - What Can I Twiddle
I deal with a server that gets positivey slammed once a week for a few months per year. I'd tell you how many hits we got tonight, but I'm still waiting for AWSTATS to chew through the 2gb access_log file... Tonight, I made some changes that SEEM to work, but I"mn not sure what the long-term effects could be. If we have any apache experts on the forums, I'd really like to bend your ear for a few to see what you know. Obviously, with PHP, we're limited to prefork MPM. First of all, I dropped Timeout from 300 to 120. That should be MORE than enough time to know that we've timed out. Then I dropped KeepAliveTimeout to 5 from 15. Here's the radical one. Watching the process list and the load, it seemed that load spiked when the processes hit their end of useful life and respawned. Duh. This was happening every four seconds at the load we were under. MaxRequestsPerChild was set to 10,000. I upped this to 80,000 over a period of hours that we were under the load. I didn't see any significant memory leakage, but it's the change I'm worried about the most. I've seen Apache do some bad things when people allow this to go unlimited, and had always used the relatively low default as a guide. Besides not loading a bunch of dynamic modules (also done, I usually do this so I'm not worried about it), what else can I do tuning-wise to keep load down? Please note that caching and load-balancing aren't acceptable solutions; I have one server to work with (for now) and the boss says no to caching because of how frequently our information updates. We also have extensive .htaccess files, so there's no LHTTPD in my future.
View Replies!
View Related
Apache Do Not Update
i enable Mbstrings and Soap in easyapache in Cpanel. after 24 hours i restart my server and some things get eror. tmp folder become read only. easy apache give below eror : Code: Died at /var/cpanel/perl/easy/Cpanel/Easy/Utils/BackGround.pm line 40. and all site have eror for tmp and mysql. i change tmp folder but some eror don't solved. Code: Can't create/write to file '/tmp/#sql_1f42_0.MYI' (Errcode: 30) SQL=SELECT m.*, sum(case when p.published=1 then 1 else 0 end) as cnt FROM jos_menu AS m LEFT JOIN jos_menu AS p ON p.parent = m.id WHERE m.menutype='mainmenu' AND m.published='1' AND m.access <= '0' GROUP BY m.id ORDER BY m.parent, m.ordering Warning: Invalid argument supplied for foreach() in /home/music/public_html/modules/mod_tpmenu/tpmenu/dropdown/menu.php on line 127 Warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in /home/music/public_html/modules/mod_tpmenu/tpmenu/dropdown/menu.php on line 150 this is mount command : Code: /dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw,usrquota) proc on /proc type proc (rw) sysfs on /sys type sysfs (rw) devpts on /dev/pts type devpts (rw,gid=5,mode=620) /dev/sda1 on /boot type ext3 (rw) tmpfs on /dev/shm type tmpfs (rw) none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw) /usr/tmpDSK on /tmp type ext3 (rw,noexec,nosuid,loop=/dev/loop0) and this is fstabs : Code: /dev/VolGroup00/LogVol00 / ext3 defaults,usrquota 1 1 LABEL=/boot /boot ext3 defaults 1 2 tmpfs /dev/shm tmpfs defaults 0 0 devpts /dev/pts devpts gid=5,mode=620 0 0 sysfs /sys sysfs defaults 0 0 proc /proc proc defaults 0 0 /dev/VolGroup00/LogVol01 swap swap defaults 0 0 /usr/tmpDSK /tmp ext3 defaults,noauto 0 0
View Replies!
View Related
Apache Update Problems (yum)
Just started running a new VPS and have tried to update apache through WHM and I get this error : Checking Update System........Your operating system's rpm update method (yum) was not able to locate the glibc package. This is an indication of an improper setup. You must correct this error before you can proceed. Someone told me to check out yum so I ran a command that he told me too and got this output : Traceback (most recent call last): File "/usr/bin/yum", line 29, in ? yummain.main(sys.argv[1:]) File "/usr/share/yum-cli/yummain.py", line 94, in main result, resultmsgs = base.doCommands() File "/usr/share/yum-cli/cli.py", line 381, in doCommands return self.yum_cli_commands[self.basecmd].doCommand(self, self.basecmd, self.extcmds) File "/usr/share/yum-cli/yumcommands.py", line 150, in doCommand return base.updatePkgs(extcmds) File "/usr/share/yum-cli/cli.py", line 672, in updatePkgs self.doRepoSetup() File "/usr/share/yum-cli/cli.py", line 109, in doRepoSetup self.doSackSetup(thisrepo=thisrepo) File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 338, in doSackSetup self.repos.populateSack(which=repos) File "/usr/lib/python2.4/site-packages/yum/repos.py", line 200, in populateSack sack.populate(repo, with, callback, cacheonly) File "/usr/lib/python2.4/site-packages/yum/yumRepo.py", line 91, in populate dobj = repo.cacheHandler.getPrimary(xml, csum) File "/usr/lib/python2.4/site-packages/yum/sqlitecache.py", line 100, in getPrimary return self._getbase(location, checksum, 'primary') File "/usr/lib/python2.4/site-packages/yum/sqlitecache.py", line 93, in _getbase self.updateSqliteCache(db, parser, checksum, metadatatype) File "/usr/lib/python2.4/site-packages/yum/sqlitecache.py", line 382, in updateSqliteCache cur.execute("DELETE FROM "+table+ " where pkgKey in %s" % delpkgs) File "/usr/lib/python2.4/site-packages/sqlite/main.py", line 244, in execute self.rs = self.con.db.execute(SQL) _sqlite.DatabaseError: unable to open database file Its the database error that worries me, can anyone help me out with how to fix this? Running WHM 11.2.0 cPanel 11.11.0-S16999 CENTOS Enterprise 5 i686 - WHM X v3.1.0
View Replies!
View Related
Error When Trying To Run Apache Update (cPanel)
I got a new server online today with a fresh installation of centos and cPanel: WHM 11.15.0 cPanel 11.18.1-R20683 CENTOS Enterprise 5 i686 on standard - WHM X v3.1.0 I have done the initial setup (ip's nameservers etc..) but when I try and run apache update I get the following: Premature end of script headers: /usr/local/cpanel/whostmgr/docroot/cgi/easyapache.pl: Please check /usr/local/cpanel/logs/error_log for the exact error. I look in the log file but it just repeatse the above error and doesnt supply any additional info.
View Replies!
View Related
Used Apache Update/some PHP Scripts No Longer Working
Having some issues here, I used Apache Update to install WHMCS as I didn't have Curl installed. Well had some issues using the username and password as it couldn't connect to the database, my modernbill and phpnuke scripts still work but some other scripts like joomla, some shopping cart software, and other MYSQL scripts are not working. I've run test scripts to see if I can connect to the database, got the following error with the PHP test script Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'data_invoice'@'localhost' (using password: YES) in /home/data/public_html/test2.php on line 4 I cannot connect to the database because:Access denied for user 'data_invoice'@'localhost' (using password: YES) Also attempted it in SSH and getting a similar error that access is denied. Username and password are correct. I believe I upgraded PHP which my guess is what caused this. I've searched the forum for a few solutions and I had the problem in the past which I fixed it, but it's been a while.
View Replies!
View Related
Apache 2.2 / Php 5 Update: Calling Files Behind Root
With my old Apache 1 and PHP4 I was able to pull files from behind the public_html using a php file without any problems. Is there a reason why this does not work with Apache 2.2 and PHP5? the piece of coding below is what grabs the image. Right now i'm just seeing a red X for each image. PHP Code: if ($private == 1) { header("Content-type: image/jpeg"); $im = imagecreatefromjpeg('/home/site1/private/' . $type . '/' . $mid . '-' . $iid . '.jpg'); imagecolorallocate($im, 255, 255, 255); imagejpeg($im); imagedestroy($im); }
View Replies!
View Related
Mysql Insert/Update Makes Apache Go Crazy
I run a wordpress blog with apache2+mysql5+php5 in a Debian vps with 1024mb ram (plus swap). When you read the website everything works quick and smooth, but when you have to add data to the database (edit posts, write posts, write comments) something weird happens. monitoring the system with the top and I see that, for example, as soon as an article has been posted (already got the "article posted" message in the page) the free ram goes suddenly down (some seconds) from 800mb to 0. Swapping starts and the website stops responding. in the meanwhile cpu "wa" goes high (90%++). Typing ps aux I can see that is not mysql process's fault, actually it seems more that it's apache to cause this ram hogging, in fact an apache restart brings back tons of free ram. this is my current my.cnf: Code: client] port= 3306 socket= /var/run/mysqld/mysqld.sock # Here is entries for some specific programs # The following values assume you have at least 32M ram # This was formally known as [safe_mysqld]. Both versions are currently parsed. [mysqld_safe] socket= /var/run/mysqld/mysqld.sock nice= 0 [mysqld] # # * Basic Settings # user= mysql pid-file= /var/run/mysqld/mysqld.pid socket= /var/run/mysqld/mysqld.sock port= 3306 basedir= /usr datadir= /var/lib/mysql tmpdir= /tmp language= /usr/share/mysql/english skip-external-locking # # Instead of skip-networking the default is now to listen only on # localhost which is more compatible and is not less secure. bind-address= 127.0.0.1 # # * Fine Tuning # myisam_sort_buffer_size=64M max_connect_errors=20 connect_timeout=15 interactive_timeout=100 join_buffer_size=1M sort_buffer_size=1M read_buffer_size=1M bulk_insert_buffer_size=16M key_buffer= 64M max_allowed_packet= 16M thread_stack= 128K thread_cache_size= 8 max_connections = 600 table_cache = 256 #thread_concurrency = 10 # # * Query Cache Configuration # query_cache_limit = 1M query_cache_size = 16M # # * Logging and Replication # # Both location gets rotated by the cronjob. # Be aware that this log type is a performance killer. #log= /var/log/mysql/mysql.log # # Error logging goes to syslog. This is a Debian improvement :) # # Here you can see queries with especially long duration #log_slow_queries= /var/log/mysql/mysql-slow.log #long_query_time = 2 #log-queries-not-using-indexes # # The following can be used as easy to replay backup logs or for replication. #server-id= 1 #log_bin= /var/log/mysql/mysql-bin.log # WARNING: Using expire_logs_days without bin_log crashes the server! See README.Debian! #expire_logs_days= 10 #max_binlog_size = 100M #binlog_do_db= include_database_name #binlog_ignore_db= include_database_name # # * BerkeleyDB # # Using BerkeleyDB is now discouraged as its support will cease in 5.1.12. skip-bdb # # * InnoDB # # InnoDB is enabled by default with a 10MB datafile in /var/lib/mysql/. # Read the manual for more InnoDB related options. There are many! # You might want to disable InnoDB to shrink the mysqld process by circa 100MB. skip-innodb # # * Security Features # # Read the manual, too, if you want chroot! # chroot = /var/lib/mysql/ # # For generating SSL certificates I recommend the OpenSSL GUI "tinyca". # # ssl-ca=/etc/mysql/cacert.pem # ssl-cert=/etc/mysql/server-cert.pem # ssl-key=/etc/mysql/server-key.pem
View Replies!
View Related
Low Bandwidth - Super Low Ping
for a server to run a lightweight game server. It will require about 15-20KB/sec bandwidth. Fairly low ram requirements, and very little disk requirements. My issue is, i need it to have VERY VERY low ping rates. Users will be connecting from Europe and US. Where can i go for something that would fill these needs? I've tried Amazon EC2, but its flaky sometimes..
View Replies!
View Related
My Server Is Very Slow, High CPU, High Apache Load
My server is very slow, High CPU, High Apache load.... I got a new server and i had setup a script on it. No server tweaks has been done. I run a filehosting site so it gets very slow when traffic is high. Here is some info: Code: PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 4135 filedip 19 0 12812 8892 2212 R 18.9 0.4 0:00.74 index.cgi 3140 apache 15 0 22624 9604 2768 S 17.3 0.5 1:54.45 httpd 3556 apache 15 0 22792 9592 2768 S 17.3 0.5 0:43.53 httpd 3739 apache 15 0 22672 9556 2744 S 17.3 0.5 1:09.67 httpd 3884 apache 15 0 22664 9560 2744 S 17.3 0.5 0:23.98 httpd 3474 apache 15 0 22672 9572 2756 R 16.1 0.5 1:34.09 httpd 3548 apache 15 0 22792 9560 2740 S 16.1 0.5 1:33.67 httpd 3991 apache 15 0 22640 9588 2756 S 15.1 0.5 0:22.44 httpd 3475 apache 15 0 22672 9580 2756 S 13.2 0.5 1:31.42 httpd 3493 apache 15 0 22664 9592 2768 S 12.9 0.5 1:15.52 httpd 3769 apache 15 0 22664 9580 2756 S 12.9 0.5 0:45.19 httpd 3638 apache 15 0 22664 9576 2756 S 12.3 0.5 0:32.82 httpd 3724 apache 16 0 22664 9580 2756 R 12.3 0.5 0:34.25 httpd 3626 apache 15 0 22672 9580 2756 S 11.7 0.5 0:52.54 httpd 4023 apache 16 0 22792 9560 2740 R 11.3 0.5 0:13.16 httpd 3882 apache 15 0 22664 9576 2756 S 10.1 0.5 0:38.56 httpd 3005 apache 15 0 22672 9588 2768 R 9.1 0.5 2:06.61 httpd I dont know much about server managment... how to fix this so server doesnt go slow?
View Replies!
View Related
Could Any Of These Processes Kill My Server
Code: 1(init)/sbin/init/init [3]���������������������������������������������������������������������������������������� 2(ksoftirqd/0)/ 3(events/0)/ 4(khelper)/ 5(kacpid)/ 20(kblockd/0)/ 38(pdflush)/ 39(pdflush)/ 41(aio/0)/ 21(khubd)/ 40(kswapd0)/ 187(kseriod)/ 301(kjournald)/ 1345(udevd)/sbin/udevd/udevd� 1704(kauditd)/ 1745(kmirrord)/ 1975(kjournald)/ 1976(kjournald)/ 1977(kjournald)/ 1978(kjournald)/ 1979(kjournald)/ 2668(syslogd)/sbin/syslogd/syslogd�-m�0� 2672(klogd)/sbin/klogd/klogd�-x� 2693(named)/usr/sbin/named/var/named/usr/sbin/named�-u�named� 2736(courierlogger)/usr/sbin/courierlogger//usr/sbin/courierlogger�-pid=/var/spool/authdaemon/pid�-facility=mail�-start�/usr/libexec/courier-authlib/authdaemond� 2737(authdaemond)/usr/libexec/courier-authlib/authdaemond//usr/libexec/courier-authlib/authdaemond� 2772(authdaemond)/usr/libexec/courier-authlib/authdaemond//usr/libexec/courier-authlib/authdaemond� 2773(authdaemond)/usr/libexec/courier-authlib/authdaemond//usr/libexec/courier-authlib/authdaemond� 2774(authdaemond)/usr/libexec/courier-authlib/authdaemond//usr/libexec/courier-authlib/authdaemond� 2775(authdaemond)/usr/libexec/courier-authlib/authdaemond//usr/libexec/courier-authlib/authdaemond� 2776(authdaemond)/usr/libexec/courier-authlib/authdaemond//usr/libexec/courier-authlib/authdaemond� 2814(smartd)/usr/sbin/smartd//usr/sbin/smartd� 2823(acpid)/usr/sbin/acpid//usr/sbin/acpid� 4454(sshd)/usr/sbin/sshd//usr/sbin/sshd� 4467(xinetd)/usr/sbin/xinetd/xinetd�-stayalive�-pidfile�/var/run/xinetd.pid� 4534(chkservd)/usr/bin/perl/chkservd 4545(courierlogger)/usr/sbin/courierlogger//usr/sbin/courierlogger�-pid=/var/run/imapd.pid�-start�-name=imapd�/usr/lib/courier-imap/libexec/couriertcpd�-address=0�-maxprocs=40�-maxperip=30�-nodnslookup�-noidentlookup�143�/usr/lib/courier-imap/sbin/imaplogin�/usr/lib/courier-imap/bin/imapd�Maildir� 4546(couriertcpd)/usr/lib/courier-imap/libexec/couriertcpd//usr/lib/courier-imap/libexec/couriertcpd�-address=0�-maxprocs=40�-maxperip=30�-nodnslookup�-noidentlookup�143�/usr/lib/courier-imap/sbin/imaplogin�/usr/lib/courier-imap/bin/imapd�Maildir� 4553(courierlogger)/usr/sbin/courierlogger//usr/sbin/courierlogger�-pid=/var/run/imapd-ssl.pid�-start�-name=imapd-ssl�/usr/lib/courier-imap/libexec/couriertcpd�-address=0�-maxprocs=40�-maxperip=30�-nodnslookup�-noidentlookup�993�/usr/lib/courier-imap/bin/couriertls�-server�-tcpd�/usr/lib/courier-imap/sbin/imaplogin�/usr/lib/courier-imap/bin/imapd�Maildir� 4554(couriertcpd)/usr/lib/courier-imap/libexec/couriertcpd//usr/lib/courier-imap/libexec/couriertcpd�-address=0�-maxprocs=40�-maxperip=30�-nodnslookup�-noidentlookup�993�/usr/lib/courier-imap/bin/couriertls�-server�-tcpd�/usr/lib/courier-imap/sbin/imaplogin�/usr/lib/courier-imap/bin/imapd�Maildir� 4559(courierlogger)/usr/sbin/courierlogger//usr/sbin/courierlogger�-pid=/var/run/pop3d.pid�-start�-name=pop3d�/usr/lib/courier-imap/libexec/couriertcpd�-address=0�-maxprocs=40�-maxperip=30�-nodnslookup�-noidentlookup�110�/usr/lib/courier-imap/sbin/pop3login�/usr/lib/courier-imap/bin/pop3d�Maildir� 4560(couriertcpd)/usr/lib/courier-imap/libexec/couriertcpd//usr/lib/courier-imap/libexec/couriertcpd�-address=0�-maxprocs=40�-maxperip=30�-nodnslookup�-noidentlookup�110�/usr/lib/courier-imap/sbin/pop3login�/usr/lib/courier-imap/bin/pop3d�Maildir� 4565(courierlogger)/usr/sbin/courierlogger//usr/sbin/courierlogger�-pid=/var/run/pop3d-ssl.pid�-start�-name=pop3d-ssl�/usr/lib/courier-imap/libexec/couriertcpd�-address=0�-maxprocs=40�-maxperip=30�-nodnslookup�-noidentlookup�995�/usr/lib/courier-imap/bin/couriertls�-server�-tcpd�/usr/lib/courier-imap/sbin/pop3login�/usr/lib/courier-imap/bin/pop3d�Maildir� 4566(couriertcpd)/usr/lib/courier-imap/libexec/couriertcpd//usr/lib/courier-imap/libexec/couriertcpd�-address=0�-maxprocs=40�-maxperip=30�-nodnslookup�-noidentlookup�995�/usr/lib/courier-imap/bin/couriertls�-server�-tcpd�/usr/lib/courier-imap/sbin/pop3login�/usr/lib/courier-imap/bin/pop3d�Maildir� 4644(clamd)/usr/sbin/clamd//usr/sbin/clamd� 4648(exim)/usr/sbin/exim/var/spool/exim/usr/sbin/exim�-bd�-oX�26� 4654(exim)/usr/sbin/exim/var/spool/exim/usr/sbin/exim�-bd�-q60m� 4658(exim)/usr/sbin/exim/var/spool/exim/usr/sbin/exim�-tls-on-connect�-bd�-oX�465� 4666(antirelayd)/usr/bin/perl/antirelayd 4752(spamd)/usr/bin/perl//usr/bin/spamd -d --allowed-ips=127.0.0.1 --pidfile=/var/run/spamd.pid --max-children=5 4762(spamd)/usr/bin/perl/spamd child 4763(spamd)/usr/bin/perl/spamd child 4826(pure-ftpd)/usr/sbin/pure-ftpd/pure-ftpd (SERVER)������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������ 4829(pure-authd)/usr/sbin/pure-authd//usr/sbin/pure-authd�-s�/var/run/ftpd.sock�-r�/usr/sbin/pureauth� 4856(crond)/usr/sbin/crond/var/spoolcrond� 4874(httpd)/usr/local/apache/bin/httpd//usr/local/apache/bin/httpd�-k�start�-DSSL� 4877(xfs)/usr/X11R6/bin/xfs/xfs�-droppriv�-daemon� 4886(anacron)/usr/sbin/anacron/var/spool/anacronanacron�-s� 4969(httpd)/usr/local/apache/bin/httpd//usr/local/apache/bin/httpd�-k�start�-DSSL� 4995(httpd)/usr/local/apache/bin/httpd//usr/local/apache/bin/httpd�-k�start�-DSSL� 4998(httpd)/usr/local/apache/bin/httpd//usr/local/apache/bin/httpd�-k�start�-DSSL� 5001(httpd)/usr/local/apache/bin/httpd//usr/local/apache/bin/httpd�-k�start�-DSSL� 5004(httpd)/usr/local/apache/bin/httpd//usr/local/apache/bin/httpd�-k�start�-DSSL� 5005(httpd)/usr/local/apache/bin/httpd//usr/local/apache/bin/httpd�-k�start�-DSSL� 5034(httpd)/usr/local/apache/bin/httpd//usr/local/apache/bin/httpd�-k�start�-DSSL� 5083(cphulkd.pl)/usr/bin/perl/cPhulkd - processor 5105(cpdavd)/usr/bin/perl/cpdavd - accepting connections on 2077 and 2078 5116(cpbandwd)/usr/bin/perl/cpbandwd 5117(cpanellogd)/usr/bin/perl/cpanellogd - sleeping for logs 5154(mailmanctl)/usr/local/bin/python2.4/usr/local/cpanel/3rdparty/mailman/usr/local/bin/python2.4�/usr/local/cpanel/3rdparty/mailman/bin/mailmanctl�-s�start� 5155(python2.4)/usr/local/bin/python2.4/usr/local/cpanel/3rdparty/mailman/usr/local/bin/python2.4�/usr/local/cpanel/3rdparty/mailman/bin/qrunner�--runner=ArchRunner:0:1�-s� 5156(python2.4)/usr/local/bin/python2.4/usr/local/cpanel/3rdparty/mailman/usr/local/bin/python2.4�/usr/local/cpanel/3rdparty/mailman/bin/qrunner�--runner=BounceRunner:0:1�-s� 5157(python2.4)/usr/local/bin/python2.4/usr/local/cpanel/3rdparty/mailman/usr/local/bin/python2.4�/usr/local/cpanel/3rdparty/mailman/bin/qrunner�--runner=CommandRunner:0:1�-s� 5158(python2.4)/usr/local/bin/python2.4/usr/local/cpanel/3rdparty/mailman/usr/local/bin/python2.4�/usr/local/cpanel/3rdparty/mailman/bin/qrunner�--runner=IncomingRunner:0:1�-s� 5159(python2.4)/usr/local/bin/python2.4/usr/local/cpanel/3rdparty/mailman/usr/local/bin/python2.4�/usr/local/cpanel/3rdparty/mailman/bin/qrunner�--runner=NewsRunner:0:1�-s� 5160(python2.4)/usr/local/bin/python2.4/usr/local/cpanel/3rdparty/mailman/usr/local/bin/python2.4�/usr/local/cpanel/3rdparty/mailman/bin/qrunner�--runner=OutgoingRunner:0:1�-s� 5161(python2.4)/usr/local/bin/python2.4/usr/local/cpanel/3rdparty/mailman/usr/local/bin/python2.4�/usr/local/cpanel/3rdparty/mailman/bin/qrunner�--runner=VirginRunner:0:1�-s� 5162(python2.4)/usr/local/bin/python2.4/usr/local/cpanel/3rdparty/mailman/usr/local/bin/python2.4�/usr/local/cpanel/3rdparty/mailman/bin/qrunner�--runner=RetryRunner:0:1�-s� 5172(dbus-daemon-1)/usr/bin/dbus-daemon-1/dbus-daemon-1�--system� 5183(hald)/usr/sbin/hald/hald� 5194(mingetty)/sbin/mingetty//sbin/mingetty�tty1� 5195(mingetty)/sbin/mingetty//sbin/mingetty�tty2� 5196(mingetty)/sbin/mingetty//sbin/mingetty�tty3� 5197(mingetty)/sbin/mingetty//sbin/mingetty�tty4� 5198(mingetty)/sbin/mingetty//sbin/mingetty�tty5� 5199(mingetty)/sbin/mingetty//sbin/mingetty�tty6� 5806(cpsrvd-ssl)/usr/local/cpanel/cpsrvd-ssl/usr/local/cpanel/basecpsrvd - waiting for connections 5924(authProg)/usr/local/cpanel/bin/courier-auth//etc/authlib/authProg� 5959(mysqld_safe)/bin/bash/var/lib/bin/sh�/usr/bin/mysqld_safe�--datadir=/var/lib/mysql�--pid-file=/var/lib/mysql/tiny.dnsprotect.org.pid� 5994(mysqld)/usr/sbin/mysqld/var/lib/mysql/usr/sbin/mysqld�--basedir=/�--datadir=/var/lib/mysql�--user=mysql�--pid-file=/var/lib/mysql/tiny.dnsprotect.org.pid�--skip-external-locking�--socket=/var/lib/mysql/mysql.sock� 6081(httpd)/usr/local/apache/bin/httpd//usr/local/apache/bin/httpd�-k�start�-DSSL� 7291(httpd)/usr/local/apache/bin/httpd//usr/local/apache/bin/httpd�-k�start�-DSSL� 7293(mono)/opt/mono/bin/mono//opt/mono/bin/mono�/opt/mono/lib/mono/1.0/mod-mono-server.exe�--filename�/tmp/mod_mono_server_global�--nonstop�--master� 7298(httpd)/usr/local/apache/bin/httpd//usr/local/apache/bin/httpd�-k�start�-DSSL� 7740(eximstats)/usr/bin/perl/eximstats 7822(authProg)/usr/local/cpanel/bin/courier-auth//etc/authlib/authProg� 8527(authProg)/usr/local/cpanel/bin/courier-auth//etc/authlib/authProg� 9234(cpsrvd-ssl)/usr/local/cpanel/cpsrvd-ssl/usr/local/cpanel/whostmgr/docrootwhostmgrd - serving 81.104.99.97 9236(whostmgr)/usr/local/cpanel/whostmgr/bin/whostmgr/usr/local/cpanel/whostmgr/docroot/usr/local/cpanel/whostmgr/bin/whostmgr�./simpleps� 9237(simpleps)/usr/bin/perl/usr/local/cpanel/whostmgr/docroot/usr/bin/perl�/scripts/simpleps�--html� Recently server been a lil unstable... unsure why.. only recent thing i've installed is eaccelerator thingy. and It was a lil unstable before that..
View Replies!
View Related
VPS- Server Processes Not Getting Killed
i am facing slight problem with one of my VPSes. It had happened earlier also but had got resolved automatically. Please see this screenshot: [url] i know that the server load is not that great to cause this much SWAP usage. i think this is because of the processes not getting killed. UPDATE: here is the screenshot of my other server with the same provider. which is not really overloaded but i think is facing the same problem of processes not getting killed [url]
View Replies!
View Related
Apache (too Load)
I have a server Athlon 3000+ 64bit, 1GB ram on Debian 3.1 and I have a problem with apache (apache is generating large load). On server are 1 phpbb board with ~80 members online. Frequently cpu load generating by apache jumps to 100%, next apache eats all memory & swap and next server downs. Sometimes in such moments on board are not much people (30-40), so this problem isn't related to online stats. I haven't any idea how fix this problem. Please, help me! I need fast help, because I will departure day after tomorrow and if I don't fix this problem before, my site will down over long time... My config: apache2.conf Quote: Timeout 100 KeepAlive Off MaxKeepAliveRequests 100 KeepAliveTimeout 15 <IfModule prefork.c> StartServers 5 MinSpareServers 5 MaxSpareServers 10 MaxClients 150 MaxRequestsPerChild 100 <IfModule worker.c> StartServers 4 MaxClients 200 MinSpareThreads 25 MaxSpareThreads 75 ThreadsPerChild 25 MaxRequestsPerChild 1 <IfModule perchild.c> NumServers 2 StartThreads 5 MinSpareThreads 5 MaxSpareThreads 10 MaxThreadsPerChild 5 MaxRequestsPerChild 5 AcceptMutex fcntl my.cnf (mysql): Quote: [mysqld] log-slow-queries = /var/log/mysql/mysql-slow.log long_query_time = 1 key_buffer = 10M myisam_sort_buffer_size = 34M join_buffer_size = 1M read_buffer_size = 1M sort_buffer_size = 2M table_cache = 2500 thread_cache_size = 628 wait_timeout = 3 connect_timeout = 3 tmp_table_size = 50M max_allowed_packet = 10M max_connect_errors = 10 #query_cache_limit = 25M query_cache_size = 100M #query_cache_type = 1 query_prealloc_size = 16384 query_alloc_block_size = 16384 tmpdir=/tmp log = /var/log/mysql/log.log [mysqld_safe] open_files_limit = 8192 [mysqldump] quick max_allowed_packet = 10M [myisamchk] key_buffer = 64M sort_buffer = 64M read_buffer = 16M write_buffer = 16M Eaccelerator: ON (before instalation was problem with apache too)
View Replies!
View Related
Apache Load
On 19th of may apache started to make like 3x more load on server. Before in cpanel admin panel load for biggest site was ~5 and now it is 18-30. Also on server peaks are now up to 2-3 and before it was rarely 1. I'm only admin so i know i didnt touch anything from configuration because i wasn't much around. And users said they also didn't modified anything. So i suspect maybe there was some cpanel update which makes apache to have higher loads. Traffic is at normal visits per day and hits only load is 3x higher.
View Replies!
View Related
How Low Can I Go (Server Size)
I am hosting 80 domains on a dedicated server which is dishing up only about 80GB per month in bandwidth. Disk space is minimal at under 20GB. Sites are mostly PHP5 and MySQL. Some Perl. Using apache2. Right now the server is a dual Opteron and it seems to be overkill for the job at hand. In an effort to lower my monthly cost I am wondering how small of a server I can go with and still allow some margin for only minimal growth. Dare I go as small as one of these (from cheapest to most $): 1.7 Pentium 4 and 512 RAM, IDE Athlon 3000+ and 1GB RAM, SATA 2.8 Pentium D and 1GB RAM, SATA
View Replies!
View Related
Low End Co-Lo Server
long time lurker, thought I would start participating. I am wanting to colocate a web server and I have what I think should be all the parts. These are mostly from a gaming computer I built about 8 months ago. Will something like this work out ok? Opteron 170 2 x 1GB PC DDR500 G.SKill DFI LanParty Mobo 2 x 250gb WD Raid 1 300W or 600W psu? It all fits into a midtower which I plan on setting up at the co-lo site.
View Replies!
View Related
Reducing Apache Load
My load average seems a bit high considering how few processes are running: [url] Is there anything I can do to reduce the load generated by Apache? You can see the Apache2 server status info here: [url] It's serving 20-25 requests per second, which are mostly these tiny requests to tracker.php which issues a database query and returns an image. The relevant httpd.conf settings: Code: Timeout 120 KeepAlive Off MaxKeepAliveRequests 100 KeepAliveTimeout 15 <IfModule prefork.c> StartServers 8 MinSpareServers 5 MaxSpareServers 20 ServerLimit 512 MaxClients 256 MaxRequestsPerChild 4000 </IfModule> This is a dual Opteron 2212 server (4 cores total) with 4GB RAM.
View Replies!
View Related
Apache Seems To Be Busy But Load Is 0.00
i'm hosting a forum (~80 simultalinous users online) In a VDS 512 MB RAM, Linux Debian with apache 1.3 and mysql 4.1 , php4. Apache seems to be busy, pages don't even load, this can be resolved by restating apache. and after a couple of time (about 4 hours) it does the same thing again, and i do have to restart it again and looping ... Here is my httpd.conf file : Code: Timeout 200 KeepAlive On MaxKeepAliveRequests 200 KeepAliveTimeout 3 MinSpareServers 5 MaxSpareServers 15 StartServers 5 MaxClients 20 HostnameLookups Off MaxRequestsPerChild 2000
View Replies!
View Related
Need Low Budget Dedicated Server
I run a site that has a medium sized forum (23,000 members; 350,000 posts), about 1000 pages of content (but not heavily viewed), and some relatively un-resource-intensive features. We have one feature that is a bit stressful on the database side of things, but nothing too extraordinary. I'm looking to migrate from our current dedicated server at LunarPages to another alternative. LP has been great to us, and I would recommend them to anyone, I just feel like we can get a similar server for slightly less somewhere else. We are paying $165/mo for these specs: - Intel Pentium 4 2.8ghz - 2 GB RAM - 160 GB Storage - 1500 GB Bandwidth - cPanel I would like to shoot for something more like this: - Something better than a P4... open for suggestions, but I'm pretty greedy in terms of processors, I'd like something pretty nice. - 1 GB RAM should be fine - 100 GB Storage or more - 1000 GB Bandwidth or more - cPanel - Less than $150 total So not too many major changes I suppose... and maybe I'm being too greedy. I've found some offers I like the looks of, but I need some suggestions. Companies with good customer support are always preferable as well, of course.
View Replies!
View Related
Server Running With Very Low Clients
I had been rebuild apache, change value MaxClients in httpd.conf to 1500 and restart the server, but problem still the same Quote: Originally Posted by httpd.conf MaxClients 1500 Quote: Originally Posted by ssh # /usr/local/apache/bin/apachectl configtest Syntax OK Quote: Originally Posted by email httpd failed @ Fri Jul 6 21:35:08 2007. A restart was attempted automagicly. Quote: Originally Posted by Server Status Server Load 1.23 (2 cpus) Memory Used 7.8 %
View Replies!
View Related
High Apache CPU Load
I've search around quite a bit, but I can't seem to find a clear answer. I've turned on mod_status, and on the status page, I'm worried Apache is being overworked. Code: CPU Usage: u334.883 s94.5703 cu177.422 cs0 - 43.3% CPU load 54.1 requests/sec - 181.5 kB/second - 3435 B/request 178 requests currently being processed, 52 idle workers __RKKK__K___KW_CKCKC_KC_KCK_KKCCK_K_KKWCKCCKCWKKKCRCKKKK._K_C__K KK_K__K_K_KK_C_KKKKK_KKW.KRCKWKKW_CCKWKRK..___KKCKKKKKKKR_KKKW.W _KK_____RKRC.KKCKCCRK__CK._KWCK_KKRCCK.C__CR.CWCCKCRKK.RR.K_CR_K C_KW._._K.K..KKK_KRCCKWKK__..R.CRWCKK.KCK.K.KK_K....._...KK..... ......KC.CK...C...CK......W........C............................ ................................................................ ................................................................ ................................................................ At the time I took this particular snapshot, it's not near its peak... it's not uncommon for the CPU load approach 60%. Reading around, it seems the CPU load should normally be under 1% (such as 0.0139% or what-not). Is this true? The weird thing though... I have no idea where that number is coming from, because according to "top", the CPU is actually 90% idle. Here is my Apache MPM settings: Code: ServerLimit 512 <IfModule mpm_prefork_module> StartServers 10 MinSpareServers 15 MaxSpareServers 50 MaxClients 1024 MaxRequestsPerChild 0 </IfModule> I actually just raised the MaxClients from 512 to 1024 because I was hitting a constant cap of 40 requests/sec... and I was worried it was going to bottleneck. When I raised that value, the max requests per second now seem to be freed up. If the actual CPU of the server is 90% idle... am I okay? Anyone know where Apache's getting the CPU Load info from?
View Replies!
View Related
Extremely High Apache Load
We've a quadcore Xeon and start to have issues with its very high cpu load (which is made by apache & mysqld,). So here is ps aux: Code: USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND root 1 0.0 0.0 2040 620 ? Ss Jul13 0:13 init [3] root 2 0.0 0.0 0 0 ? S Jul13 0:00 [migration/0] root 3 0.0 0.0 0 0 ? SN Jul13 0:00 [ksoftirqd/0] root 4 0.0 0.0 0 0 ? S Jul13 0:00 [watchdog/0] root 5 0.0 0.0 0 0 ? S Jul13 0:00 [migration/1] root 6 0.0 0.0 0 0 ? SN Jul13 0:00 [ksoftirqd/1] root 7 0.0 0.0 0 0 ? S Jul13 0:00 [watchdog/1] root 8 0.0 0.0 0 0 ? S Jul13 0:00 [migration/2] root 9 0.0 0.0 0 0 ? SN Jul13 0:00 [ksoftirqd/2] root 10 0.0 0.0 0 0 ? S Jul13 0:00 [watchdog/2] root 11 0.0 0.0 0 0 ? S Jul13 0:00 [migration/3] root 12 0.0 0.0 0 0 ? SN Jul13 0:00 [ksoftirqd/3] root 13 0.0 0.0 0 0 ? S Jul13 0:00 [watchdog/3] root 14 0.0 0.0 0 0 ? S< Jul13 0:00 [events/0] root 15 0.0 0.0 0 0 ? S< Jul13 0:00 [events/1] root 16 0.0 0.0 0 0 ? S< Jul13 0:00 [events/2] root 17 0.0 0.0 0 0 ? S< Jul13 0:00 [events/3] root 18 0.0 0.0 0 0 ? S< Jul13 0:00 [khelper] root 19 0.0 0.0 0 0 ? S< Jul13 0:00 [kthread] root 25 0.0 0.0 0 0 ? S< Jul13 0:01 [kblockd/0] root 26 0.0 0.0 0 0 ? S< Jul13 0:01 [kblockd/1] root 27 0.0 0.0 0 0 ? S< Jul13 0:01 [kblockd/2] root 28 0.0 0.0 0 0 ? S< Jul13 0:03 [kblockd/3] root 29 0.0 0.0 0 0 ? S< Jul13 0:00 [kacpid] root 122 0.0 0.0 0 0 ? S< Jul13 0:00 [cqueue/0] root 123 0.0 0.0 0 0 ? S< Jul13 0:00 [cqueue/1] root 124 0.0 0.0 0 0 ? S< Jul13 0:00 [cqueue/2] root 125 0.0 0.0 0 0 ? S< Jul13 0:00 [cqueue/3] root 128 0.0 0.0 0 0 ? S< Jul13 0:00 [khubd] root 130 0.0 0.0 0 0 ? S< Jul13 0:00 [kseriod] root 205 0.0 0.0 0 0 ? S Jul13 0:46 [pdflush] root 207 0.0 0.0 0 0 ? S< Jul13 0:43 [kswapd0] root 208 0.0 0.0 0 0 ? S< Jul13 0:00 [aio/0] root 209 0.0 0.0 0 0 ? S< Jul13 0:00 [aio/1] root 210 0.0 0.0 0 0 ? S< Jul13 0:00 [aio/2] root 211 0.0 0.0 0 0 ? S< Jul13 0:00 [aio/3] root 383 0.0 0.0 0 0 ? S< Jul13 0:00 [kpsmoused] root 433 0.0 0.0 0 0 ? S< Jul13 0:00 [ata/0] root 434 0.0 0.0 0 0 ? S< Jul13 0:00 [ata/1] root 435 0.0 0.0 0 0 ? S< Jul13 0:00 [ata/2] root 436 0.0 0.0 0 0 ? S< Jul13 0:00 [ata/3] root 437 0.0 0.0 0 0 ? S< Jul13 0:00 [ata_aux] root 443 0.0 0.0 0 0 ? S< Jul13 0:00 [scsi_eh_0] root 444 0.0 0.0 0 0 ? S< Jul13 0:00 [scsi_eh_1]... They don't appear for some time if I kill them (a day or more). But it repeats again and again. One day there were 8 similar processes in total in max which used all 4 cores at 100% (and even ssh console was extremely slow to do something there). I think that somebody is trying to make a small attack of some sort but I need to check it first. I tried to look at apache logs but there were too many posting requests from different IPs and no dublicates for little period of time so I had no success. Anyway, that script worked for us for 4 years already and we didn't have any problems with it even on our old single core P4 2.8 ghz. way to make sure is this an attack of some sort or just this script doesn't work correctly on our new machine? Are there any ways to get IPs of visitors who are running posting.php with CPU overloading?
View Replies!
View Related
Apache/High Load Averages
been checking out this site for a while and finally decided to register because I have a problem. Also hope this is the correct forum for this topic, sorry if it isn't. So I have a problem with Apache. One of the sites that I run/host has a moderately large vBulletin board, and Apache just seems to eat up the CPU. Load averages have shot up between 20-30 and I've seen it as high as 80. Apache and MySQL are optimized already, I'm using suPHP for security because there are other sites on this box. The funny thing about this is that it only started happening about a week ago. After checking for rootkits and all that garbage, I reinstalled the OS just to be on the safe side. Everything comes back clean still. I also got fed up and hired Platinum Server Management for a month, to see if they could find a solution (and I've been interested in reselling their services, but that's not relevant). So far the only thing they can come up with is disable suPHP, which isn't an option. I do realize that suPHP is ~20-25 times slower than mod_php, but what totally baffles me is that it worked beforehand and started going all crazy like this. I did try running the site using an dso configuration, the load did drop, but nothing to be proud of. This site, and the server overall hasn't had any increase in load, I've held off putting new accounts on it until I get this fixed. In the meantime, I have said forums running on lighttpd, which lowered the load. (Also writing a tutorial on having lighty work with cPanel)
View Replies!
View Related
Low End Managed Dedicated Server
I'm trying to find a reliable and established host (not a junior company that may close anytime) that offers a low end managed dedicated server. My minimum requirements: 2.0 Ghz processor 1 GB RAM 100 GB disk 250 GB bandwidth Managed Good support Reliable and established host I can't go with a VPS because the site I'm developing is growing very fast, there are some times where CPU usage is a bit too high. My current VPS host has asked me to move that site to a dedicated server, and they are right. With more CPU and memory the site will be alright, but I don't want to risk having to move again, so no VPS this time. The reason I'm looking for a low end server is that the site is not self-supporting yet, so I can't afford to pay more that 150$/month. If money wasn't an issue, I would already have picked Liquidweb, their current special allowed me to build a nice server for only 229$/month, but I'm not ready to commit that kind of money yet.
View Replies!
View Related
2 Tomcat With Single Apache With Load Balancing
We want to implementing the load balancing for our domain, if the traffic is heavy and 8080 (i.e. currently integrated with apache) doesn''t serve more that time the apache will call 8081 and serve to the request without any problem. We want to access our site www.domain.com (i.e. run on port 80). Please guide us it is possible or not?
View Replies!
View Related
Apache: Load Vhosts From MySQL Database
if it was possible to load vhosts from a MySQL database and the only solutions i found didnt work for me. Im running Apache on Windows. Has anyone seen anything that would work with Windows? The only alternative i can think of is to read the database info using PHP and output it to a vhosts config file. I dont want to do that though because it means restarting the server to load the new config and i hear that a lot of vhosts slows the server down
View Replies!
View Related
|