pyinstaller:我的cherrypy应用程序exe的2个实例被执行 [英] pyinstaller: 2 instances of my cherrypy app exe get executed

查看:61
本文介绍了pyinstaller:我的cherrypy应用程序exe的2个实例被执行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Cherrypy应用程序,我已经用pyinstaller制作了一个exe文件.现在,当我运行exe时,它将自身两次加载到内存中.观看taskmanager可以看到第一个实例加载到大约1k,然后第二个第二个hte exe加载到大约3k ram.如果我关闭较大的一个,则两个过程都会死亡.如果我关小一点,只有一个人死.

I have a cherrypy app that I've made an exe with pyinstaller. now when I run the exe it loads itself twice into memory. Watching the taskmanager shows the first instance load into about 1k, then a second later a second instance of hte exe loads into about 3k ram. If I close the bigger one both processes die. If I close hte smaller one only that one dies.

通过子进程加载exe,如果我尝试proc.kill(),它只会杀死一个小的exe,而另一个则在内存中运行.这是一起使用cherrypy和pyinstaller的副作用吗?

Loading the exe with subprocess, if I try to proc.kill(), it only kills the small one leaving the other running in memory. Is this a sideeffect of using cherrypy and pyinstaller together?

推荐答案

PyInstaller在引导过程中产生一个子进程.

PyInstaller spawns a subprocess during its boot process. This is explained in a section of its manual.

这篇关于pyinstaller:我的cherrypy应用程序exe的2个实例被执行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