diff --git a/build_debian.sh b/build_debian.sh index c1a13d1ae7d..fd98922a445 100755 --- a/build_debian.sh +++ b/build_debian.sh @@ -388,6 +388,9 @@ set /files/etc/sysctl.conf/net.ipv4.udp_l3mdev_accept 1 set /files/etc/sysctl.conf/net.core.rmem_max 2097152 set /files/etc/sysctl.conf/net.core.wmem_max 2097152 + +set /files/etc/sysctl.conf/net.core.somaxconn 512 + " -r $FILESYSTEM_ROOT if [[ $CONFIGURED_ARCH == amd64 ]]; then diff --git a/files/build_templates/pmon.service.j2 b/files/build_templates/pmon.service.j2 index 9c422625681..60024fffc30 100644 --- a/files/build_templates/pmon.service.j2 +++ b/files/build_templates/pmon.service.j2 @@ -1,7 +1,7 @@ [Unit] Description=Platform monitor container -Requires=updategraph.service -After=updategraph.service +Requires=database.service updategraph.service +After=database.service updategraph.service {% if sonic_asic_platform == 'mellanox' %} After=syncd.service {% endif %}