OpenHands icon indicating copy to clipboard operation
OpenHands copied to clipboard

Lingering browser processes

Open mzydmer opened this issue 1 year ago • 4 comments

Describe your question

I run the main,options is --port 3000 --workers 1

when I opened a web server ,python process adding two ... image

when I closed the web server, web socked was closed. But Two additional process were exists!

Additional context

Each time a websocket connection is established, fastApi should add a thread to maintain the connection.

I want to know why the new python process were created and how to optimize this

mzydmer avatar May 16 '24 08:05 mzydmer

Could you share the arguments of the processes too?

SmartManoj avatar May 17 '24 05:05 SmartManoj

image

i think three processes are normal :)

if you find any situation will cause the process number increase, please let us know.

iFurySt avatar May 17 '24 06:05 iFurySt

image

i think three processes are normal :)

if you find any situation will cause the process number increase, please let us know.

  • It will increase if I open more browsers. There will be no more than 5 processes. I will try to deploy the application to an online environment to see if multiple people can use.

mzydmer avatar May 17 '24 08:05 mzydmer

Yes--each browser spawns its own process. Sounds like maybe we're not cleaning them up?

rbren avatar May 18 '24 17:05 rbren

This issue is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] avatar Jun 18 '24 01:06 github-actions[bot]

@mzydmer is this still an issue with the latest main?

mamoodi avatar Jun 26 '24 15:06 mamoodi