[uWSGI] Newbie question about uwsgi/uWSGI + Lua

Gilles codecomplete at free.fr
Wed Apr 23 13:53:10 CEST 2014


On Wed, 23 Apr 2014 07:14:52 +0200, "Roberto De Ioris"
<roberto at unbit.it> wrote:
>Oh, and in addition to the snippet, remember that lua's print include
>newline so your cgi should be:

Thanks a bunch!

It worked OK the first time, but then, I noticed something strange.

While uwsgi was running, I replaced the contents of index.html but
uwsgi still delivered the original contents.

Stranger yet, even after killing and restarting uwsgi, it still
delivers the original index.html.

Does uwsgi cache files?

Here's what it says when calling index.html (0 bytes, 304):
================
[pid: 18859|app: -1|req: -1/1] 192.168.0.1 () {38 vars in 654 bytes}
[Wed Apr 23 13:42:17 2014] GET / => generated 0 bytes in 0 msecs
(HTTP/1.1 304) 0 headers in 29 bytes (0 switches on core 0)
================

And here's the console output:
================
/tmp/uwsgi-2.0.3# ./uwsgi myapp.ini
[uWSGI] getting INI configuration from myapp.ini
[uwsgi-static] added check for /tmp/uwsgi-2.0.3/www
*** Starting uWSGI 2.0.3 (32bit) on [Wed Apr 23 13:42:16 2014] ***
compiled with version: 4.6.3 on 21 April 2014 16:21:46
os: Linux-3.2.0-4-kirkwood #1 Debian 3.2.51-1
nodename: sheevaplug
machine: armv5tel
clock source: unix
pcre jit disabled
detected number of CPU cores: 1
current working directory: /tmp/uwsgi-2.0.3
detected binary path: /tmp/uwsgi-2.0.3/uwsgi
setgid() to 65534
setuid() to 65534
your processes number limit is 3966
your memory page size is 4096 bytes
detected max file descriptor number: 1024
building mime-types dictionary from file /etc/mime.types...532 entry
found
lock engine: pthread robust mutexes
thunder lock: disabled (you can enable it with --thunder-lock)
uWSGI http bound on 0.0.0.0:8080 fd 4
uwsgi socket 0 bound to TCP address 127.0.0.1:44823 (port
auto-assigned) fd 3
your server socket listen backlog is limited to 100 connections
your mercy for graceful operations on workers is 60 seconds
mapped 358320 bytes (349 KB) for 8 cores
*** Operational MODE: preforking+threaded ***
initialized CGI path: /tmp/uwsgi-2.0.3/cgi
*** no app loaded. going in full dynamic mode ***
*** uWSGI is running in multiple interpreter mode ***
spawned uWSGI master process (pid: 18855)
spawned uWSGI worker 1 (pid: 18856, cores: 2)
spawned uWSGI worker 2 (pid: 18857, cores: 2)
spawned uWSGI worker 3 (pid: 18858, cores: 2)
spawned uWSGI worker 4 (pid: 18859, cores: 2)
*** Stats server enabled on 127.0.0.1:9191 fd: 18 ***
spawned uWSGI http 1 (pid: 18864)

[pid: 18859|app: -1|req: -1/1] 192.168.0.1 () {38 vars in 654 bytes}
[Wed Apr 23 13:42:17 2014] GET / => generated 0 bytes in 0 msecs
(HTTP/1.1 304) 0 headers in 29 bytes (0 switches on core 0)
================

Thank you.



More information about the uWSGI mailing list