My web server was good with codeigniter, but after i move my server on new windows server, it is too slow. I checked my code step by step, but it is same config and code. I just wrote simple code in main controller class.

public function testA()
{
  $this->output->enable_profiler(TRUE);
}

There is no mysql query, only show profiler data.

But it shows too slow.

Loading Time: Base Classes 8.4310

Controller Execution Time ( Batch / TestA ) 7.7913

Total Execution Time 16.2224

The running time is 16 seconds.

What is wrong with codeigniter?

有帮助吗?

解决方案

It is MSE (Microsoft Security Essential) problem. If i turn off real-time protection, then it rans in a 0.1 seconds.

其他提示

I had a similar problem. I disabled Microsoft Security Essentials or Windows Defender real time protection and it solved the problem.

You can choose to exclude httpd.exe and or mysqld.exe from Windows Defender if you do not wish to disable real time protection.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top