Can't find what you are looking for ?
Google
 



Showing posts with label Performance. Show all posts
Showing posts with label Performance. Show all posts

Thursday, June 28, 2012

Joke: The gorilla and the tiger at the zoo

One day an out of work mime is visiting the zoo and attempts to earn 
some money as a street performer.

Unfortunately, as soon as he starts to draw a crowd, a zoo keeper 
grabs him and drags him into his office.

The zoo keeper explains to the mime that the zoo's most popular 
attraction, a gorilla, has died suddenly and the keeper fears that 
attendance at the zoo will fall off.

He offers the mime a job to dress up as a gorilla until they can get 
another one. The mime accepts the job.

So the next morning the mime puts on the gorilla suit and enters the 
cage before the crowd comes.

He discovers that it's a great job. He can sleep all he wants, play 
and make fun of people and he draws bigger crowds than he ever did as a mime.

However, eventually the crowds tire of him and he tires of just 
swinging on tires.

He begins to notice that the people are paying more attention to the 
lion in the cage next to his.

Not wanting to lose the attention of the audience, he climbs to the 
top of his cage, crawls across a partition, and dangles from the top 
of the lion's cage.

Of course, this makes the lion furious, but the crowd loves it.

At the end of the day the zoo keeper comes and gives the mime a raise
for being such a good attraction as a gorilla.

Well, this goes on for some time, the mime keeps taunting the lion, 
the crowds grow larger, and his salary keeps going up.

Then one terrible day when he is dangling over the furious lion he 
slips and falls. The mime is terrified.

The lion gathers himself and prepares to pounce.

The mime is so scared that he begins to run round and round the cage 
with the lion close behind.

Finally, the mime starts screaming and yelling, "Help, help me!", but 
the lion is quick and pounces.

The mime soon finds himself flat on his back looking up at the angry 
lion and the lion says.....

"Shut up you idiot! Do you want to get us both fired?"

Friday, September 4, 2009

Wordpress Plugin: Take control of your database access

Wordpress depends on the Database for almost everything. All the values your enter, all your content, everything that goes to make your blog is actually stored in a Database, mostly MySql. It is very much possible to use a Database connectivity frontend, typically provided by your hosting service, but it requires somebody with technical talent to make that happen. Instead, why not try and use a tool from within your Wordpress to make this happen.
Well, there is a Wordpress Plugin that can make this happen, and it is called WP-DBManager 2.50 (available at this link)

Manages your Wordpress database. Allows you to optimize database, repair database, backup database, restore database, delete backup database , drop/empty tables and run selected queries. Supports automatic scheduling of backing up and optimizing of database.


Go, ahead, and take control of the DB. Remember, for a Wordpress site, the Database communication can make or break a site in terms of performance, so you should understand more about how your Database connectivity works.

Ad: Click Here to learn more about re-seller sites!

Monday, August 3, 2009

Wordpress Optimization Tool: SQL Monitor

One of the ways in which you can optimize the performance of your Wordpress site is by reviewing the processing of database calls in terms of frequency of such queries, the number of such calls being made, the performance of these calls, how optimized are they, and so on. It is not easy to determine all these numbers, and you will need a tool to help you determine these numbers. So, here is SQL Mintor (link to page)

WordPress can provide only the list of the queries and the developer has to manually run every query and analyze it. Very boring, isn't it? SQLMon tries to help the developers and analyzes the query itself, reporting everything that needs attention.
The plugin is perfect for WordPress developers, plugin and theme developers and site administrators who are trying to find out why the blog is too slow

Sunday, August 2, 2009

Optimizing your Wordpress account - 2

