• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

increase socket and solve squid error

Scheduled Pinned Locked Moved Off-Topic & Non-Support Discussion
4 Posts 3 Posters 1.0k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D
    dreivi
    last edited by Aug 13, 2018, 4:37 PM

    I have an IBM System x3250 server 2.40GHZ M3 20GB memory, running pfsense 2.4.3 squid 3.5.27 and Squidguard, I use in a network with 900 users. I'm trying to make the performance better to support the amount of users trying to fix the errors, does anyone have any tips to fix the errors below?

    I get alerts sonewconn: pcb 0xfffff8013eb5aa50: Listen queue overflow: 8 already in queue awaiting acceptance (9 occurrences) I discovered it was the SAMBA4 that I use in pfsense to authenticate Squid with Active Directory
    I already changed the parameter kern.ipc.soacceptqueue = 4096
    (qlen / incqlen / maxqlen)
    Proto Listen Local Address
    tcp4 0/0/4096 127.0.0.1.8080
    tcp4 110/0/4096 192.168.220.144.8080

    but the problem still persists.

    The socket of this process is small Does anyone have any tips on how to increase the number 5 below?
    [2.4.3-RELEASE][root@proxy/root: netstat -Lan | grep winbind
    unix 0/0/5 /var/db/samba4/winbindd_privileged/pipe
    unix 0/0/5 /var/run/samba4/winbindd/pipe

    squid cache log
    ERROR: Error while resolving hostname with getaddrinfo: Name or service
    not known

    1 Reply Last reply Reply Quote 0
    • H
      Harrybells
      last edited by Oct 11, 2018, 5:14 AM

      It could be too many open files With unix, "everything is a file", this includes sockets. You either need to increase the max open files with ulimit for the user, or possibly in the kernel as well (/proc/sys/fs/file-max). You could also play with the amount of time spent in TIME_WAIT with /proc/sys/net/ipv4/tcp_fin_timeout. Hope this will help you to troubleshoot the issue.

      D I 2 Replies Last reply Oct 11, 2018, 1:01 PM Reply Quote 0
      • D
        dreivi @Harrybells
        last edited by Oct 11, 2018, 1:01 PM

        @harrybells Resolved tks

        1 Reply Last reply Reply Quote 0
        • I
          ismael.segovia @Harrybells
          last edited by Nov 5, 2018, 11:20 AM

          @harrybells said in increase socket and solve squid error:

          o many open files With uni

          Hi Harrybells,
          where the parameters /proc/sys/net/ipv4/tcp_fin_timeout are changed?
          In my pfsense I don't have the folder /proc/sys

          Thanks in advance

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
            This community forum collects and processes your personal information.
            consent.not_received