Web GUI stops responding (again!)


Recommended Posts

Ok, so I'm having this problem often - sometimes within an hour of reboot, sometimes it can be several days.

 

After much reading and searching of forums the only common response is that "it's a sympton of the server running low on memory".

 

I have 4 gigs, looking at the stats, I see that the usage hasn't been above 2.5 gigs, with free dropping to a minimum of .5 gigs (including cache).

 

Is free mem dropping to half a gig the cause of the web gui stopping then? If 0.5 gigs is low, then wouldn't the system reduce the cached amount to bring up the free amount to a safe level (whatever that is) ?

 

If having 0.5gigs free and nearly 2 gigs for cache is *really* causing the wb gui to stop responding then I will happily buy more ram, but I find it a bit strange.

I would have expecetd the cache to reduce in size as free got low and only get problems when the free and cache dropped to vrtually zero?

 

Thanks!

 

 

Link to comment
After much reading and searching of forums the only common response is that "it's a symptom of the server running low on memory".
It is a symptom of running low on "low memory" that is not currently allocated to some process or file.  (If already allocated, it cannot be freed.)

 

Type

free -l

to see the "low" memory. 

 

If you wish to make the emhttp and SAMBA processes  far less likely to be killed off, you can add these lines to the end of  your

config/go script and reboot.

if [ -e /proc/1/oom_score_adj ]

then

  pgrep -f "/usr/local/sbin/emhttp" | while read PID; do echo -1000 > /proc/$PID/oom_score_adj; done

  pgrep -f "smbd" | while read PID; do echo -1000 > /proc/$PID/oom_score_adj; done

else

  pgrep -f "/usr/local/sbin/emhttp" | while read PID; do echo -17 > /proc/$PID/oom_adj; done

  pgrep -f "smbd" | while read PID; do echo -17 > /proc/$PID/oom_adj; done

fi

Link to comment

I have the same issue as well and the setting the oom_adj on emhttp doesn't seem to be helping. I have seen indications that this could be related to the SimpleFeatures (v1.011). This morning I turned off the SF plugin to assess whether this could be the issue.

 

I need to set the oom_adj on samba as well. thanks for the pointer.

 

I was considering try installing full slackware with a barebones unraid to get a stable system.. but that seems like so much work!

Link to comment

I have the same issue as well and the setting the oom_adj on emhttp doesn't seem to be helping. I have seen indications that this could be related to the SimpleFeatures (v1.011). This morning I turned off the SF plugin to assess whether this could be the issue.

 

I need to set the oom_adj on samba as well. thanks for the pointer.

If you are running a recent version of 5.0beta/rc (and you must be, if using SimpleFeatures)

then setting oom_adj will not work...

 

It is because the parameter name changed from the earlier linux releases. 

In newer releases, it is now named oom_score_adj.  In addition, the values used changed to +/- 1000, not +/- 17 as in the older linux.

 

IF /proc/1/oom_score_adj exists, then you need to use oom_score_adj instead of oom_adj.

 

Type this command to see if you are running the newer version

test -e  /proc/1/oom_score_adj && echo oom_score_adj exists || echo oom_score_adj does not exist

 

The 8 line set of commands I posted earlier in this thread will set the appropriate oom values based on what version of linux your unRAID server is using.

 

If you know which your version of linux uses, you can just put the two lines needed.

 

Joe L.

 

Link to comment

I didn't know this before, thanks for the quick response. Will check this later tonight. So I am assuming simplefeatures is unrelated to the memory issue?

 

I am on 5rc11. My plugins are simplefeatures, SAB, transmission, couchpotato, slimserver and utorrent (in the process of moving to transmission).

 

In an unrelated topic, if I run vanilla unraid and install virtualbox, will this give me a stable platform to install Lubuntu, SAB, transmission, etc to run on virtualbox?

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.