linux - Probing running python process for information -


i've created python (and c, "controlling" part python) program carrying out bayesian inversion using markov chain monte carlo methods. unfortunately, mcmc can take several days run. part of research in reducing time, can reduce much.

i'm running on headless centos 7 machine using nohup since maintaining connection , receiving prints several days not practical. however, able check in on program see how many iterations it's done, how many proposals have been accepted, whether it's out of burn-in, etc.

is there can use interact python process info?

i recommend saws (scientific application web server). creates thread in process handle http request. variables of interest returned client in json format .

for variables managed python runtime, write them (json) file on harddisk (or shared memory) , use simplehttpserver serve it. saws web interface on client side can still used long follow json format of saws.


Comments

Popular posts from this blog

Django REST Framework perform_create: You cannot call `.save()` after accessing `serializer.data` -

Why does Go error when trying to marshal this JSON? -