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 Roger

Some update from my side - I've actually after some more testing realized that the lines in the config file is not forcing the mosquitto to start - I get an actually error if I run mosquitto -c /etc/mosquitto/mosquitto.conf with those entries

Why I thought that is working is - i stopped the service and ran the mosquitto manually and this way around, I can add more than 1024 connections, BUT the minute I use the "service" edition with the mosquitto.conf, things stop @1024 - and adding the lines above you can't run mosquitto service

In short, running mosquitto manually allows ubunutu to handle more connections, but the service not....if that make sense

On Mon, Jun 8, 2015 at 4:24 PM, Oegma2 <oegma2@xxxxxxxxx> wrote:
Hi Roger

Perfecto - adding that line and restarting fixed the issue :)

Strange that adding those lines in the linux side is not making any difference



On Mon, Jun 8, 2015 at 4:13 PM, Roger Light <roger@xxxxxxxxxx> wrote:
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.

Cheers,

Roger

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
mosquitto-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/mosquitto-dev


_______________________________________________
mosquitto-dev mailing list
mosquitto-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/mosquitto-dev



Back to the top