Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [mosquitto-dev] (Help) Access denied tcpd using Mosquitto V1.4.2 going over 1024 connections

Hi Izak,

The actual dependency is on libwrap0, but if you removed it the broker would just fail to start.

I suspect the problem is upstart setting its own file limits. To set a limit of 4096 clients edit /etc/init/mosquitto.conf and add the line

limit nofile 4096 4096

Then restart the service:

stop mosquitto
start mosquitto

Note that using "restart mosquitto" won't work in my experience, because upstart doesn't reload the config file in that case.



On Mon, Jun 8, 2015 at 2:03 PM, Oegma2 <oegma2@xxxxxxxxx> wrote:
Have anybody seen this before using Mosquitto log files under /var/log/mosquitto on Ubuntu 14.04 (Trusty) - with more than 1024 Connections saying ...."Connection from ..... denied access by tcpd"

I am testing the Mosquitto V1.4.2 to see how many connections I can make, but get this as soon as I go over 1024 connections

Inline image 1

I've update the mosquitto.conf to allow unlimited connections - no difference
Inline image 4

I've updated my /etc/security/limits.conf as seen below but makes no difference
Inline image 2

Created the file /etc/security/limits.d/90-nproc.conf with same entries as above - no diff

Also update my sysctl.conf - make no diff
Inline image 3

Any advice how to increase the number of allowed MQTT connections to mosquitto V1.4.2?

mosquitto-dev mailing list
To change your delivery options, retrieve your password, or unsubscribe from this list, visit

Back to the top