-
Notifications
You must be signed in to change notification settings - Fork 22
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
sr_poll - memory leak problem #47
Comments
working around it with daily cronjobs to restart. |
How about I try to use http://www.lshift.net/blog/2008/11/14/tracing-python-memory-leaks/ (if I get it to work) to figure this out. not gaurenteeing anything. Plus I will be learning how to set this up. |
Does sr_poll.py ever run on it's own? I've been having some issues with running it on it's own. And I'm now seeing an error stating that 2016-06-21 20:07:32,055 [ERROR] Type: <class 'AttributeError'="">, Value: 'sr_poll' object has no attribute 'info', ... |
And it looks like I was using an older copy of Sarra on my machine. the ERROR above has long since been taken care of. But could the memory leak be because the internal array of files is never decreased in size as long as nothing is deleted on the site being polled? |
next week, 2.17.03a5 will be installed on pxatx. Will look to see if the problem is still there. |
was installed, problem is still there. On the other hand, it is sure that the problem is not Don't have a good approach to this. https://mflerackers.wordpress.com/2012/04/12/fixing-and-avoiding-memory-leaks-in-python/ Thinking that the self.parent = parent pattern, likely is a good candidate to use weakref, |
another link, more explicit: |
from Jun: I’m not sure of your conclusion.
very good point. Don't know. there is still a bit inside sr_poll (list comparison logic) that could easily be the source. |
with the latest version hb_memory it will check it´s memory usage and given a threshold will restart to prevent crashing the system, or taking too much memory. |
the purpose of sr_poll is to create announcements (MQP messages) for files from servers that do not produce announcements already, so other sarracenia components can copy the files through the network. Any time a file is written to dd.weather.gc.ca, an announcement is already created, so you don't need sr_poll to download any files from there. You should be able to get by with sr_subscribe. This issue you are raising is different from the sr_poll one... probably better to create a new issue. We can work through it anyways... How did you install Sarracenia? |
for the process management aspect (stop and status not working.) I found a bobo. |
Originally installed Sarracenia through the pre-built Windows env Installer version 2.20.05 onto the default AppData user directory. I've been wondering if our anti-virus data exchange layer (from McAfee) or not having certain data ports open is causing us difficulties in receiving files or not as we;ll. |
sr_poll process memory keeps growing with time.
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
12419 sarra 20 0 19.1g 14g 2268 S 0 31.1 614:07.82 sr_poll
27294 sarra 20 0 6420m 6.1g 2364 S 4 13.0 240:45.76 sr_poll
12415 sarra 20 0 155m 57m 1940 S 0 0.1 39:35.04 sr_poll
was: https://sourceforge.net/p/metpx/bugs/33/
The text was updated successfully, but these errors were encountered: