message queues with PHP: no effect of msg_max

Discussion in 'Site & Server Administration' started by yumaa, Aug 31, 2009.

  1. #1
    Hi all,

    i have a php-script, which creates multiple msg queues. But after 30 queues there are warnings like this:

    Warning: msg_get_queue() [function.msg-get-queue]: failed for key 0x12345678: No space left on device in /path/to/script.php on line 1

    On PHP.net they solved that problem with increasing the msg_max value:
    /proc/sys/fs/mqueue/msg_max

    I have also add the following lines to /etc/sysctl.conf:
    # Increase message queue
    fs.mqueue.msg_max = 100

    After a server restart, this value was stored in msg_max, but i can't create more than 30 msg queues with php.

    Anyone an idea? Is there an other limit for the number of queues?

    greetings
    yumaa

    .sorry for my bad english
     
    yumaa, Aug 31, 2009 IP