Curious about running multiple xvfb displays: I have between 10-50 instances of a script running in parallel that connect to an xvfb display. Is is advantageous to run the same number of xvfb displays and connect 1 to 1? Or can multiple processes share the same display? RAM is not an issue, neither is processing power.
相关问题
- how to define constructor for Python's new Nam
- streaming md5sum of contents of a large remote tar
- How to get the background from multiple images by
- Evil ctypes hack in python
- Correctly parse PDF paragraphs with Python
One Xvfb server should be able to handle lots of connections quite well. One thing you want to make sure you do is run the server with the
-noreset
option. Without it, it has a memory leak every time a client disconnects.The only time multiple Xvfb servers is helpful is if you have more than one processor available in the machine (e.g. 8 cores) and your script is graphics-heavy. To see if this is the case, connect many instances of your script and check
top
to see what the CPU usage of Xvfb is. If it's at 100%, you might benefit from additional Xvfb instances.