Skip to content

Instantly share code, notes, and snippets.

View ajohnstone's full-sized avatar

Andrew Johnstone ajohnstone

View GitHub Profile
Whoops, looks like something went wrong.
1/1FatalErrorException: Error: Class 'ezxFormToken' not found in /var/www/announcements-ez/web/symfony/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishLegacyBundle/LegacyMapper/Configuration.php line 119
in /var/www/announcements-ez/web/symfony/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishLegacyBundle/LegacyMapper/Configuration.php line 119
at ErrorHandler->handleFatal() in /var/www/announcements-ez/web/symfony/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Debug/ErrorHandler.php line 0
at Configuration->onBuildKernel() in /var/www/announcements-ez/web/symfony/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php line 164
at ??call_user_func() in /var/www/announcements-ez/web/symfony/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php line 164
at EventDispatcher->doDispatch() in /var/www/announcements-ez/web/symfony/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher
services:
ia.rest.client:
class: IA\WebBundle\Models\RestClient
public: true
ia.model.babel.member:
class: IA\WebBundle\Models\Babel\Member
public: true
calls:
- [ setRestClient, [ @ia.rest.client ] ]
<?xml version="1.0" ?>
<container xmlns="http://symfony.com/schema/dic/services"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">
<parameters>
<parameter key="security.user.provider.webservice.service.class">Acme\DemoBundle\Security\Core\User\WebserviceUserProvider</parameter>
<parameter key="ia.service.class">Acme\DemoBundle\Service\Service</parameter>
ErrorException: Catchable Fatal Error: Argument 1 passed to IA\WebBundle\Security\Authentication\Provider\WebserviceProvider::__construct() must implement interface Symfony\Component\Security\Core\User\UserProviderInterface, string given, called in /opt/src/web/symfony/app/cache/dev/appDevDebugProjectContainer.php on line 1551 and defined in /opt/src/web/symfony/src/IA/WebBundle/Security/Authentication/Provider/WebserviceProvider.php line 30
andrew@andrew-OptiPlex-7010:/var/www/cms/cmf-sandbox/app/config$ ab -n 200 -c 50 -A admin:m0flag http://andrew.ponie.org/about-us
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking andrew.ponie.org (be patient)
Completed 100 requests
Completed 200 requests
Finished 200 requests
#!/opt/perl/bin/perl
use Cache::Memcached::libmemcached;
use POSIX qw/strftime/;
use Digest::MD5 qw(md5 md5_base64 md5_hex);
use Time::HiRes qw( usleep ualarm gettimeofday tv_interval nanosleep
clock_gettime clock_getres clock_nanosleep clock
stat );
use Data::Dumper;
zcat Summary.2012-12-09.gz | grep '2012-12-09 20:[234]' | awk '
BEGIN{
size=50;
tmax = -999999999;
tmin = 999999999;
}
{ # Accumulate basic data
cnt[$10]++;
item[++n] = $10;
if ($10 > max) max = $10; if ($10 < min) min = $10;
LoadPlugin "apache"
<Plugin "apache">
<Instance "apache80">
URL "http://localhost/server-status?auto"
</Instance>
<Instance "apache81">
URL "http://localhost:81/server-status?auto"
</Instance>
</Plugin>
root 1475 33.5 0.5 467484 362016 ? Sl 14:55 122:38 /usr/bin/python /opt/graphite/bin/carbon-cache.py --config /opt/graphite/conf/carbon-cache.conf --instance=c start
root 1483 39.6 0.9 727544 636780 ? Sl 14:55 144:36 /usr/bin/python /opt/graphite/bin/carbon-cache.py --config /opt/graphite/conf/carbon-cache.conf --instance=b start
root 1491 25.5 28.2 19938972 19854664 ? Sl 14:55 93:12 /usr/bin/python /opt/graphite/bin/carbon-cache.py --config /opt/graphite/conf/carbon-cache.conf --instance=a start
Carbon relay - performance
alias(color(sumSeries(group(carbon.agents.*.updateOperations)), "blue"),"Updates")
alias(color(sumSeries(group(carbon.agents.*.metricsReceived)), "green"), "Metrics Received")
alias(color(sumSeries(group(carbon.agents.*.committedPoints)),"orange"),"Committed Points"))
alias(secondYAxis(color(sumSeries(group(carbon.agents.*.pointsPerUpdate)),"yellow")),"PPU")
alias(secondYAxis(color(averageSeries(group(carbon.agents.*.cpuUsage)),"red")),"CPU (avg)")
alias(secondYAxis(color(sumSeries(group(carbon.agents.*.creates)),"purple")),"Creates")
Metrics received
carbon.agents.*.metricsReceived