AyWa commented on issue #3339: [ZEPPELIN-4078] handle ipython kernel crash URL: https://github.com/apache/zeppelin/pull/3339#issuecomment-475516201 @zjffdu Hi, I just push an example with docker. https://github.com/apache/zeppelin/commit/c9ec0335cd2fd93476cee31ba99b6dc157face0d So if you run that: in `zeppelin/python/src/main/resources/grpc` run `docker build -t my-python-app . && docker run -m 1g --memory-swap 1g -p 50053:50053 my-python-app` It will install the dependencies of the zeppelin ipython server, and then run the grpc server on port `50053`. And we put a docker limit of `1g` so we can test the `OOM` Then run in `zeppelin/python/src/main/resources/grpc`: `python3 python/ipython_client_OOM.py` With this pr you should see something like: (both client and server terminate) ``` output:14 output:15 output:16 output:17 output:18 output:Ipython kernel has been stopped. Please check logs. It might be because of an out of memory issue. status: ERROR output: "Ipython kernel has been stopped. Please check logs. It might be because of an out of memory issue." ``` On master you will have: (both client and server hanging) ``` output:18 ```
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services