• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2196
  • Last Modified:

apc.shm_segments setting ignored in MMAP mode

Hi there:

This is an error message I am getting in my apache log file:

PHP Warning:  PHP Startup: apc.shm_segments setting ignored in MMAP mode in Unknown on line 0

I have my php.ini file APC as follows:

extension=apc.so
[apc]
apc.ttl="7200"
apc.user_ttl="7200"
apc.shm_segments="3"
apc.shm_size="32"

May that be related to an error in my config file?

Thank you very much in advance.

Javier Faus
0
javierfaus
Asked:
javierfaus
  • 3
  • 3
1 Solution
 
svgmucCommented:
From http://php.net/manual/en/apc.configuration.php

When APC is compiled with mmap support (Memory Mapping), it will use only one memory segment, unlike when APC is built with SHM (SysV Shared Memory) support that uses multiple memory segments. MMAP does not have a maximum limit like SHM does in /proc/sys/kernel/shmmax. In general MMAP support is recommeded because it will reclaim the memory faster when the webserver is restarted and all in all reduces memory allocation impact at startup.
0
 
javierfausAuthor Commented:
So if my APC is working in MMAP mode I just set the apc.shm_segments="1", is it?

Thanks in advance.
Javier.
0
 
svgmucCommented:
Yes, that's the only acceptable setting.
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
javierfausAuthor Commented:
Hi svgmuc:

Thanks for your help here. Is there any way to make sure my APC is actually configured to use MMAP? I would say it is because of the error message but still not 100% sure.

Thanks a lot for your support in this one.
Javier.
0
 
javierfausAuthor Commented:
Just partial answer.
0
 
svgmucCommented:
The error would not show if not in MMAP mode.
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now