-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ResourceWarning: unclosed socket error #106
Comments
@slhowardESR I've not seen this before. I wonder if the client is spawning too many threads and making too many concurrent connections. Can you send me the code you are using? If you want, you can send it to me via slack so the code is kept private. I will run things on my side and see if I can recreate and diagnose the problem. |
…concurrent threads to be removed, only the first wins and the others just pass
@slhowardESR after some investigation, there appears to be a number of different things happening on your processing runs:
|
The above snapshot shows a run with max pending set to 3, and then again with max pending set to 1. When set to 1, there are no servers that bounce, though some of the memory dips are pretty low. |
The temporary fix of setting the max pending to 1 seems to have worked well. All future development on this issue will be tracked under SlideRuleEarth/sliderule#117 |
Hi JP,
I am doing some testing - preparing for the large run, and sometimes I get this problem, will kills the program.
`sys:1: ResourceWarning: unclosed socket <zmq.Socket(zmq.PUSH) at 0x19391b4c280>
ResourceWarning: Enable tracemalloc to get the object allocation traceback
sys:1: ResourceWarning: unclosed socket <zmq.Socket(zmq.PUSH) at 0x19391b4c400>
ResourceWarning: Enable tracemalloc to get the object allocation traceback
sys:1: ResourceWarning: unclosed socket <zmq.Socket(zmq.PUSH) at 0x195403fc640>
ResourceWarning: Enable tracemalloc to get the object allocation traceback
sys:1: ResourceWarning: unclosed socket <zmq.Socket(zmq.PUSH) at 0x19604735dc0>
ResourceWarning: Enable tracemalloc to get the object allocation traceback
Traceback (most recent call last):
File D:\Jupyter\sliderulework\Spyder_SR\SR_by_RGT_5files_print_status.py:108 in
main()
File D:\Jupyter\sliderulework\Spyder_SR\SR_by_RGT_5files_print_status.py:81 in main
gdf = icesat2.atl06p(parmsyp, version=args.release,
File d:\jupyter\sliderule-python\sliderule\icesat2.py:881 in atl06p
return __parallelize(callback, __atl06, parm, resources, asset)
File d:\jupyter\sliderule-python\sliderule\icesat2.py:597 in __parallelize
result, resource = future.result()
File ~\anaconda3\envs\sliderule\lib\concurrent\futures_base.py:437 in result
return self.__get_result()
File ~\anaconda3\envs\sliderule\lib\concurrent\futures_base.py:389 in __get_result
raise self._exception
File ~\anaconda3\envs\sliderule\lib\concurrent\futures\thread.py:57 in run
result = self.fn(*self.args, **self.kwargs)
File d:\jupyter\sliderule-python\sliderule\icesat2.py:459 in __atl06
rsps = sliderule.source("atl06", rqst, stream=True)
File d:\jupyter\sliderule-python\sliderule\sliderule.py:425 in source
__clrserv(serv, stream)
File d:\jupyter\sliderule-python\sliderule\sliderule.py:184 in __clrserv
server_table[serv]["pending"] -= 1
KeyError: 'http://34.212.131.26'`
I am not sure what is causing this. I can send you my code. I am basically trying to do SR-YAPC processing for individual rgt in region 10 and 12. I am running two regions, separate processes, at once.
Some times it works. and Sometimes it crashes.
let me know if you need more info
The text was updated successfully, but these errors were encountered: