--
You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
Glenn and Andrew: thanks for replying. I renamed the checkwifi script file, and commented out the line in cron which ran the script. Is it OK to just comment out the line as I did, or is it better to delete it entirely from cron?
1. I am running Weewx 3.8.0. In /examples/pmon the changelog says the included version is 0.4 date 24 April 2016. Is this the most up to date version?
2. Following the manual install instructions at https://github.com/weewx/weewx/tree/master/examples/pmon I have copied pmon.py and the /skins to the recommended locations. The next step is adding [ProcessMonitor], Is there a specific place that I should add this stanza in weewx.conf?
3. Is pmon a process that can run all the time? If it does indeed find a memory problem and I correct it, is there a way to turn off pmon.
--
You received this message because you are subscribed to a topic in the Google Groups "weewx-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/VehicK_KNso/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
Thanks, Vince. I am going to do the manual install as I could not get the extension installer to work. Maybe syntax error or my just not understanding how it works in this case..I have used the installer successfully in the past.
--
Ok..I have pmon running and attached are the 3 most recent graphs. I don't know how to interpret them except that it looks like memory usage is going up constantly.
Vince: here are the extensions that are running (ignore as3935..I removed it a long time ago but for some reason wee_extension --list keeps showing it there).
--
Not sure if it is relevant but I should add that my archive interval is 2 minutes, and when I have Steel Gauges running my update time is 2 seconds (the loop time from my Ultimeter).
--
.
--
On Thu, Oct 4, 2018, 9:23 AM gjr80 <gjrod...@gmail.com> wrote:Looks to me like you are still going to crash, just a bit later than previous. In fact if you were able to look at your previous plots when you had a crash at 11 days xx hours, you could probably make a pretty good guesstimate as to when your system will crash; it will be when memory usage hits that magic value. I think you need to keep looking, those memory plots should be near a flat line in a matter of hours after WeeWX startup. There is not much point adding things back until you get that flat line.
Gary and Vince After sending my previous post, I started reading some more about memory leaks. It appears that cron jobs (if poorly coded) can sometimes be the cause.
With that in mind, I am attaching both the cron, and the process it starts so maybe you can pick up something. I am also having a problem with the crontab; if I issue the command crontab -l I get the following at the end:The cron:
I want to edit this crontab to stop running the following process, but when I issue crontab -e I get a generic crontab, not the one I wish to edit.
drwx-wx--T 2 root crontab 4096 Aug 17 11:10 .drwxr-xr-x 3 root root 4096 Feb 25 2016 ..-rw------- 1 pi crontab 1275 Aug 17 11:08 pi-rw------- 1 root crontab 1090 Aug 17 11:10 root
The process (weewxbackup in /home/bin)#!/bin/bash
#This script zips and backs up to web site
#Following line added to prevent "TERM invronment variable not set" error
export TERM=${TERM:-dumb}
clear
echo "Backing up weewx.sdb"
cd /home/weewx/archive
sudo cp weewx.sdb weewxpi2.cpy
sudo gzip weewxpi2.cpy
sudo lftp -e 'put /home/weewx/archive/weewxpi2.cpy.gz; bye' -u xxxxx,xxxxxxxftp.xxxabcd.org
sudo rm weewxpi2.cpy.gz
echo "Done - weewxpi2.sdb zipped and uploaded to xxxabcd.org"
57.7 MB total memory used by weewx32.7 MB resident set size for weewx7.5 MB shared memory usage for weewx
--
You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
--
You received this message because you are subscribed to a topic in the Google Groups "weewx-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/VehicK_KNso/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
Memory uses till climbing after 24 hours. It appears from the pmon+ graph that it bumps up close to every 3 hours. Is it possible there is a problem with the raspberry pi itself; either hardware or the kernal?
python-pil is version 4.0.0-4kernel is 4.14.52+ as reported by 'uname`
weewx is 3.8.2 installed via setup.py method
Hello again: after October 19, I had my new pi with a new install of weewx and steel gauges running. I had another crash today after almost 11 days of running and this is a snip from syslog which continues until a hard reboot of the pi: Any thoughts? Could Steel Gauges be causing this. Also attached are some results after the df command was issued.
pi@zero:~ $ toptop - 18:10:42 up 18 days, 6:27, 1 user, load average: 1.46, 1.34, 1.28Tasks: 69 total, 2 running, 43 sleeping, 0 stopped, 0 zombie%Cpu(s): 95.5 us, 4.5 sy, 0.0 ni, 0.0 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 stKiB Mem : 443892 total, 53052 free, 142484 used, 248356 buff/cacheKiB Swap: 102396 total, 102140 free, 256 used. 218624 avail MemPID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND4156 root 20 0 14916 10940 6452 R 48.9 2.5 7599:57 python290 root 20 0 140692 105996 6488 S 48.6 23.9 2091:12 weewxd
10 * * * * top -b -n 1 > /root/top.`date +%Y%m%d.%H%M%S`
Vince..having lots of problems creating a cron. I have done it before, so that's my issue. I decided to just run the script manually and it runs, but I have to log on as root in order to run it. Anyway, not really a Weewx issue, so I will research it further. I will run the command daily until I get another system crash.
...: once I save the crontab, why does a "new" one come up rather than the edited version when I run sudo crontab -e again? If I go (as root) to /etc/crontab.xxxxxx/crontab and open crontab with nano the lines I incorporated are not there. Since this is happening I can only figure that my edits are not sticking.
I had the pi run for almost 22 days this time before it stopped. As previously noted, I was finally able to create a cron to run Top once daily. I am including the first one, another about midway through, and the last two. The only thing of note that I see is the sudden big jump in memory usage by weewxd according to top. Besides Weewx itself, the only other thing running on the pi is the cron.
Gary
Vince and Gary..I forgot that I do have one other program running...Real Time Gauges. Maybe that is the problem. Would just disabling RTG under [Engine] [[Services]] be sufficient to have "plain vanilla", or should I do a total reinstall?
Vince..having lots of problems creating a cron. I have done it before, so that's my issue. I decided to just run the script manually and it runs, but I have to log on as root in order to run it. Anyway, not really a Weewx issue, so I will research it further. I will run the command daily until I get another system crash.
Steve
--
You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Gary..Yes, RTG is not enabled. At the time I am writing this, top yields weewxd using 92.5% of memory. Putty is now very slow when trying to access the pi, so I think it is very close to going down. The current up time is 21D 23H 31M. I am going to let it run till it goes down.
Vince; I used setup.py for installation. Additional info: Running Debian 9.6 (Stretch) on a pi3 B+ . I do not have the "lite" version as I was using the pi for other things. Do you think not having Stretch Lite could be part of the problem?
Tom: I am running Stretch on a RPi 3 + (most recent Raspian from raspberrypi.org; the version that includes desktop however I have the pi set to boot into the cli, not the GUI). I have run the necessary commands to update, upgrade, and update the firmware. I used setup.py with the Ultimeter station, and except for a cron to backup .sdb, there are no other extensions installed. If you need to look at any particular files, please let me know.
# This section is for general configuration information.
# Set to 1 for extra debug info, otherwise comment it out or set to zero
debug = 0
debug_memory = True
# Root directory of the weewx data file hierarchy for this station
WEEWX_ROOT = /home/weewx
--
Tom: attached is the summary file. Weewx has been running for 24 hours. Weewxd is using 9.6%
Steve
--
It appears that "weakref" references are steadily climbing over time. Weak references are used to aid garbage collection in Python. They are not used in WeeWX, so they are probably being used by an underlying library. My candidate is the driver for your Ultimeter.
--
Tom: will the memory usage stay fairly flat if things are working properly? I seem to remember some comments that it can go up, but then levels off. Is there some average % of usage that is considered "normal"?Steve
--
It should go up, but stabilize within a couple hours. If you let it run overnight, you should have a pretty good indication by morning.-tkOn Thu, Jan 31, 2019 at 4:36 PM Steve2Q <ste...@gmail.com> wrote:Tom: will the memory usage stay fairly flat if things are working properly? I seem to remember some comments that it can go up, but then levels off. Is there some average % of usage that is considered "normal"?Steve
Vince..good idea. I will let it keep running and chart the results as I did last time. Hopefully it will level off.Steve - give it 2-3 days since you've previously seen it grow quickly. What the heck...have a weekend maybe and see what it looks like Sunday or Monday. It should stay up that long regardless based on your past history, eh ?
Still, if you've got any early results...
Weewxd using 9.1% of memory as of now.
Tom, so far it is climbing. Started at 3.4, this AM it was 7.7, and now 9.1
--