When the Tyk run for two days, it is the entire system memory is consumed, and the system becomes very slow

When the Tyk run for two days, it is the entire system memory is consumed, and the system becomes very slow, can not be used normally, the shell terminal input command for a long time to execute; Tyk consumes 92.2 percent of the system

As Tyk version 2.2
$ ps auxw|head -1;ps auxw|sort -rn -k4|head -2 USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND root 32522 9.2 92.2 26406296 6449248 ? Sl Oct28 356:07 /opt/tyk-gateway/tyk --conf=/etc/tyk-gateway/tyk.conf root 32504 1.9 1.0 630568 72576 ? Sl Oct28 74:50 /opt/tyk-pump/tyk-pump -c=/etc/tyk-pump/tyk_pump.conf

Forum upload pictures cracked, the text format does not support friendly format display

Hi

We run the same software in our cloud 24/7, so there isn’t a bug, its likely the config.
To help you troubleshoot the issue:

Are you able to share your tyk.conf?
Can you also confirm OS and Platform?

Thanks

[email protected]

My config as following: thanks :slight_smile:

OS: Linux version 3.16.0-4-amd64 ([email protected]) (gcc version 4.8.4 (Debian 4.8.4-1) ) #1 SMP Debian 3.16.7-ckt25-2 (2016-04-08)

{ "listen_port": 8080, "secret": "352d20ee67be67f6340b4c0605b044b7", "node_secret": "352d20ee67be67f6340b4c0605b044b7", "template_path": "/opt/tyk-gateway/templates", "tyk_js_path": "/opt/tyk-gateway/js/tyk.js", "middleware_path": "/opt/tyk-gateway/middleware", "use_redis_app": false, "use_db_app_configs": true, "db_app_conf_options": { "connection_string": "http://172.10.0.1:4000", "node_is_segmented": false, "tags": ["test2"] }, "app_path": "/opt/tyk-gateway/apps/", "storage": { "type": "redis", "host": "172.10.0.1", "port": 4379, "username": "", "password": "", "database": 0, "enable_cluster": false, "optimisation_max_idle": 20000, "optimisation_max_active": 30000 }, "enable_analytics": true, "analytics_config": { "type": "mongo", "csv_dir": "/tmp", "mongo_url": "", "mongo_db_name": "", "mongo_collection": "", "purge_delay": -1, "ignored_ips": [] }, "health_check": { "enable_health_checks": true, "health_check_value_timeouts": 60 }, "optimisations_use_async_session_write": true, "enable_non_transactional_rate_limiter": true, "enable_sentinel_rate_limiter": false, "allow_master_keys": false, "policies": { "policy_source": "service", "policy_connection_string": "http://172.10.0.1:4000", "policy_record_name": "tyk_policies" }, "hash_keys": true, "close_connections": true } [details=Summary]This text will be hidden[/details]

This topic isn’t sink. :slight_smile:

Did you compile this yourself?

No, Pull the official Docker @Martin

Odd, we’ll need to check the docker install. This doesn’t happen with a standard install.