archive-com.com » COM » 2 » 2BITS.COM

Total: 372

Choose link from "Titles, links and description words view":

Or switch to "Titles and links view".
  • advcache and memcached benchmarks with Drupal | 2bits.com, Inc. - Drupal Performance Tuning and Optimization, Managed Hosting and Consulting
    66 23 75 23 80 33 90 33 95 34 98 35 99 35 100 421 longest request We get 116 requests per second and 95 of the requests take 34 milliseconds or less Test 4b memcache with normal cache with 5 concurrency This is the same test as above but with more concurrency Document Path Document Length 41779 bytes Concurrency Level 5 Time taken for tests 4 524459 seconds Complete requests 500 Failed requests 0 Write errors 0 Total transferred 21185306 bytes HTML transferred 20931279 bytes Requests per second 110 51 sec mean Time per request 45 245 ms mean Time per request 9 049 ms mean across all concurrent requests Transfer rate 4572 48 Kbytes sec received Connection Times ms min mean sd median max Connect 0 18 43 0 15 486 Processing 7 24 25 3 23 525 Waiting 0 15 11 6 15 51 Total 30 43 48 8 38 525 Percentage of the requests served within a certain time ms 50 38 66 38 75 38 80 38 90 56 95 56 98 56 99 525 100 525 longest request There is a slight drop in requests per second and an increase in the 95 millseconds Test 5a memcache with aggressive cache with concurrency 5 Combining memcache with aggressive cache and high concurrency results are still good Document Path Document Length 42022 bytes Concurrency Level 5 Time taken for tests 3 187112 seconds Complete requests 500 Failed requests 0 Write errors 0 Total transferred 21264500 bytes HTML transferred 21011000 bytes Requests per second 156 88 sec mean Time per request 31 871 ms mean Time per request 6 374 ms mean across all concurrent requests Transfer rate 6515 62 Kbytes sec received Connection Times ms min mean sd median max Connect 0 12 9 3 10 32 Processing 5 19 9 7 17 40 Waiting 0 12 9 2 10 31 Total 26 31 6 1 27 40 Percentage of the requests served within a certain time ms 50 27 66 39 75 39 80 39 90 39 95 39 98 40 99 40 100 40 longest request We do 156 requests per second and 95 of requests are finished in 39 milliseconds Advanced cache advcache module We could not test the the advcache module for two reasons It requires a more extensive setup since the benchmarks have to use a logged in user s cookie It is synched to the DRUPAL 5 tag in CVS not the released Drupal 5 1 tarball Conclusions From the above tests one can conclude the following Using normal caching is significantly better than no caching at all for anonymous users Using aggressive caching provides much better performance than using the normal cache Note that there are some side effects for some modules Using memcached is not that different from using database caching However given that only one page was benchmarked and hence the Linux or the database cached the rows since they are a small sample size may have skewed these results The memcache module is not needed just the inc file Remember that this is not an optimal setup just a comparative benchmark If you can afford it use multiple servers with lots of RAM for memcache and a dedicated server for the database also with lots of RAM Also remember that the scenario is different for authenticated users which we hope to have the time to cover in a future benchmark perhaps with the advanced caching module too Contents Articles XML sitemap module performance issues and how to avoid them up logwatcher restart Apache after a segmentation fault Add new comment Comments Some notes Submitted by Visitor not verified on Sat 2007 06 02 05 53 Thanks for benchmarking This is truly exciting stuff Some notes about advcache The module alone doesn t do anything it only starts to do advanced caching if you apply the patches that are included For benchmarking purposes it s easiest just to apply the all patches patch which includes caching for nodes comments taxonomy forums and search The advcache patches are specifically targeted at improving the performance of authenticated users so it is not surprising to me that you didn t see much performance gain due to advcache since you tested for the anonymous user Try applying the all patches patch and running ab with the C PHPSESSID 12345 parameter It is best to get the PHPSESSID from a normal user not admin so log onto your site as a normal site user and then look at your cookie to get the actual session hash Finally the configuration that you specified for the memcache setup where there is one memcached instance and all bins go into the default cluster is synonymous with no configuration at all ie the default state so you don t technically need to specify memcache servers and memcache bins in this case Great work reply Memory Submitted by Visitor not verified on Sun 2007 06 03 06 45 What s the memory size of your Apache Mysql Memcache processes if your not able to have a concurrency higher than three at some moments That seems very low to me on your hardware On our dedicated server on www tik be with 1 GB RAM we can easily run ab with c 100 and serve 220 70 requests s That s a Drupal 5 1 with normal caching and CiviCRM and lot s of other modules installed reply Here it is with concurrency 100 Submitted by Visitor not verified on Sun 2007 06 03 13 24 This is a development machine that has lots of stuff on it After turning off the stuff that is not needed and some tuning here is a test using the command ab n7500 c100 http example com This is with normal cache Document Path Document Length 42024 bytes Concurrency Level 100 Time taken for tests 72 547443 seconds Complete requests 7500 Failed requests 5 Connect 0 Length 5 Exceptions 0 Write

    Original URL path: http://2bits.com/articles/advcache-and-memcached-benchmarks-with-drupal.html (2016-05-02)
    Open archived version from archive

  • logwatcher: restart Apache after a segmentation fault | 2bits.com, Inc. - Drupal Performance Tuning and Optimization, Managed Hosting and Consulting
    LOG OUTPUT FILENAME should have the exact time and number that this happened mail email Apache has been restarted body reply debian init script Submitted by Visitor not verified on Thu 2007 08 23 17 43 Thanks for this article Khalid I ve finally had occasion to put logwatcher php into action and found your notes very helpful to get everything working As mentioned I did need to make a few tweaks to the php to get email notifications working went with the local argument passing method rather than globalizing email and an additional regex in the array action checks array to suit the particular APC segfault error we were seeing in the logs However the main thing I added that I thought might be of value was a Debian style init d script based on the standard skeleton and stealing all the functionality from your logwatcher sh above Here s the code bin sh set e PATH usr local sbin usr local bin sbin bin usr sbin usr bin DESC logwatcher NAME logwatcher DAEMON root bin logwatcher php PIDFILE var run NAME pid SCRIPTNAME etc init d NAME Gracefully exit if the package has been removed test r DAEMON exit 0 BASE DIR root bin SCRIPT BASE DIR logwatcher php PID FILE var run logwatcher pid EMAIL email example com case 1 in start echo n Starting DESC NAME if r PID FILE then kill cat PID FILE rm f PID FILE fi cd BASE DIR nohup php SCRIPT EMAIL dev null PID echo PID PID FILE echo stop echo n Stopping DESC NAME if r PID FILE then kill cat PID FILE rm f PID FILE fi echo restart force reload echo n Restarting DESC NAME if r PID FILE then kill cat PID FILE rm f PID FILE fi cd BASE DIR nohup php SCRIPT EMAIL dev null PID echo PID PID FILE echo echo Usage SCRIPTNAME start stop restart force reload 2 exit 1 esac exit 0 Drop this into etc init d logwatcher chmod x and run update rc d logwatcher defaults to enable this on your next boot Then run etc init d logwatcher to start it up without booting reply Great script Just one Submitted by MKZA not verified on Thu 2011 08 25 05 04 Great script Just one question If I want to check for other strings is this the correct way to add to the array array action checks restart Array exit signal Segmentation fault still did not exit Out of memory kill process php invoked oom killer reply Testing Submitted by Visitor not verified on Wed 2008 01 23 05 46 Is there any way to simulate a seg fault or otherwise test that this script is working properly I believe I have everything in place but don t know how to be sure Thanks for the script This will be really useful for our site reply Try this Submitted by Visitor not verified on Fri 2008 01 25 05 32 One way to simulate it is to call the url www example com exit signal Segmentation fault That works for us Best Johs reply I am replying to a old post Submitted by Visitor not verified on Thu 2013 04 18 15 14 I am replying to a old post but this shows how easily to force the Apache server to restart with this script It can be used as DOS attack by keep sending the crafted URL request www example com exit signal Segmentation fault to the server This script should not be used unless there is a way to rectify this security hole reply The best way to simulate Submitted by Visitor not verified on Thu 2008 02 21 15 33 The best way to simulate this script would be to fetch one of apache s child PIDs and perform kill s SIGSEGV PID reply Logrotation Submitted by Visitor not verified on Thu 2008 01 24 12 28 Thanks for a very good script However after installing logrotation the script stoped working We figured out that it was because the filepointer was pointing out of the file after the log had been rotated Therefore we changed the line if last position 0 to if last position 0 last position filesize file name Best Johs reply Simplified version Submitted by Visitor not verified on Tue 2008 01 29 17 09 I m a minimalist by nature so here is my version of the script Our error log files can get big 500 Megs so opening the file and reading each line wasn t efficient By using tail to read the last line in the log file it makes it easy Configure your notifications as needed Configure your method for restarting apache Crontab entry usr bin php path to the script log check php dev null rst exec tail n 1 var log httpd error log if preg match exit signal Segmentation fault rst 1 print APACHE NEEDED TO BE RESTARTED exec service httpd restart this is what ever you use to restart apache print APACHE RESTARTED mail your email com SERVERNAME Seg Fault Restart FYI else print ALL COOL reply Pure bash version Submitted by Visitor not verified on Fri 2008 12 19 06 29 Why start a heavy PHP interpreter if you can do it in bash with a few lines You could add several logs to be followed or use a complex regex I m using egrep here CUT bin bash errLog var log apache2 error log apacheRestart etc init d apache2 restart failRegex exit signal Segmentation fault scriptLog data logs http basename 0 log while true do echo date re starting control loop tail follow name retry n 0 errLog 2 dev null while read logLine do if echo logLine egrep failRegex then echo date Segfault detected restarting apache apacheRestart break fi done sleep 5 done scriptLog 2 1 CUT reply Right on the bash script is the way to go Submitted by Visitor

    Original URL path: http://2bits.com/articles/logwatcher-restart-apache-after-a-segmentation-fault.html (2016-05-02)
    Open archived version from archive

  • Links and resources on Drupal performance tuning and optimization | 2bits.com, Inc. - Drupal Performance Tuning and Optimization, Managed Hosting and Consulting
    Benchmarking Drupal with PHP op code caches APC eAccelerator and XCache compared Benchmarking PostgreSQL vs MySQL performance using Drupal 5 x Benchmarking Zend Server Community Edition with Drupal Benchmarking strings overrides vs locale module Beware of Drupal modules that disable the page cache Beware when Drupal Pressflow displays messages for anonymous users Botnet hammering web site causing outages Bottleneck Replacing taxonomy term count nodes in taxonomy dhtml Bypassing Drupal core Node Access table joins to avoid outage caused by slow queries Can a Drupal web site handle a million page views a day Case study Views Quicktabs and template php Common Issues and Solutions for Dealing with Cloud Computing and VPS performance issues for Drupal Configuring Apache Solr 3 6 for Drupal on Ubuntu 14 04 with password authentication Configuring Apache Solr 4 x for Drupal with password authentication Configuring Drupal with multiple bins for memcached Correct Client IP Address with a Reverse Proxy or Content Delivery Network CDN Do not configure the Service Links module with TinyURL com Drupal 7 x and Pressflow pitfalls can reduce your site s performance Drupal core caching and contributed content caching modules Drupal not saving admin pages with large number of input fields Drupal on a dedicated servers vs Amazon AWS EC2 Drupal performance tuning and optimization userpoints seminar at Open Craft Drupal site excessive memory usage traced to APC and php5 memcached Examples for Drupal custom caching Adding a cache timestamp to cached pages and HTTP headers Fast Parallel MySQL Backups and Imports with Mydumper Free your content of PHP Moving PHP code out of blocks views and nodes Google Crawler hitting your site too aggressively High PHP execution times for Drupal and tuning APC for include once performance High Performance Drupal with Apache MPM Worker Threaded Server and PHP FPM High server load because of repeating queries too many times Hosting Virtualization Virtuozzo OpenVZ vs Xen which is best How Drupal s node access table can negatively impact site performance How Google and Bing crawlers were confused by quicktabs How relying on connections to third party servers can be detrimental to performance How to reduce page load times by sending emails via cron rather on page submission Identifying aggressive crawlers using Go Access Improve Your Drupal Site Performance While Reducing Your Hosting Costs Improving the performance of Drupal s cron by using the Elysia cron module Increasing Drupal s speed via the Squid caching reverse proxy Installing PHP APC on GNU Linux Centos 5 Installing PHP APC on GNU Linux Ubuntu Gutsy Gibbon 7 10 and Debian Installing Varnish 3 x on Ubuntu Server 12 04 LTS and using Munin to monitor it Installing and Configuring Redis for Drupal 7 and other Memcached Alternatives Installing eAccelerator 0 9 5 1 on Ubuntu Feisty 7 04 Installing memcached 1 2 5 and memcache pecl 2 2 3 on Ubuntu server Large web site scalability The Slashdot infrastructure hardware and software Less is more Keeping down the number of modules by extending existing

    Original URL path: http://2bits.com/articles/links-and-resources-on-drupal-performance-tuning-and-optimization.html (2016-05-02)
    Open archived version from archive

  • Are you available for a project? | 2bits.com, Inc. - Drupal Performance Tuning and Optimization, Managed Hosting and Consulting
    Performance Optimization and Tuning Consulting Contents Services Clients Testimonials News FAQ Payments Site Map Navigation Payment Recent content Do you use any of our Drupal modules Did you find our Drupal WordPress and LAMP performance articles informative Follow us on Twitter 2bits for tips and tricks on Drupal and WordPress Performance Contact us for Drupal and WordPress Performance Optimization and Tuning Consulting In Depth Articles Client Testimonials Developing tracing and

    Original URL path: http://2bits.com/faq/are-you-available-for-a-project.html (2016-05-02)
    Open archived version from archive

  • 10.04 | 2bits.com, Inc. - Drupal Performance Tuning and Optimization, Managed Hosting and Consulting
    until 2013 on the desktop and more importantly until 2015 on the server My servers are still on 8 04 though the previous LTS for good reason 10 04 has PHP 5 3 While this is generally a better PHP it has some compatibility issues with many Drupal mainly for contributed modules but some in core as well The long term solution to this is to find all PHP 5 3 compatibility issues and fix them in the code This is a lengthy process though and will not happen overnight So in the meantime there are several solutions for running PHP 5 2 on Lucid some better than others In this post we examine the different approaches and the merits of each Tags Drupal Planet Linux Ubuntu Lucid Lynx Lucid 10 04 PHP PHP 5 3 Contents Articles Read more about Various ways of running PHP 5 2 on Ubuntu 10 04 Lucid Lynx 44 comments Add new comment Is your Drupal or WordPress site slow Is it suffering from server resources shortages Is it experiencing outages Contact us for Drupal and WordPress Performance Optimization and Tuning Consulting Contents Services Clients Testimonials News FAQ Payments Site Map Navigation Payment Recent

    Original URL path: http://2bits.com/tags/1004 (2016-05-02)
    Open archived version from archive

  • 404 | 2bits.com, Inc. - Drupal Performance Tuning and Optimization, Managed Hosting and Consulting
    database queries are performed only to return a 404 for a static file Tags Drupal Planet 404 Drupal Performance Drupal Performance Server Resources Contents Articles Read more about Reducing server resource utilization for busy sites by implementing fast 404s in Drupal 12 comments Add new comment Is your Drupal or WordPress site slow Is it suffering from server resources shortages Is it experiencing outages Contact us for Drupal and WordPress

    Original URL path: http://2bits.com/tags/404 (2016-05-02)
    Open archived version from archive

  • Admin Menu | 2bits.com, Inc. - Drupal Performance Tuning and Optimization, Managed Hosting and Consulting
    queries per request is horrendous and the site is a resource hog if left in that state Tags Drupal Planet Admin Menu Contents Articles Read more about Admin Menu module Popular yet occasionally problematic 14 comments Add new comment Is your Drupal or WordPress site slow Is it suffering from server resources shortages Is it experiencing outages Contact us for Drupal and WordPress Performance Optimization and Tuning Consulting Contents Services

    Original URL path: http://2bits.com/tags/admin-menu (2016-05-02)
    Open archived version from archive

  • Amazon AWS | 2bits.com, Inc. - Drupal Performance Tuning and Optimization, Managed Hosting and Consulting
    used resources only ability to provision more instances on demand a wide variety of instance types and much more Tags Drupal Planet Drupal Performance Dedicated Servers Amazon AWS EC2 ELB Contents Articles Read more about Drupal on a dedicated servers vs Amazon AWS EC2 8 comments Add new comment Is your Drupal or WordPress site slow Is it suffering from server resources shortages Is it experiencing outages Contact us for

    Original URL path: http://2bits.com/tags/amazon-aws (2016-05-02)
    Open archived version from archive



  •