LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > External Applications > PHP > APC trouble

Reply
 
Thread Tools Display Modes
  #1  
Old 05-29-2007, 11:08 PM
murp murp is offline
New Member
 
Join Date: May 2007
Posts: 5
Default APC trouble

Hi...

I am having an issue with APC. The problem is that it appears to be running a separate copy of APC for each thread (or process, I'm not sure). This means that the cache keeps expiring itself when it shouldn't.

Here is my APC info page:

http://admin.wb.gs/apc.php

You will see that the uptime is not very long. Litespeed has actually been up for a few days already without being restarted. If you reload the page a few times, you will probably see the figures changing dramatically.

This is causing me problems and I can't figure it out. Any help would be greatly appreciated.

Thanks,

Matt
Reply With Quote
  #2  
Old 05-30-2007, 01:28 AM
murp murp is offline
New Member
 
Join Date: May 2007
Posts: 5
Sorry folks, I just figured this out myself.

For anyone who finds this thread with the same problem, add an environment variable called PHP_LSAPI_CHILDREN and make it equal to the "Max Connections" variable, like this:

PHP_LSAPI_CHILDREN=50

Also, set instances to 1.
Reply With Quote
  #3  
Old 05-30-2007, 07:35 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
Yeah, that's the right way to let all PHP process share the same opcode cache.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 03:32 AM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.