[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

apc.shm_segments setting ignored in MMAP mode

Posted on 2011-02-22
6
Medium Priority
?
2,166 Views
Last Modified: 2013-12-13
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
Comment
Question by:javierfaus
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 14

Accepted Solution

by:
svgmuc earned 375 total points
ID: 35006154
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
 

Author Comment

by:javierfaus
ID: 35011103
So if my APC is working in MMAP mode I just set the apc.shm_segments="1", is it?

Thanks in advance.
Javier.
0
 
LVL 14

Expert Comment

by:svgmuc
ID: 35011370
Yes, that's the only acceptable setting.
0
Nothing ever in the clear!

This technical paper will help you implement VMware’s VM encryption as well as implement Veeam encryption which together will achieve the nothing ever in the clear goal. If a bad guy steals VMs, backups or traffic they get nothing.

 

Author Comment

by:javierfaus
ID: 35023305
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
 

Author Closing Comment

by:javierfaus
ID: 35205380
Just partial answer.
0
 
LVL 14

Expert Comment

by:svgmuc
ID: 35206334
The error would not show if not in MMAP mode.
0

Featured Post

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

These days socially coordinated efforts have turned into a critical requirement for enterprises.
3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
The viewer will learn how to count occurrences of each item in an array.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Suggested Courses

650 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question