lighttpd forum XCache > XCache PHP 5.2 & IIS 6 Access Violation

Posted by Chris Daley
on 26.08.2008 22:08
We have a windows 2003 box with IIS and PHP 5.2.6.

XCache 1.2.2 is setup as the instructions state XCache config below

[xcache]
xcache.shm_scheme	= "mmap"
xcache.size		= 64M
xcache.count		= 2
xcache.slots		= 8K
xcache.ttl		= 7200
xcache.gc_interval	= 300

xcache.var_size		= 64M
xcache.var_count	= 2
xcache.var_slots	= 8K
xcache.var_ttl		= 7200
xcache.var_maxttl	= 14400
xcache.var_gc_interval	= 300

xcache.test			= Off
xcache.readonly_protection	= Off
xcache.mmap_path		= "C:\PHP\Cache"
xcache.coredump_directory	= ""

xcache.cacher		= On
xcache.stat		= On
xcache.optimizer	= Off

[xcache.coverager]
xcache.coverager		= Off
xcache.coveragedump_directory	= ""

Now we have tried variations of the config based on some suggestions 
found in google.

But no matter what we try we end up with an Access Violation error.

I've tried this on 3 boxes now including PHP in ISAPI and FastCGI modes 
all give the same issue.

Any suggestions?
Posted by Rubén Ortiz (Guest)
on 23.09.2008 09:01
Chris Daley wrote:
> 
> Now we have tried variations of the config based on some suggestions 
> found in google.
> 
> But no matter what we try we end up with an Access Violation error.
> 
> I've tried this on 3 boxes now including PHP in ISAPI and FastCGI modes 
> all give the same issue.
> 
> Any suggestions?

Do you test on 64 or 32 bits box? We are testing X-Cache on 2003 Server 
64 bits box and we have some troubles of perfomance but im not sure if 
is problem of X-Cache. We used X-Cache on lot of 32 bits box without any 
problems, linux and windows.

Recently we moved one website to 64 bits mode and we are experimenting 
really bad performance.

Bye
Posted by Guest (Guest)
on 23.09.2008 09:26
Rubén Ortiz wrote:
> Chris Daley wrote:
>> 
>> Now we have tried variations of the config based on some suggestions 
>> found in google.
>> 
>> But no matter what we try we end up with an Access Violation error.
>> 
>> I've tried this on 3 boxes now including PHP in ISAPI and FastCGI modes 
>> all give the same issue.
>> 
>> Any suggestions?
> 
> Do you test on 64 or 32 bits box? We are testing X-Cache on 2003 Server 
> 64 bits box and we have some troubles of perfomance but im not sure if 
> is problem of X-Cache. We used X-Cache on lot of 32 bits box without any 
> problems, linux and windows.
> 
> Recently we moved one website to 64 bits mode and we are experimenting 
> really bad performance.
> 
> Bye

32bit Windows 2003 with PHP 5.2 in FastCGI mode

This could be something as simple as PHP config or xCache config.
Posted by Rubén Ortiz (Guest)
on 23.09.2008 09:40
Guest wrote:
> 
> 32bit Windows 2003 with PHP 5.2 in FastCGI mode
> 
> This could be something as simple as PHP config or xCache config.

Yeap, you have best setup to run PHP on Windows. Isapi have a lot of 
problems on high traffic load. One thing: on 64 bix box i made some 
changes to php.ini. For example, xcache.count changed to 4 (number of 
CPU) and we noticed a little improve of perfomance. I remember that 
yesterday i saw PHP access violation but was one second. We have 
troubles with Application Pool of IIS but is other history.

Bye
Posted by Chris Daley
on 23.09.2008 09:57
Rubén Ortiz wrote:
> 
> Yeap, you have best setup to run PHP on Windows. Isapi have a lot of 
> problems on high traffic load. One thing: on 64 bix box i made some 
> changes to php.ini. For example, xcache.count changed to 4 (number of 
> CPU) and we noticed a little improve of perfomance. I remember that 
> yesterday i saw PHP access violation but was one second. We have 
> troubles with Application Pool of IIS but is other history.
> 
> Bye

Count is set to 2 as its a dual core.

With xcache enabled if you open the site its fine but if you hit f5 or 
navigate to a different page you get access violation if you have f5 
again you don't get an access violation error.