?
Solved

apc.shm_segments setting ignored in MMAP mode

Posted on 2011-02-22
6
Medium Priority
?
2,134 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
Get real performance insights from real users

Key features:
- Total Pages Views and Load times
- Top Pages Viewed and Load Times
- Real Time Site Page Build Performance
- Users’ Browser and Platform Performance
- Geographic User Breakdown
- And more

 

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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

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.
This article discusses how to implement server side field validation and display customized error messages to the client.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Suggested Courses

771 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