A few weeks back, I had written about how to take some basic steps towards optimizing your Wordpress account. Imagine what would happen if more people started promoting your Wordpress Blog, or wonders of wonders, it appears on the front page of Digg or Slashdot. In such cases, unless you have optimized your Wordpress configuration already, you can be pretty much sure that your account will get to a state where the server is not able to handle the load, and will shut down; further if your account is on a shared server, you might have some uncomfortable queries from your host.
So, here are some points on how to optimize your account:
1. Since Wordpress works on a database system, it pulls every bit of content from the server. If there are a large number of requests for your blog, your server has to make that many DB queries to fetch the content. This puts a lot of stress on your server. User a Super Cache plugin to Cache some of the load and serve static HTML files instead of querying the DB (link to plugin, and page).
2. When you serve various files such as binaries, videos, images, scripts, etc from your server, it becomes slow. Place them on other servers, so that the load on your server is reduced. For example, you can get videos from Youtube and Photos from Flickr, and also, you can even hire some hosting space on another server or on a service such as Amazon S3 for this purpose.
3. If you are more advanced, look at your server logs; it may be possible to determine multiple requests from a bot or script that is of no good, blocking these may make your server behave a bit better
4. Look to get stats on how your web page is loading. If it takes a lot of time to load your page, there may be a lot of plugins working, or scripts loading, and so on. Some tools you can use for this purpose are - LiveHTTPHeaders (link, displays the HTTP headers), Firebug (link, Look at loading times for various artifacts on a page),
5. Inside your wp-config.php file, remove some of the DB calls that are not necessary. For example, hard-code your Template Path, Stylesheet path (link to relevant site). You will get some improvements.
6. Review your themes. Some themes call a lot of graphics, and overall call a lot of files. If your CSS files are divided into multiple files, combine them. Replace graphics wherever possible with text.
7. Review the plugins your are using to see whether they are required. Plugins can make your site much slower, especially if they do a lot of DB access and inefficient. If you are advanced technically, monitor the performance of your plugins.
8. Refer to this quick cheat sheet for DB optimization (link to cheat sheet)
9. Reduce the number of posts on the front page of your blog. Typically, Wordpress gives you 10 posts on your front page, you should reduce this to 3-4.
10. Use WP's Built in Object Cache as described on this page (link). From the same site, refer to the MySQL Query Cache.
11. For some detailed technical analysis of what can be done (link)
12. Clean Options (Finds orphaned options and allows for their removal from the wp_ options table) - Get it from this page
13. The combating comment spam page on Wordpress.org (link). If you have a good blog which is getting popular, increase in spam is only to be expected. Akismet filters out most comment spam, but just getting it into the junk spam list also adds some load to your server.
14. Page with 5 tips for making your Blog Digg / Slashdot proof (link)
15. High Traffic Tips For WordPress on Wordpress.org Codex (link)

If you know more ways beyond this, please do let me know.

Sunday, May 31, 2009

Optimizing your Wordpress account - 1

In 2 previous posts where I described problems with my Wordpress account, the preliminary solutions prescribed were:
- Keep your Wordpress account updated to the latest release
- Keep spam to a minimum, including emptying the Akismet spam folder on a regular basis

These are just temporary solutions, given that Wordpress is supposed to be not yet including optimization code in it and as a result, takes more CPU than required (see a description of Wordpress optimization deficiences on this page).

What are some of the other things you can do:
1. Review the list of plugins that are in use. A number of users download a number of plugins and keep them active. Each plugin is a performance hit of some sort, and you should review your plugins to see which of these plugins are really necessary vs. plugins that do not add much value and are a performance hit.
2. Use some sort of caching in order to prevent each page hit querying the database and slowing down the server. You can use WP-Cache (link) or you can use Word Super Cache (link)
3. Using graphics. If you have a number of graphics, those are additional graphics that need to be served to your users. As an example, refer this calculation from Wordpress Codex:

For example, let's say the front page of your blog calls upon 8 graphics to create the "look" of your blog's design. Add to this number the various WordPress template files it takes to build your page. You've got the header, sidebar, footer, and post content area at a minimum. That's four more "calls" to files on your site. For 100 visitors, those files get loaded 1200 times. For 1000 visitors, those files are accessed and loaded 12000 times. This increases your bandwidth and server activity.

4. Use spam filters such as Akismet to prevent comment spam
5. Try and get others to host your content. You have some great graphics or some analytics that need calculation which are done at run time. These also take server processing load, and is preferable to get content from elsewhere. For example, analyics information is also availabe at sites such as Google Analytics and all the calculation is done on those servers.