How Can I Reduce My CPU Usage
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
ADVERTISEMENT
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
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
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
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
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 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
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
Oct 29, 2008
I have registered a domain using godaddy. I have hosted my site on a server of my shared hosting provider(lets call them X).Currently I have pointed mydomain.com to the server and it is up and running.Sometimes, I have experienced downtimes.
In order to solve this problem, I have hosted a clone of my site on another server from another hosting company(lets call them Y).
1. I want mydomain.com to point to Y when X is down
2. again point it to X when it is up.
My main aim is to have my site live with less downtime. The probability having both servers down is very less.
I dont know if it is technically feasible, just a thought out of dirty mind. I tried to google but was not able to find an answer specific to my problem.
Can anybody tell me how to achieve this through godaddy domain.
Added note, My site is not a commercial site and I cant afford large dedicated servers with clustering and failovers.
View 13 Replies
View Related
Oct 31, 2008
I would like to know if there's any way we could reduce "conversion times" for videos while converting them with "mencoder" and "x264 codec"?
Is it possible to cluster 2-3 or more servers (Quad core/8GB RAM) so that I can reduce the conversion timings effectively?
The original video sizes are around 500-700MB on an average and I'd like to convert them using mencoder in x264 codec @ 500Kbps bitrate and 2pass settings.
Ofcourse it'll take atleast 1-2hours to encode 1 such video at these settings on a 'single' such server, so is there a way to reduce the conversion times to around 10-15minutes/video by using "parallel encoding" with x264 codec?P.S: I know how to form a cluster, using beowulf/rocks, etc...what I need help with is 'using' the cluster with x264 codec
View 11 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
Mar 19, 2007
I did a quick search on this and could not see it as already being posted
It seems quite a clever but simple idea - remove a lot of the oxygen from the air to help reduce the risk of fire. What do those of you operating your own facilities make of this? Is anyone already doing this?
[url]
View 14 Replies
View Related
Mar 28, 2009
i want to edit "Reduce your SELECT DISTINCT queries without LIMIT clauses" in my my.cnf.
View 1 Replies
View Related
Feb 15, 2009
I have been using Blue Host for years, but recently they kept suspending my account due to performance problem.
I was only running a php forum (phpBB3) and a Wordpress blog. They kept mentioning it is not problem with space/bandwidth, but issues with "Running application causing high load", and the mysql queries from phpBB3 are taking too long.
Now I am planning to add a Ruby on Rails application. I am sure it will cost more CPU usage. What should I do? Will a move to VPS hosting solve my problem?
View 14 Replies
View Related
Oct 14, 2009
We are currently looking to move to a new dedicated server provider located in the United Kingdom. The server is solely used to provide an IRC daemon to a large IRC network that receives multiple gigabits of DDoS and PPS. We are currently with another hosting provider who can no longer support us.
Our current specification is DualCore Xeon 2.67Ghz/4MB Cache with 500GB SATA HDD. A good connection and available bandwidth (preferably 3-5,000 GB bandwidth /month) included in the price. We are seeking to move to a new dedicated server host, if you know a company that can accommodate our needs,
View 4 Replies
View Related
Nov 7, 2009
I need to copy some large files from ServerA to ServerB, I want to use scp command.
I need a step by step guide to use it please.
from which server should I start the conection?
what is command to use?
...
View 4 Replies
View Related
Jul 14, 2009
How do you prevent people from using different IPs on a machine that has a couple VPS clients on it.
If client A has xxx.xxx.xxx.100-xxx.xxx.xxx.103 and client B has xxx.xxx.xxx.104-xxx.xxx.xxx.105. How do you prevent client B from using client A's IPs? Can't he easily modify the config file for his ethernet device to use an IP that hasn't been assigned to him but is assiged to someone else on the same machine?
View 9 Replies
View Related
Apr 18, 2008
i checked the CPU usage on my vpc tru Plesk and Remote control, bouth stating i got high CPU usage around 89% 90% TO 96% up and down, no program is using the resources they are all in 0% in the process tab, but when you check the Performance it stats 95%, i dont understand what is going on,
it's a windows O/S ,vps
View 3 Replies
View Related
May 6, 2008
I have VPS with 1GB ram and run same proxy sites in VPS,but sometime usage Ram is high almost 80%, but if I see in histat I see user online is same with usually..
and when I use command netstat -ntu | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n I see 1 or 2 IP is 200connection , what is mean?
is Ddos attack or what? and I try to ban this IP using command iptables -A INPUT -s [this IP adress]
but I see this IP still connect? so what must I do?
View 5 Replies
View Related
Aug 30, 2008
When I remote into my Windows VPS, Task Manager shows 80% CPU usage on the Performance tab, however, if I look at the running tasks, there's hardly any CPU usage. Is Task Manager including CPU usage from all other VPS's on the box?
View 5 Replies
View Related
Oct 7, 2008
How to find which process is using my CPU/RAM on Windows VPS(Virtuzzo). Any tool for the same?
View 7 Replies
View Related
Oct 12, 2008
Besides web hosting what are some of the other applications are you using VPSs for?
View 13 Replies
View Related
Jul 27, 2008
For about a couple of days (no configs were changed) I am experiencing high cpu usage from time to time.
At this moment and what I can see is this:
Sites are using low cpu resources, top process is mysql + 1-2 php defuncts replacing each other, after that - httpd requests
Something happens and php are starting to use more cpu thant it should. Cpu top usage shows all php files in all accounts replacing each other (index files, scripts there are like wordpress, forums, etc).
Server crashes... Or I kill all php processes, restart apache and it goes back to normal mode again.
I had the same issue months ago, just cpu usage was even more agressive and much often. After days of checking, I've found that it was
Curl and/or Curlwrappers which were cauisng that. After recompiled apache without them (left curlssl only), cpu load was always stable.
View 4 Replies
View Related
Jun 19, 2008
I m currently hosted on a shared host and this is the stat for on eof my site:
Hours CPU Time Execution time CPU Usage Average Memory Processes
0-6 20.46 s 98.86 s 0.24% 2.52 MB 105
6-12 246.99 s 1927.26 s 2.86% 2.46 MB 1328
12-18 373.3 s 3660.48 s 4.32% 2.52 MB 1867
18-24 250.57 s 2800.82 s 2.90% 2.52 MB 1259
So it shows my site uses avg 2.52 MB RAM. This is in shared hostinng plan.
Now suppose I am going for a VPS server with 256 MB RAM, does that mean I will get whole 256 MB RAM for my Site usage or the OS and other application will also consume that amount of RAM.
What I understand that when you go for VPS, the allocated processor and RAM capacity to yur plan will be used by the OS, the cpanel or any other scripts and the Database. So basically they together will consume nearly 256 MB RAM.
View 5 Replies
View Related
Jul 9, 2008
Seems to have accidently cut out of my screenshot, but the 4th column reads "NI", can anybody tell me what this is?
There are a few negative values, is this bad?
View 3 Replies
View Related
Jul 20, 2007
My site seems to be quite slow at peak times because it is on shared.
I believe a VPS or Semi-Dedicated would be the best way to go.
I don't have too much to spend and I will post my usages below.
I run vBulletin 3.6.7, and at high peak times around 80 users are online, but that can drop to 30 at low periods.
As I said, I would think that VPS would be the way to go..
I have around 20-25USD to spend per month (maybe if you can assist me in finding an offer/promotion..)
I would need DirectAdmin included and preferably Fully-Managed.
I wouldn't be hosting any other sites, apart from my one with vBulletin.
It is a low budget, but if you can't find a VPS, maybe Semi-Dedicated or a flexible shared package..
View 7 Replies
View Related