Solved

PHP Application Running Really slow

Posted on 2015-01-07
1
62 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 35

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
This article discusses how to create an extensible mechanism for linked drop downs.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
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 …

717 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