Skip to content

Instantly share code, notes, and snippets.

View janewang's full-sized avatar

Jane Wang janewang

  • Washington, DC
View GitHub Profile
Apache needs to fork a process to handle each connected client.
The upshot is that you have lots of processes because you have lots of connections. If your server is running slowly as a result then here are a few options:
Optimise your application: profile your application's code and try and optimise the areas that place the most load on the server.
Consider changing to a lower impact web server, such as nginx. This could increase the number of connections that your server can handle.
Add page caching, using something like varnish
Add another server, and load balance between them
Increase the capabilities of the existing server (e.g. increase RAM, upgrade processor, install a faster hard disk).
All of these options have a cost, in time or money. Unfortunately that's just the way it is :)
top - 22:52:50 up 34 days, 2 min, 5 users, load average: 0.41, 0.39, 0.34
Tasks: 161 total, 1 running, 160 sleeping, 0 stopped, 0 zombie
Cpu(s): 4.1%us, 1.7%sy, 0.0%ni, 94.1%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 7182904k total, 5897136k used, 1285768k free, 103328k buffers
Swap: 0k total, 0k used, 0k free, 646100k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
18014 webapp 20 0 671m 65m 35m S 15.6 0.9 0:04.76 httpd
18104 webapp 20 0 673m 62m 30m S 10.3 0.9 0:01.94 httpd 18105 webapp 20 0 672m 61m 30m S 10.0 0.9 0:01.51 httpd
17682 webapp 20 0 669m 65m 36m S 5.3 0.9 0:11.52 httpd 18050 webapp 20 0 673m 66m 34
top - 22:53:53 up 34 days, 3 min, 2 users, load average: 0.13, 0.27, 0.31
Tasks: 141 total, 2 running, 139 sleeping, 0 stopped, 0 zombie
Cpu(s): 3.9%us, 1.7%sy, 0.0%ni, 94.2%id, 0.0%wa, 0.0%hi, 0.1%si, 0.0%st
Mem: 7182904k total, 5973228k used, 1209676k free, 125744k buffers
Swap: 0k total, 0k used, 0k free, 633184k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
20742 webapp 20 0 672m 66m 35m S 11.3 1.0 0:04.39 httpd
20782 webapp 20 0 673m 68m 35m S 8.0 1.0 0:07.37 httpd 20902 webapp 20 0 672m 65m 34m S 7.6 0.9 0:01.21 httpd
20438 webapp 20 0 673m 66m 34m S 5.6 1.0 0:08.85 httpd 20485 webapp 20 0 671m 68m 36
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.0 19488 1556 ? Ss 2014 0:02 /sbin/init
root 2 0.0 0.0 0 0 ? S 2014 0:00 [kthreadd]
root 3 0.0 0.0 0 0 ? S 2014 1:05 [ksoftirqd/0]
root 5 0.0 0.0 0 0 ? S< 2014 0:00 [kworker/0:0H]
root 6 0.0 0.0 0 0 ? S 2014 2:05 [kworker/u16:0]
root 7 0.0 0.0 0 0 ? S 2014 23:10 [rcu_sched]
root 8 0.0 0.0 0 0 ? S 2014 0:00 [rcu_bh]
root 9 0.0 0.0 0 0 ? S 2014 0:02 [migration/0]
root 10 0.0 0.0 0 0 ? S 2014 0:05 [migration/1]
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.0 19488 1604 ? Ss 2014 0:03 /sbin/init
root 2 0.0 0.0 0 0 ? S 2014 0:00 [kthreadd]
root 3 0.0 0.0 0 0 ? S 2014 1:04 [ksoftirqd/0]
root 5 0.0 0.0 0 0 ? S< 2014 0:00 [kworker/0:0H]
root 6 0.0 0.0 0 0 ? S 2014 2:08 [kworker/u16:0]
root 7 0.0 0.0 0 0 ? S 2014 23:46 [rcu_sched]
root 8 0.0 0.0 0 0 ? S 2014 0:00 [rcu_bh]
root 9 0.0 0.0 0 0 ? S 2014 0:02 [migration/0]
root 10 0.0 0.0 0 0 ? S 2014 0:05 [migration/1]
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.0 19488 1604 ? Ss 2014 0:03 /sbin/init
root 2 0.0 0.0 0 0 ? S 2014 0:00 [kthreadd]
root 3 0.0 0.0 0 0 ? S 2014 1:04 [ksoftirqd/0]
root 5 0.0 0.0 0 0 ? S< 2014 0:00 [kworker/0:0H]
root 6 0.0 0.0 0 0 ? S 2014 2:07 [kworker/u16:0]
root 7 0.0 0.0 0 0 ? S 2014 23:40 [rcu_sched]
root 8 0.0 0.0 0 0 ? S 2014 0:00 [rcu_bh]
root 9 0.0 0.0 0 0 ? S 2014 0:02 [migration/0]
root 10 0.0 0.0 0 0 ? S 2014 0:05 [migration/1]
<?php
header('Cache-Control: private');
header('Pragma: no-cache');
# Activate ESI processing
header('X-Esi: 1');
?>
<div class="right cart-div">
<?php
if( is_woocommerce_activated() ) {
You are receiving this email because your Amazon CloudWatch Alarm "awsroute53-swellbottle-High-Health-Check-Status" in the US - N. Virginia region has entered the ALARM state, because "Threshold Crossed: 5 datapoints were less than the threshold (1.0). The most recent datapoints: [0.0, 0.0]." at "Tuesday 20 January, 2015 22:15:27 UTC".
View this alarm in the AWS Management Console:
https://console.aws.amazon.com/cloudwatch/home?region=us-east-1#s=Alarms&alarm=awsroute53-swellbottle-High-Health-Check-Status
Alarm Details:
- Name: awsroute53-swellbottle-High-Health-Check-Status
- Description:
- State Change: OK -> ALARM
- Reason for State Change: Threshold Crossed: 5 datapoints were less than the threshold (1.0). The most recent datapoints: [0.0, 0.0].
<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xmlnn
s:xsd="http://www.w3.org/2001/XMLSchema"xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><PLGG
etOrderStatusResponse xmlns="http://prolog3pl.com/"><PLGetOrderStatusResult><Orders><PLOrderStatusHeader><ProLL
ogOrderId>494478</ProLogOrderId><OrderNumber>12210</OrderNumber><Status>SHIPPED</Status><CompletedDate>15-01-00
5T00:00:00.00</CompletedDate><ShippingService>UPSG</ShippingService><LastUpdatedDate>2015-01-05T14:43:00.00</LL
astUpdatedDate><Lines><PLOrderStatusLine><ProLogLineId>1</ProLogLineId><LineNumber>1</LineNumber><Product>SWB--
RED06</Product><QuantityOrdered>1</QuantityOrdered><QuantityShipped>1</QuantityShipped><QuantityBackordered>0<<
/QuantityBackordered></PLOrderStatusLine></Lines><Shipments><PLOrderStatusShipment><ProLogShipmentId>494478</PP
roLogShipmentId><Warehouse>NEVADA DISTRIBUTION</Warehouse><ShippingService>UPSG</ShippingService><Status>SHIPPP
ED</Status><Ship
$data = '<soap:Header><soap:Header/><soap:Body><PLGetOrderStatusResponse xmlns="http://prolog3pl.com/"><PLGetOrderStatusResult><Orders><PLOrderStatusHeader><ProLogOrderId>494478</ProLogOrderId><OrderNumber>12210</OrderNumber><Status>SHIPPED</Status><CompletedDate>15-01-05T00:00:00.00</CompletedDate><ShippingService>UPSG</ShippingService><LastUpdatedDate>2015-01-05T14:43:00.00</LastUpdatedDate><Lines><PLOrderStatusLine><ProLogLineId>1</ProLogLineId><LineNumber>1</LineNumber><Product>SWB-RED06</Product><QuantityOrdered>1</QuantityOrdered><QuantityShipped>1</QuantityShipped><QuantityBackordered>0</QuantityBackordered></PLOrderStatusLine></Lines><Shipments><PLOrderStatusShipment><ProLogShipmentId>494478</ProLogShipmentId><Warehouse>NEVADA DISTRIBUTION</Warehouse><ShippingService>UPSG</ShippingService><Status>SHIPPED</Status><ShippedDate>15-01-05T00:00:00.00</ShippedDate><Packages><PLOrderStatusPackage><ProLogTrackingNumber>1ZE31843YW46367974</ProLogTrackingNumber><TrackingNumber>1ZE31843YW46367974</TrackingNumber