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

Go Back   LiteSpeed Support Forums > External Applications > PHP > emalloc / erealloc again with APC

Reply
 
Thread Tools Display Modes
  #11  
Old 10-02-2006, 10:31 AM
gboudreau gboudreau is offline
Member
 
Join Date: Oct 2006
Location: Montr
Posts: 49
It works from the command line with APC enabled:

Code:
[root@megaone fcgi-bin]# ./lsphp5 -i | grep apc
apc
apc.cache_by_default => On => On
apc.enable_cli => Off => Off
apc.enabled => On => On
apc.file_update_protection => 2 => 2
apc.filters => no value => no value
apc.gc_ttl => 3600 => 3600
apc.include_once_override => Off => Off
apc.max_file_size => 1M => 1M
apc.mmap_file_mask => no value => no value
apc.num_files_hint => 1000 => 1000
apc.optimization => Off => Off
apc.report_autofilter => Off => Off
apc.shm_segments => 1 => 1
apc.shm_size => 30 => 30
apc.slam_defense => 0 => 0
apc.stat => On => On
apc.ttl => 0 => 0
apc.user_entries_hint => 100 => 100
apc.user_ttl => 0 => 0
apc.write_lock => On => On
[root@megaone fcgi-bin]# ./lsphp5 ../www-html/data.titantv.com/dataservice.asmx/RequestLineupData
<?xml version="1.0" encoding="utf-8"?>
[...]
But not using LiteSpeed:
Code:
[root@megaone fcgi-bin]# curl -i http://data.titantv.com/dataservice.asmx/RequestLineupData
HTTP/1.1 503 Service Unavailable
Server: LiteSpeed
Date: Mon, 02 Oct 2006 17:29:53 GMT
Connection: close
Cache-Control: private, no-cache, max-age=0
Pragma: no-cache
Content-Type: text/html
Content-Length: 401

<html>
<head><title> 503 Service Unavailable
</title></head>
<body><h1> 503 Service Unavailable
</h1>
The server is temporarily busy, try again later!<hr />
Powered By <a href='http://www.litespeedtech.com'>LiteSpeed Web Server</a><br />
<font face="Verdana, Arial, Helvetica" size=-1>Lite Speed Technologies is not responsible for administration and contents of this web site!</font></body></html>
If you would like access to the machine to speed things up, it can be arranged. Just PM me your IM contacts.

Thanks again.
__________________
- Guillaume Boudreau
Reply With Quote
  #12  
Old 10-02-2006, 04:27 PM
bambito bambito is offline
New Member
 
Join Date: Sep 2006
Posts: 9
I'm having the same problem. Can you contact me via instant messenger?

MSN: support@computercornerplus.com
Reply With Quote
  #13  
Old 10-02-2006, 04:37 PM
xing xing is offline
LiteSpeed Staff
 
Join Date: Oct 2003
Location: Los Angeles, California
Posts: 380
Guillaume/Bambito,

You can contact me via AIM at handle: "litespeedtech". Please note I am on the US West Coast PST time. I will be willing to talk to you and access your machines to find out exactly what os/app parameter is causing this.

Xing
Reply With Quote
  #14  
Old 10-03-2006, 10:05 AM
xing xing is offline
LiteSpeed Staff
 
Join Date: Oct 2003
Location: Los Angeles, California
Posts: 380
We have found that the use of APC can artificiallly accelerate PHP's memory usage/requirement for certian scripts/operations, i.e. deserialize() large serialized packets. Most likely a problem within APC.

We recommend that users of APC/PHP that encounter the emalloc() errors to increase memory ceiling for external processes via LiteSpeed admin:

Either server wide:
Server > Security > CGI Resource: memory limits (soft/hard) = 200M / 200M

Or on per extapp basis:
VHost > External Apps > LSAPI App: memory limits (soft/hard) = 200M / 200M


Tweak, increase or decrese the values to fit your enviornment to remove emalloc() errros.
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 06:24 PM.



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