Showing posts with label iis7. Show all posts
Showing posts with label iis7. Show all posts

Friday, August 20, 2010

php-cgi.exe exceeds the current memory limitation

Problems:
Memory on php-cgi runs out when executing php-scripts.
Formula for Instances:

Ideal Instances: (TotalMemory in GB/Instances) < 2

Recommended Instances: (TotalMemory in GB / Instances) < 1

If you are using IIS or apache check for the following parameters which affects the performance of php,

These are settings in
php.ini Settings:
session.gc_probability = 1
session.gc_divisor     = 100
session.gc_maxlifetime = 14400 - After 4 hours it resets all the Garbage collected Data.


Web Server Settings:

NumberofRequest Per Instance
MaxRequests for the CGI
Maximum Number of Instances

It works charm with distributed memory on the distributed instances.

Friday, March 26, 2010

Cache on IIS 7 with SugarCRM Windows Server 2008

If you are planning to run Cache enabled on SugarCRM with II7 then you will face weird issues. IIS caches the php pages and serve the same content to different users. With that you can see other person's userid on your pages, that is not coming from SugarCRM that is coming from IIS Cache.

It happened in Windows 2008 Server.

The only option as of now is to disable IIS Cache so all pages will be generated directly from php.