Closed N1Knight closed 8 years ago
What do you mean by "don't release shared memory" ? There isn't anything wrong with your statistics. If it wasn't releasing the objects would be much more messages in stored_messages or messages_in_trash.
What is the problem that you are facing?
worker with this statistics and used "top -p 24141" returned this
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
24141 apache 20 0 99.6m 46m 39m S 0.0 0.1 41:48.99 nginx
In nginx.conf, we have set this:
push_stream_shared_memory_size 48M;
this web service only work for pushModule
Nginx shared memory works in a pool system. As far as I know, once allocated and freed it will not return the memory to the system. But will use again on next allocation. You can see that the SHR is below the vale that you have set.
If you publish a lot of messages it will reach the limit and write something like "no shared memory" on logs. After sometime you will be able to publish again, but the number under SHR will not decrease.
Hi. Nginx don't release shared memory but dont know why. Any knows? Thanks.
Channels stats: