Forums

RAM limit

I got this error for my webapp, and looks one of my processes has exceeded the RAM limit(currently 3GB), I just upgrade my account and should i upgrade again? what configurations do you recommend for my hosting server?

2023-10-25 19:58:25 Wed Oct 25 19:58:25 2023 - received message 0 from emperor
2023-10-25 19:58:25 SIGINT/SIGTERM received...killing workers...
2023-10-25 19:58:25 !!! uWSGI process 28 got Segmentation Fault !!!
2023-10-25 19:58:26 worker 2 buried after 1 seconds
2023-10-25 19:58:26 worker 1 buried after 1 seconds
2023-10-25 19:58:26 goodbye to uWSGI.
2023-10-25 19:58:26 VACUUM: unix socket /var/sockets/chwcrazy.pythonanywhere.com/socket removed.
2023-10-25 19:58:30 *** Starting uWSGI 2.0.20 (64bit) on [Wed Oct 25 19:58:29 2023] ***
2023-10-25 19:58:30 compiled with version: 9.4.0 on 22 July 2022 18:35:26
2023-10-25 19:58:30 os: Linux-5.15.0-1044-aws #49~20.04.1-Ubuntu SMP Mon Aug 21 17:09:32 UTC 2023
2023-10-25 19:58:30 nodename: blue-liveweb21
2023-10-25 19:58:30 machine: x86_64
2023-10-25 19:58:30 clock source: unix
2023-10-25 19:58:30 pcre jit disabled
2023-10-25 19:58:30 detected number of CPU cores: 4
2023-10-25 19:58:30 current working directory: /home/chwcrazy
2023-10-25 19:58:30 detected binary path: /usr/local/bin/uwsgi
2023-10-25 19:58:30 *** dumping internal routing table ***
2023-10-25 19:58:30 [rule: 0] subject: path_info regexp: \.svgz$ action: addheader:Content-Encoding:gzip
2023-10-25 19:58:30 *** end of the internal routing table ***
2023-10-25 19:58:30 chdir() to /home/chwcrazy/
2023-10-25 19:58:30 your processes number limit is 512
2023-10-25 19:58:30 your memory page size is 4096 bytes
2023-10-25 19:58:30 detected max file descriptor number: 123456
2023-10-25 19:58:30 building mime-types dictionary from file /etc/mime.types...
2023-10-25 19:58:30 567 entry found
2023-10-25 19:58:30 lock engine: pthread robust mutexes
2023-10-25 19:58:30 thunder lock: disabled (you can enable it with --thunder-lock)
2023-10-25 19:58:30 uwsgi socket 0 bound to UNIX address /var/sockets/chwcrazy.pythonanywhere.com/socket fd 3
2023-10-25 19:58:30 Python version: 3.10.5 (main, Jul 22 2022, 17:09:35) [GCC 9.4.0]
2023-10-25 19:58:30 *** Python threads support is disabled. You can enable it with --enable-threads ***
2023-10-25 19:58:30 Python main interpreter initialized at 0x561bc12afe70
2023-10-25 19:58:30 your server socket listen backlog is limited to 100 connections
2023-10-25 19:58:30 your mercy for graceful operations on workers is 60 seconds
2023-10-25 19:58:30 setting request body buffering size to 65536 bytes
2023-10-25 19:58:30 mapped 501384 bytes (489 KB) for 2 cores
2023-10-25 19:58:30 *** Operational MODE: preforking ***
2023-10-25 19:58:30 initialized 54 metrics
2023-10-25 19:58:30 WSGI app 0 (mountpoint='') ready in 1 seconds on interpreter 0x561bc12afe70 pid: 1 (default app)
2023-10-25 19:58:30 *** uWSGI is running in multiple interpreter mode ***
2023-10-25 19:58:30 gracefully (RE)spawned uWSGI master process (pid: 1)
2023-10-25 19:58:30 spawned uWSGI worker 1 (pid: 5, cores: 1)
2023-10-25 19:58:30 spawned 2 offload threads for uWSGI worker 1
2023-10-25 19:58:30 spawned uWSGI worker 2 (pid: 8, cores: 1)
2023-10-25 19:58:30 metrics collector thread started
2023-10-25 19:58:30 spawned 2 offload threads for uWSGI worker 2
2023-10-25 19:58:32 announcing my loyalty to the Emperor...

Check whether you could mitigate the memory issue. Otherwise the only way to be exempt from the memory limit, would be to use a private server where your app would not affect the server performance for other users. If you're interested in that solution, let us know at support@pythonanywhere.com.