Futurehosting - Tweaking Apache To Reduce CPU Loads?
Apr 20, 2009
its 2am night here, and my sites are down....now there is no way i have too much traffic at midnight, also all my websites are new !
this is happening consistently since today morning and im getting no support apart from jargon filled replies from customer care
how do i tweak apache settings and what settings do i make to avoid this ?
im wondering what will happen after few months when my websites actually have good traffic coming in ?
We have checked your server. Please see the load average and process list given below:
The value 4.42 was the CPU load average at the time. A normal load should be below 1.00. I could see that Apache service is causing high load in your server.
So you can tweak Apache in order to reduce the CPU load. Please check and let us know if you need any further assistance.
++++++++++++++++++
[root@chi07 ~]# vzctl exec 18403 w
03:16:20 up 2 min, 0 users, load average: 4.42, 1.42, 0.50
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
View 14 Replies
ADVERTISEMENT
Jan 29, 2007
i can't seem to figure out what is causing this server to run out of cpu... something is running away, it has to be, load is shooting over a couple hundred.. i woke up with it dead.. but forgot to look at top to see if all 3 gigs of swap (i added some last night) was full..
View 8 Replies
View Related
Jul 3, 2008
13438 nobody 15 0 42276 22m 13m R 22 2.2 1:51.94 httpd
10620 nobody 16 0 41928 16m 8468 S 19 1.7 0:28.54 httpd
11397 nobody 15 0 41524 12m 4784 S 18 1.3 0:06.04 httpd
10745 nobody 15 0 42376 14m 5316 S 17 1.4 0:06.62 httpd
The values in bold are the CPU percentage taken up by each apache process.
So i had to need to each apache process,who can i reduce it?what config i have to change to reduce it?
View 7 Replies
View Related
Apr 6, 2007
I currently have a vps server from GIGEServers, running at 512mb of dedicated and 1024mb spike it seems like apache is using alot of resources, does anyone know of a less hog, or tips on tweaking it, and the same for mysql server any tips on tweaking.
View 14 Replies
View Related
Oct 9, 2012
Im using apache2.2 on Ubuntu 12.04. Im trying to password protect a page using htacces and/or the directory command.
Basically no matter what method I use to try and password the index page it doesnt work. I can protect pages and dir's below, but not in the root www of a vhost.
basically:
/home/cackles/mysite with index.html and .htaccess will allow index.html to load and wont prompt for a pass until the page is refreshed.
/home/cackles/mysite/subdir will prompt for a pass before it goes any further.
I purged and started from scratch again last night and for nothing, it would seem, well I learned/refreshed a few things so it wasnt a complete bust ... just 7hrs
View 2 Replies
View Related
Aug 26, 2014
Basically I would like to record only certain status code entries in my access log. For example I would like to skip all entries with 200 status.
The documentation under "Modifiers" [URL] .... works somewhat but it still makes an entry in the AccessLog file.
This line in httpd.conf
View 9 Replies
View Related
May 3, 2008
I have just transfer a website over to a dedicated server with limestone network. A lot of times my site would not load or would load after 5-10 seconds. This is probably due to too many people connecting at once (i am guessing). The website is a myspace resource site with about 2000 uniques per day or so. how to optimze the server so the site will run better?
View 7 Replies
View Related
Jan 14, 2008
MySQL Takes up 80-100% cpu
Processor Information Processor #1 Vendor: AuthenticAMD
Processor #1 Name: AMD Opteron(tm) Processor 242
Processor #1 speed: 1591.450 MHz
Processor #1 cache size: 1024 KB
Processor #2 Vendor: AuthenticAMD
Processor #2 Name: AMD Opteron(tm) Processor 242
Processor #2 speed: 1591.450 MHz
Processor #2 cache size: 1024 KB
Quote:
4 GB ram
Quote:
My.cnf contents
[mysqld]
safe-show-database
old_passwords
back_log = 75
skip-innodb
max_connections = 650
key_buffer = 40M
myisam_sort_buffer_size = 64M
join_buffer_size = 1M
read_buffer_size = 1M
sort_buffer_size = 2M
#table_cache = 3000
table_cache = 1024
#thread_cache_size = 128
thread_cache_size = 286
wait_timeout = 722
connect_timeout = 10
tmp_table_size = 16M
max_heap_table_size = 64M
max_allowed_packet = 64M
net_buffer_length = 16384
max_connect_errors = 10
thread_concurrency = 8
read_rnd_buffer_size = 786432
bulk_insert_buffer_size = 8M
#3 below
query_cache_limit = 1M
#16 below
query_cache_size = 16M
query_cache_type = 1
query_prealloc_size = 262144
query_alloc_block_size = 65536
transaction_alloc_block_size = 8192
transaction_prealloc_size = 4096
default-storage-engine = MyISAM
[mysqld_safe]
nice = -5
open_files_limit = 8192
[mysqldump]
quick
max_allowed_packet = 16M
[myisamchk]
key_buffer = 16M
sort_buffer = 64M
read_buffer = 16M
write_buffer = 16M
[mysqlhotcopy]
interactive-timeout
View 7 Replies
View Related
Sep 18, 2007
I have been with Future Hosting since April of this year. I originally signed up during a promotion they had here on WebHosting Talk (for their Platinum Unmanaged Cpanel VPS).
My VPS was setup within a couple hours. Their support team was very helpful throughout the entire setup process.
For the months that followed, I had no major problems and everything was running great.
I would rarely experience an outage (in fact the only outages I experienced were due to network upgrades - and upgrades are a good thing). Future Hosting offered to do a free security setup on my VPS (which I thought was excellent - I didn't have to ask them, they asked me).
In the last month, I started to experience some slow downs on the VPS. Sometimes the slow downs were due to high load issues, the SATA hard drives, or a latency issue. I was setup on one of their Dallas servers when this was happening. Future Hosting offered to move my VPS to the Chicago datacenter. I read some posts on here that their Chicago servers are a lot better, so I accepted the offer to move the server. Jim from Future Hosting did the transfer and I was able to transfer all my web sites to the new server with ease. The speed difference moving from Dallas to Chicago was pretty dramatic. They also changed to SA-SCSI drives, and that makes a huge improvement (I believe Chicago and Dallas have the new drives).
In the end, the service at Future Hosting has been excellent. Support is great as well and their technicans are very helpful (especially Jim - great job). I recommend Future Hosting for anyone who wants a VPS. With the amazing prices they offer, and their excellent service, you can't lose.
View 14 Replies
View Related
Mar 18, 2008
Last year my web host stated that my site was over utilizing allowed resources for my plan. Specifically, they state that I was overusing the CPU. At the time, I had to upgrade my plan in order to stay online. I would like to move to a new host, but the prospective hosts are all suggesting a dedicated server because of my CPU usage. I don't want to pay that kind of money, so I would really like to curb the CPU problem. Does anyone know how to reduce the CPU of a Wordpress blog? I tried posting this question over at Wordpress.org, but I haven't received a single reply.
View 11 Replies
View Related
Oct 6, 2009
I have a VPS from KnownHost for about a year for developing purposes. Great place to go for VPS's, by the way.
Anyway I just installed a game server on it and now the loads are about 0.5 when I do a "top" command.
Should I be worried? The server isn't really used for anything right now, that is why I am using it as a L4D server. Max 8 people on it.
View 9 Replies
View Related
Nov 19, 2007
I was wondering about a specific VPS package I was considering. I have around 80~90 sites (and therefore accounts) that I need a nice place to call home, but I am wondering if maybe I would be asking too much of this VPS package:
40GB Disk Space
1000GB Transfer
P4 3.2GHz
800MHz Front Side Bus
1GB Guaranteed RAM | 2GB Burst RAM
CentOS 4
50% of CPU Guaranteed | Burst to...I don't remember.
All of the sites I would be hosting easily take up less than 100MB of space each. The most any of them use is 2-5GB of transfer. I know these levels are no where near my allotted resources, but do you think that serving 80-90 accounts like this is too much server load? There will only be 2 VPS' on each server, guaranteed.
Anyone with experience with a VPS and a decent set of accounts/domains, please let me know what you think.
View 9 Replies
View Related
Mar 18, 2008
My server details
Intel 2.4 Ghz P4 Celeron
os-redhat
RAM-2GB DDR
harddisk-160+50Gb
bandwith-3000Gb
now iam haveing more that 0.50-1.20 cpu useage,also cpu useage is also increased i hosted only 6 site out what only one site use MSQL all other site are plain download site,how to reduce the cpu load can u figure me out this issue also give me some tips to reduce the cpu usage
View 8 Replies
View Related
Jul 6, 2008
we have a dual xeon 2.8G +2G ram CPANEL server normally load is well under2 and stable
we also use Incremental Backup and choose Per Account Only for MySQL backup
This server mainly hosts a big site, whose SQL is 1.2G big
Everytime server is running backup, load burst to 7 and accessing to website hanged. We are thinking to change SQL backup method to Entire MySQL Directory , but was told while it is processing SQL server will be stopped ?? wil Entire MySQL Directory reduce server load while processing SQL backup?
View 6 Replies
View Related
Jul 7, 2007
apparently the sysctl commands / config does not work for VPS's. any way to reduce the time_wait period? got nearly 900 connections in that state!
View 0 Replies
View Related
Jul 9, 2007
I have smokeping monitoring my game servers and so far in the little time that it has been running all my game servers have been encountering an average of 4 to 10% packet loss. Are there are tweaks i can run on the server computer to reduce packet loss? (registry modifications, etc.)
I downloaded a TCP tweak program called "TCP Optimizer" is it safe to run on a Windows 2003 Server OS?
The colo connection is an OC 192 and i have a 100Mbit ethernet card.
Here are my current TCP settings:
Quote:
[SYSTEMCurrentControlSetServicesTcpipParameters]
TcpWindowSize=-1
GlobalMaxTcpWindowSize=-1
EnablePMTUDiscovery=-1
EnablePMTUBHDetect=-1
SackOpts=-1
DefaultTTL=-1
TcpMaxDupAcks=-1
Tcp1323Opts=-1
DisableUserTOSSetting=-1
DefaultTOSValue=-1
[SYSTEMCurrentControlSetServicesAfdParameters]
DefaultReceiveWindow=-1
[SoftwareMicrosoftWindowsCurrentVersionInternet Settings]
MaxConnectionsPerServer=-1
MaxConnectionsPer1_0Server=-1
[SYSTEMCurrentControlSetServicesICSharingSettingsGeneral]
InternetMTU=-1
[SOFTWAREMicrosoftWindowsCurrentVersionExplorerRemoteComputerNameSpace{D6277990-4C6A-11CF-8D87-00AA0060F5BF}]
{D6277990-4C6A-11CF-8D87-00AA0060F5BF}=-1
[SYSTEMCurrentControlSetServicesDnscacheParameters]
MaxNegativeCacheTtl=-1
NegativeCacheTime=-1
NetFailureCacheTime=-1
NegativeSOACacheTime=-1
[SOFTWAREPoliciesMicrosoftWindowsPsched]
NonBestEffortLimit=-5
[SYSTEMCurrentControlSetServicesTcpipServiceProvider]
LocalPriority=499
HostsPriority=500
DnsPriority=2000
NetbtPriority=2001
[SystemCurrentControlSetServicesLanmanServerParameters]
SizReqBuf=-1
[SYSTEMCurrentControlSetServicesNdisWanParametersProtocols]
ProtocolMTU=-2
[SYSTEMCurrentControlSetServicesTcpipParametersInterfaces{D63AC0FA-D2C9-4D83-B057-31A353516AB3}]
MTU=-1
TcpWindowSize=-1
[SYSTEMCurrentControlSetServicesPschedParametersAdapters{D63AC0FA-D2C9-4D83-B057-31A353516AB3}]
NonBestEffortLimit=-2
[SYSTEMCurrentControlSetServicesTcpipParametersInterfaces{8190D94A-3B2D-45C4-998D-312E99D6061D}]
MTU=-1
TcpWindowSize=-1
[SYSTEMCurrentControlSetServicesPschedParametersAdapters{8190D94A-3B2D-45C4-998D-312E99D6061D}]
NonBestEffortLimit=-2
View 11 Replies
View Related
Jan 24, 2007
I know there is no device can protect you from ddos attacks, but I wonder which one is the best to help you reduce the attacks? It might be intelligent to "feel" the attacks? Brand names from Cisco, Foundry, Nokia...?
View 2 Replies
View Related
Dec 8, 2008
I have two vps's n ifferent hardware, after my hoster performed an update to node I am now seeing high loads on both vps's
When I reboot the problem goes for a while
My servers host very little websites and little activity and normally run fine
I have notice a process "unhide" running, what is this and where should I start looking for this issue
[root@vps ~]# top
top - 18:47:59 up 1 day, 6:51, 1 user, load average: 1.96, 1.95, 1.92
Tasks: 62 total, 2 running, 60 sleeping, 0 stopped, 0 zombie
Cpu(s): 0.0% us, 2.8% sy, 1.1% ni, 96.0% id, 0.0% wa, 0.0% hi, 0.0% si
Mem: 1048576k total, 143908k used, 904668k free, 0k buffers
Swap: 0k total, 0k used, 0k free, 0k cached
Unknown command - try 'h' for help
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
23980 root 26 10 1872 876 316 S 2.0 0.1 4:40.86 unhide
1 root 15 0 1644 568 484 S 0.0 0.1 0:03.76 init
1982 root 17 0 6412 1828 1124 S 0.0 0.2 0:00.00 crond
1985 root 18 0 2120 900 784 S 0.0 0.1 0:00.00 run-parts
3228 root 18 0 3252 1028 896 S 0.0 0.1 0:00.00 01-rkhunter
3229 root 18 0 1888 548 460 S 0.0 0.1 0:00.00 awk
3665 apache 15 0 39700 18m 6036 S 0.0 1.8 0:05.14 httpd
5771 apache 15 0 39540 16m 4516 S 0.0 1.6 0:01.14 httpd
7837 root 26 10 11320 9272 976 S 0.0 0.9 0:07.64 rkhunter
9958 apache 15 0 39608 18m 6024 S 0.0 1.8 0:02.84 httpd
11611 root 15 0 8584 2532 1964 S 0.0 0.2 0:00.01 sshd
11831 root 16 0 6144 476 324 S 0.0 0.0 0:00.00 vzctl
11836 root 16 0 2184 1264 1048 S 0.0 0.1 0:00.00 bash
13789 root 16 0 1548 528 436 S 0.0 0.1 0:00.38 syslogd
13794 root 18 0 1484 368 308 S 0.0 0.0 0:00.00 klogd
14022 apache 15 0 39432 15m 3868 S 0.0 1.6 0:00.72 httpd
17612 root 18 0 4056 1052 756 S 0.0 0.1 0:00.00 sshd
View 4 Replies
View Related
Mar 3, 2009
How to reduce downtime - multiple name servers ?
Say I have two different hosting accounts at two different web hosts. One at host1.com and another at host2.com. In both the hosts I keep the same files. I use an external registrar and use the name servers for one of my domains as follows:
ns1.host1.com
ns1.host2.com
ns2.host1.com
ns2.host2.com
What would happen in that case, if say host1 is down sometime? Will the name servers point to host2.com?
If this could work, then the probability of downtime of a site would become almost 0 .
Google will like this ?
Another question is how to easily sincronize both cpanel accounts?
View 7 Replies
View Related
Apr 18, 2009
Few months ago I bought new small VPS box (OpenVZ, 128 MB RAM) in order to place there a new monitoring node of my site monitoring system. Such small amount of RAM is a challenge for operating system optimisation techniques (OpenVZ doesn’t have “swap” as Xen does).
First of all I discovered that apache2-mpm-worker (Apache implementation that uses threads) consumes more memory (100MB) than the classic version that use separate processes (20MB). I had to switch to apache2-mpm-prefork version then.
Next unpleasant suprise: small Python app eats 100MB of virtual memory! I checked that virtual (not resident) memory is taken into account by VPS. I applied some tools to locate memory bottleneck, but without success. Next I added logs with current memory usage to track call that causes big memory consumption. I tracked the following line:
server = WSGIServer(app)
is guilty for high memory increase. After few minutes of googling I located problem: default stack size for a thread. Details:This line creates few threads to handle concurrent calls
Stack size is counted towards virtual memory
Default stack size is very high on Linux (8MB)
Every thread uses separate stack
=> multi threaded application will use at least number_of_threads * 8MB virtual memory!
First solution: use limits.conf file. I altered /etc/security/limits.conf file and changed default stack size. But I couldn’t make this change to alter Python scripts called from Apache (any suggestions why?).
Second (working) solution: lower default stack size using ulimit. For processes launched from Apache I altered /etc/init.d/apache2 script and added:
ulimit -s 256
Now every thread (in apache / Python application) will use only 128 kB of virtual memory (I lowered VSZ from 70 MB to 17 MB this way). Now I have additional space to enlarge MySQL buffers to make DB operations faster.
There’s even better place to inject ulimit system-wide: you can insert this call in:
/etc/init.d/rc
script. Then ulimit will be applied to all daemons (as Apache) and all login sessions. I reduced virtual memory usage by 50% this way.
Note: you may increase stack size on stack overflow errors. In my opinion 256 kb is safe option for most systems, you may increase if in doubt. Still memory savings are big.
View 4 Replies
View Related
Aug 21, 2008
I have a shared host with them for a few months which the disk usage for home/backup is usually around 85-95%. Right now I am experiencing very slow download speed. What about yours?
Server Load 2.92 (8 cpus)
Memory Used 42.6 %
Swap Used 0.01 %
Disk /dev/sdc1 (/home) 91 %
Disk /dev/sdd1 (/backup) 90 %
Disk /dev/sde1 (/backup/cpbackup/weekly) 43 %
Disk /dev/ram0 (/ramdisk) 24 %
Disk /dev/sdb1 (/) 22 %
View 5 Replies
View Related
May 6, 2008
I have a Quad Core Xeon server with 2 GB RAM. The server has some high traffic websites & at peak hours (4-5 hrs a day) the server load remains 10.0 to 50.0.
The sites on the server load very slow at these times. Here's the top result during heavy load
[url]
View 5 Replies
View Related
Jan 2, 2008
I normally don't like too bother others with my problems but this time It seems I have no choice since I spent the whole afternoon trying to find out what the problem was and couldn't solve it "entirely".
Here's some hardware info:
Processor Information Processor #1 Vendor: GenuineIntel
Processor #1 Name: Intel(R) Xeon(R) CPU 3050 @ 2.13GHz
Processor #1 speed: 2133.418 MHz
Processor #1 cache size: 2048 KB
Processor #2 Vendor: GenuineIntel
Processor #2 Name: Intel(R) Xeon(R) CPU 3050 @ 2.13GHz
Processor #2 speed: 2133.418 MHz
Processor #2 cache size: 2048 KB
Memory Information Memory: 1031324k/1048320k available (2182k kernel code, 16308k reserved, 914k data, 240k init, 130816k highmem)
System Information Linux **************** 2.6.20-1.2320.fc5smp #1 SMP Tue Jun 12 19:40:16 EDT 2007 i686 i686 i386 GNU/Linux
Running Fedora Core 5 and working for over half year with almost no major problems, but today something totally weird just happened...
After waking up I logged to the server and realized how slow it was, I went to see more about that and for my surprise the loading was around 8 so I went to the mail queue to see if there were a few thousand mails, there were 16 mails... So I went to the see CPU % processes at WHM and I was stunted to see around 30 processes allegedly using over 11500% of the CPU or more!
My first thought was that cPanel smoked something before releasing a last update and I didn't realized it immediately so I downgraded from Release to Stable.
Nothing happened and I lost my time with this overheated overloaded and over-everything and I didn't changed any configuration.
I changed many old configs that... I don't know, might crashed with something that might changed... I was trying and looking for anything.
The load was getting up instead of down, it went up to around 60.
The final conclusion is that whenever I turn the MySQL on I got overwhelming loads otherwise the other services "only" give me around 1.5 of load but still very unstable.
I'm getting a little tired so my explanation may be a little confusing, sorry about that.
Anybody knows what this is? Did this ever happened to you? Extremely high loads without an obvious reason? If anyone could help me I would be thankful for that, I'm getting kind of desperate.
View 6 Replies
View Related
Oct 10, 2007
I have a server running SUSE. dual quad core chips, 16 gigs of RAM.
It's a webserver only running Apache.
We have been having a problem the past few days where page loads take forever yet CPU load and RAM load are very, very low.
I've noticed when it happens when viewing HTOP that TASKS jump from about 350 average to 1000 average. Pages won't start loading until this number drops.
I see no errors in error_log or messages however restarting Apache seems to fix the issue?
I've tried messing around with KEEPALIVE settings with no help.
Any clues on where to start? Pretty lost on this one becuase I see no errors and the load both CPU and RAM are low.
View 1 Replies
View Related
May 3, 2007
We are having a problem with our Linux dedicated server. At time we are getting high server loads witch is causing the server to go down and reboot. This problem has been going on for over a month now and still liquid web can not tell me what is the cause of the high loads. We have upgraded our RAM to 2 GB. This look to fix the problem for the first week but now we are back to having high loads and downtime.
I'm not a IT person so do not know how to find the problem. Can anyone tell me what I can do the locate the problem. I do know how to access and do some things in the root but do not know enough to find and fix this issue.
View 9 Replies
View Related
May 11, 2007
Recently, we've been getting a lot of high loads (every 30 mins or so..) This is what shows in the warning email that we receive:
---------------------------------
12.0 04:31:35 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/swh.sellwebhost.com.pid --skip-external-locking
----------------------------------
We are using whm.. Any idea what might be causing this?
View 12 Replies
View Related
Feb 24, 2008
1) Use PHP as isapi module
2) Open Internet Information Services (IIS) Manager > Right Click On "Web Sites" select properties > Click Service Tab > Open HTTP Compression > Select Compress Application Files and Compress Static Files
3) Use eAccelerator (PHP accelerator, optimizer, and dynamic content cache) with This options;
eaccelerator.shm_size="64"
eaccelerator.cache_dir="c: mpmmcache"
eaccelerator.enable="1"
eaccelerator.optimizer="1"
eaccelerator.check_mtime="1"
eaccelerator.debug="0"
eaccelerator.filter=""
eaccelerator.shm_max="0"
eaccelerator.shm_ttl="0"
eaccelerator.shm_prune_period="0"
eaccelerator.shm_only="0"
eaccelerator.compress="1"
eaccelerator.compress_level="9"
eaccelerator.keys = "shm"
eaccelerator.sessions = "shm"
eaccelerator.content = "shm"
4) Don't load this extensions,
extension=php_mbstring.dll
extension=php_domxml.dll
extension=php_xslt.dll
Only use this Extensions in php.ini
extension=php_sqlite.dll
extension=php_curl.dll
extension=php_gd2.dll
extension=php_gettext.dll
extension=php_iconv.dll
extension=php_imap.dll
extension=php_mssql.dll
extension=php_sockets.dll
extension="eaccelerator.dll"
upload_tmp_dir= "C:WINDOWSTemp"
This Settings tested on Windows Server 2003 SP2 IIS6 with PHP v4.4.7
View 5 Replies
View Related
Apr 20, 2009
I'm not sure whats the problem with my server.
When accessing websites on our server, we will get a Website not found but after trying 2 or 3 times then the website loads.
View 2 Replies
View Related
Mar 25, 2009
Two of my VPS's with a company are now showing very high memory loads, even after a reboot, both server are located on different nodes and they both shot up to high ram loads at the same time today(9amGMT) ....
View 4 Replies
View Related
Apr 30, 2009
has anyone else noticed an unusually high load occurring from 9 till 11 EEST time on their servers?
I've been getting high loads everyday this week at exactly these times.
I'm thinking that this is a crawler/bot that is causing the loads, i've already installed dos deflate and there hasn't been more than 100 connections from the same ip, so I'm ruling out any DOS attack ... besides, what kind of attack only takes place for 2 hours a day at exactly the same time?
I'm on a cpanel system and would like to know which logs to take a look at to determine the cause.
View 14 Replies
View Related