Solved

PHP Application Running Really slow

Posted on 2015-01-07
1
59 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
ID: 40536498
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will explain how to display the first page of your Microsoft Word documents (e.g. .doc, .docx, etc...) as images in a web page programatically. I have scoured the web on a way to do this unsuccessfully. The goal is to produce something …
Deprecated and Headed for the Dustbin By now, you have probably heard that some PHP features, while convenient, can also cause PHP security problems.  This article discusses one of those, called register_globals.  It is a thing you do not want.  …
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

910 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

23 Experts available now in Live!

Get 1:1 Help Now