The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Opcache Problem

Discussion in 'Workarounds and Optimization' started by mahdy_sharifi, Jan 5, 2015.

  1. mahdy_sharifi

    mahdy_sharifi Well-Known Member

    Joined:
    Feb 26, 2012
    Messages:
    175
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    Hello :

    When I increase "opcache.memory_consumption" over 1024 , webserver (litespeed) stopped and following error occur :

    Fatal Error Unable to allocate shared memory segment of 1610612736 bytes: shmat: Cannot allocate memory (12)

    Our server setting :

    kernel.msgmnb = 65536
    kernel.msgmax = 65536
    kernel.shmmax = 68719476736
    kernel.shmall = 4294967296


    Can you help ?
    Regards
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,811
    Likes Received:
    672
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Could you elaborate further on why you decided to increase that setting? Were you experiencing a specific issue or some type of reduced performance?

    Thank you.
     
  3. mahdy_sharifi

    mahdy_sharifi Well-Known Member

    Joined:
    Feb 26, 2012
    Messages:
    175
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    Thanks
    because We have big server and all that 1024 space now full .
    also server performance not good yet .
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,811
    Likes Received:
    672
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    You may want to consult with a qualified system administrator if you do not receive user-feedback on your optimization questions.

    Thank you.
     
  5. matt1206

    matt1206 Member

    Joined:
    Dec 20, 2011
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Just wanted to chime in on this, I've had the same issue this evening. Unable to allocate more than 1024 when using Litespeed

    Code:
    2015-08-22 19:58:55.815 [STDERR] Sat Aug 22 19:58:55 2015 (24843): Fatal Error Unable to allocate shared memory segment of 2147483648 bytes: shmat: Cannot allocate memory (12)
    2015-08-22 19:58:55.825 [STDERR] Sat Aug 22 19:58:55 2015 (24844): Fatal Error Unable to allocate shared memory segment of 2147483648 bytes: shmat: Cannot allocate memory (12)
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,811
    Likes Received:
    672
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Are you also using Cloud Linux? If so, you may find this thread helpful:

    http://www.cloudlinux.com/solutions/forum/forum18/topic136/

    Thank you.
     
Loading...

Share This Page