Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] error stopped soketi in large number coneccion and High CPU usage #1181

Open
rawezhcode opened this issue May 15, 2024 · 0 comments
Open
Assignees
Labels
status:triage Awaiting triage.

Comments

@rawezhcode
Copy link

Description
When the number of connections exceeds > 1000, the CPU increases at a strange rate and causes it to stop and restart.
On an VPS ( 8core, 16GB RAM ) there is this problem

Screenshots
If applicable, add screenshots to help explain your problem.

SCR-20240515-kukq
SCR-20240515-kwaz
ulimit -a :
image

Environment

  • Soketi version (i.e. 1.6.0):
  • Adapter (local, redis): redis
  • App Manager (array, mysql, postgres, dynamodb) : mysql
  • Queue (sqs, redis, sync): redis
  • Cache Managers (memory, redis): redis

Configuration
Run the server with SOKETI_DEBUG=1 and paste the nested object configuration that outputs:

{
    {
    "debug": false,
    "host": "0.0.0.0",
    "port": 6001,
    "metrics.enabled": false,
    "metrics.host": "0.0.0.0",
    "metrics.port": 9601,
    "webhooks.batching.enabled": true,
    "cache.driver": "redis",
    "queue.driver": "redis",
    "rateLimiter.driver": "redis",
    "appManager.driver": "mysql",
    "appManager.mysql.table": "applications",
    "appManager.cache.enabled": "true",
    "appManager.cache.ttl": 3600,
    "databasePooling.enabled": true,
    "database": {
        "mysql": {
            "host": "127.0.0.1",
            "port": "3306",
            "user": "appManage",
            "password": "6qBGJgyuCOHP",
            "database": "soketi_app_manager"
        },
        "redis": {
            "host": "127.0.0.1",
            "port": 6379,
            "db": 0,
            "username": null,
            "password": null,
            "keyPrefix": "soketi_",
            "sentinels": null,
            "sentinelPassword": null,
            "name": "mymaster",
            "clusterNodes": []
        }
    }
}

}
[program:socket_laravel]
process_name=%(program_name)s_%(process_num)02d
directory=/var/www/rawezhcode__usr/data/www/xxxxxx.xxx/soketimanager
command=soketi start --config=soketi.json
autostart=true
autorestart=true
stopasgroup=true
killasgroup=true
user=rawezhcode__usr
numprocs=1
redirect_stderr=true
stdout_logfile=/var/www/rawezhcode__usr/data/www/xxxxxx.xxx/soketimanager/soketi-supervisor.log
stopwaitsecs=60
stopsignal=sigint
minfds=10000

Additional context
Add any other context about the problem here.

@rawezhcode rawezhcode added the status:triage Awaiting triage. label May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status:triage Awaiting triage.
Development

No branches or pull requests

2 participants