Solved

PHP Application Running Really slow

Posted on 2015-01-07
1
58 Views
Last Modified: 2015-02-27
Hi,

I have an invoicing PHP application running on a Rackspace Could server which has WHM/Cpanel installed. The application has been running fine until I used EasyApache the other day to re-compile apache and install MySQLi. Since doing that, this particular application runs really slow and renders slowly on the page.

This application was developed using mysql_query(), since changing it to use MySQLi the performance has returned to normal.

My question is, what is causing the slow down when using mysql? I'm guessing it's because in the background there are depreciation errors being generated and logged in the background? but I've setup php.ini not to display them.

Is there any way to stop this from happening as there may also be old applications on the server which are yet to be updated?
0
Comment
Question by:SheppardDigital
1 Comment
 
LVL 34

Accepted Solution

by:
gr8gonzo earned 500 total points
Comment Utility
That's definitely possible. If you are logging warnings to a file, then I'd check the size of your log file. If it's huge and filled with mysql warnings, then that's probably your culprit. Hard disks / filesystems are always the slowest I/O components in the entire web serving process, so if you're having PHP write to a file a LOT, then you will definitely have some performance issues.
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Generating table dynamically is the most common issue faced by php developers.... So it seems there is a need of an article that explains the basic concept of generating tables dynamically. It just requires a basic knowledge of html and little maths…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now