Welcome to WebmasterWorld Guest from 54.226.27.104

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

mmap failed: No space left on device

Problem using PECL APC via shell

     

guarriman

9:24 am on Apr 12, 2007 (gmt 0)

10+ Year Member



Hi.

Using PHP 4 on Linux, I installed PECL APC:
[pecl.php.net...]

It works ok if you access PHP scripts via web, but it won't work if you execute them via shell:
[]# php foo.php
[]# [Wed Apr 11 19:07:52 2007] [apc-error] apc_mmap: mmap failed: No space left on device

I've set this parameters within 'php.ini':
--------
extension="apc.so"
apc.shm_size = 48
--------

Does anybody have experience with this issue? Thank you very much

guarriman

9:28 am on Apr 12, 2007 (gmt 0)

10+ Year Member



I also tried with 'php -q' but it won't work either :(

guarriman

9:41 am on Apr 12, 2007 (gmt 0)

10+ Year Member



PHP version: 4.4.3

guarriman

10:43 am on Apr 12, 2007 (gmt 0)

10+ Year Member



Fixed with this 'php.ini' configuration:
-------
extension=apc.so
apc.enabled=1
apc.shm_segments=1
apc.optimization=0
apc.shm_size=64
apc.ttl=7200
apc.user_ttl=7200
apc.num_files_hint=1024
apc.mmap_file_mask=/tmp/apc.#*$!#*$!
apc.enable_cli=1
-----------

eelixduppy

10:46 am on Apr 12, 2007 (gmt 0)

WebmasterWorld Senior Member eelixduppy is a WebmasterWorld Top Contributor of All Time 5+ Year Member



Glad you got everything sorted, guarriman! :) Thanks for sharing your solution
 

Featured Threads

Hot Threads This Week

Hot Threads This Month