Logo Ricky
  • Home
  • About
  • More
    Skills Experiences Education Projects
  • Posts
  • Notes
  • Activities
  • Transform
  • English
    English Chinese
  • Dark Theme
    Light Theme Dark Theme System Theme
Logo Inverted Logo
  • Categories
  • 3D Printing
  • A10
  • ACME
  • AD
  • Ada
  • AES
  • Agent
  • Agent-Code
  • AI
  • Aliyun
  • Android
  • Ansible
  • APP
  • Application Delivery Controller
  • Arceus
  • Argo CD
  • ASCII
  • Audio
  • Audiobook
  • Authentication
  • Authorization
  • Authorized Penetration Testing
  • AWS
  • BASH
  • Bastion
  • Bayonet
  • Benchmark
  • BGP
  • BIRD
  • BitCoin
  • Board Game
  • Bookmark
  • Browser
  • Bug
  • Byte
  • Cache
  • CDN
  • Channel
  • Chart
  • Chat
  • Checklist
  • Chinese
  • Chrome
  • Chrome OS
  • Chrony
  • CI
  • Cilium
  • Cisco
  • Claude
  • Claude Code
  • CLI
  • Clock
  • Cloud-Native
  • Cloudflare
  • Cloudflare Drop
  • Cluster
  • Cocktail
  • Comfy
  • Command Line
  • Completion
  • Computer Science
  • Container
  • Context
  • CPU
  • CRDT
  • Criminal
  • CURL
  • Data
  • Database
  • Debug
  • Dehydrated
  • Deno
  • Design
  • DevSecOps
  • Diagrams
  • DirtyFrag
  • Dmg
  • DNS
  • DNS-01
  • Docker
  • EC2
  • Education
  • EFF
  • ElasticSearch
  • ELK
  • Emoji
  • EMQX
  • Encode
  • Encrypt
  • ESXi
  • Extension
  • File Sharing
  • File Storage
  • Firewall
  • Fortigate
  • Fortinet
  • FortiOS
  • Game
  • Gateway
  • GeoIP
  • GIMP
  • GIN
  • Git
  • GitBook
  • Github
  • Gitlab
  • GitOps
  • Gluetun
  • Go
  • Go-Mysql-Elasticsearch
  • Golang
  • Google
  • GPG
  • GraphQL
  • HA
  • HAProxy
  • Hash
  • HomeLab
  • HTML
  • Htop
  • HTTP
  • HTTP Method
  • IDE
  • Image
  • Image Hosting
  • Infra
  • Infrastructure
  • Input Method
  • Interview
  • IOS
  • IPhone
  • Iptables
  • Iso
  • Issue
  • ITerm2
  • Jenkins
  • Jsoniter
  • Juniper
  • JWT
  • Kafka
  • Kernel
  • Kibana
  • Kindergarten
  • Kubernetes
  • LDAP
  • Learning
  • Leetcode
  • LEGO
  • Lightweight
  • Linkerd
  • Links
  • Linux
  • Litellm
  • Llamafile
  • LLM
  • Log
  • Lua
  • Lullaby
  • LVM
  • Machinelearning
  • MacOS
  • Malware
  • Manga
  • Markdown
  • Math
  • Mattermost
  • MCP
  • Meilisearch
  • Memory
  • Mermaid
  • MinIO
  • MLX
  • Module
  • MQTT
  • MSS
  • MTU
  • Music
  • MyDumper
  • MySQL
  • NAS
  • Netcat
  • Network
  • Nftables
  • Nginx
  • OAuth
  • OCR
  • OIDC
  • Ollama
  • OLTP
  • OpenResty
  • P2P
  • Pandas
  • Parquet
  • Percona
  • PhotoShop
  • Pinyin
  • Pip
  • Plugin
  • Pokemon
  • Postgres
  • PostgreSQL
  • PowerDNS
  • PowerShell
  • Pprof
  • Principle
  • Privacy
  • Prometheus
  • Protobuf
  • Proxy
  • Push
  • Python
  • QRCode
  • R
  • RAG
  • RAID
  • RDAP
  • RDP
  • Reader
  • Redis
  • Regex
  • Registry
  • Reverse Engineering
  • RFC
  • Ringtone
  • Route
  • Rr
  • Rust
  • RustDesk
  • S3
  • ScreenRecording
  • ScreenShot
  • Search Engine
  • Security
  • Security Research
  • Selenium
  • Self-Host
  • Self-Hosted
  • Sentry
  • Service Mesh
  • SFTP
  • SHELL
  • Skill
  • Slides
  • Snow
  • Software
  • SonarQube
  • SQL
  • SQLite
  • SSH
  • SSL
  • String
  • STT
  • Switch
  • Sync
  • Synology
  • System
  • Tailscale
  • Taiwan
  • Tcpdump
  • Telegram
  • Terminal
  • Terraform
  • Test
  • Testing
  • Three.js
  • Time
  • Timeout
  • TLS
  • Tools
  • Tor
  • Trace
  • Traefik
  • Travel
  • TTS
  • Typing
  • Typora
  • Ubuntu
  • UI
  • UNIX
  • URL
  • UserAgent
  • UX
  • V2Ray
  • Vagrant
  • VCS
  • Video
  • Video Editor
  • Vim
  • Virtual Machine
  • Virtualization
  • Visualization
  • VNC
  • VPN
  • VSCode
  • WAF
  • WASM
  • Web
  • WebAssembly
  • Webp
  • Windows
  • WSL
  • XDG Base Directory
  • YAML
  • Youtube
  • Zabbix
  • Zero Trust
  • Zim
  • ZSH
  • 台語
Hero Image
Golang Service Exceeded File Handle Limit (too many open files)

Golang Service Exceeded File Handle Limit (too many open files) Check system config: ulimit -a | grep open. The system config is normal. Check the service file limit: cat /proc/40636/limits. The service did not inherit the system settings and is still limited to 1024. Check open file count: lsof -p 40636 | wc -l. It exceeds the limit, so the error occurs. Check which connections are open: lsof -p 40636 > openfiles.log. Many HTTP connections were left open to the alerting service. The root cause is that the app failed to parse config, sent errors to the alerting service, and did not close connections, leading to too many open files. Why it did not inherit system limits needed more investigation.

Monday, December 16, 2019 Read
  • ««
  • «
  • 1
  • 2
  • 3
  • 4
  • 5
  • »
  • »»
Navigation
  • About
  • Skills
  • Experiences
  • Education
  • Projects
Contact me:
  • zeyanlin@outlook.com
  • linzeyan
  • Ricky
  • Ricky