Open akx opened 10 years ago
Unfortunately it is expected as changing process name in Linux is a horrible hack :(
Basically you use the memory area assigned to environment variables as process name storage
Okay. Well, would it be possible to "opportunistically" clear that memory, i.e. only clear as much as required and not all of what's available?
not by default, as the user is free to set the process name with uwsgi.set_process_name() in any moment
It seems any options that end up calling
uwsgi_set_processname
(auto-procname
,procname-prefix
in my case) may clobber more data than required, making debugging the actual environ values of a process difficult, see below.I suppose this has to do with this bit that calculates environ length into
uwsgi.max_procname
inuwsgi.c
:(However, it's interesting to note that not all of the environ gets cleared out. An off-by-one error, maybe?)
If it helps, this occurred on Linux 3.2.0 / x86_64.