Jump to content

Welcome to Smart Home Forum by FIBARO

Dear Guest,

 

as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.

 

As a member you can:

  •     Start new topics and reply to others
  •     Follow topics and users to get email updates
  •     Get your own profile page and make new friends
  •     Send personal messages
  •     ... and learn a lot about our system!

 

Regards,

Smart Home Forum by FIBARO Team


  • 1

RAM Usage issues (4.150) again


Question

Posted

Please login or register to see this image.

 

Software Version:4.150

 

@T.Konopka

or smb, can help me solve this issue. 

 

Thank you!

 

PS: I do not want reboot HC2 every night, that still doesn't solve root of the problem!

 

5 answers to this question

Recommended Posts

  • 1
Posted
On 15/01/2018 at 3:08 AM, 10der said:

Please login or register to see this link.

 

Software Version:4.150

 

@T.Konopka

or smb, can help me solve this issue. 

 

Thank you!

 

PS: I do not want reboot HC2 every night, that still doesn't solve root of the problem!

 

 

Not too sure what issue you are trying to raise. 23% of free space in memory, that's pretty good and not the root cause of your system's instability (if that is what you are complaining). In many posts within this forum, esp. those in the early days of version 4.0xx, this topic has been greatly discussed at great length.

 

As RH_DreamBox has mentioned, most of the time HC2 is unstable due to poorly written scripts/scenes and overly congested z-wave traffic (which till date, I still believe it is single-thread on the z-wave layer). Just for reference purpose, a HC2 system running with less than 5% free space can still be very stable and operates without issue.

  • Thanks 1
  • 0
Posted (edited)

I think you have to go through your scenes very carefully to see if you can find something that needs to be corrected. (or a lot of log-data)
From my own experience, I know that you can get rid of memory very quickly with an poorly written code.

 

I tested once with an bad loop and the memory run out after a few seconds and then locked the box.
Then, I had a lot of trouble turning that scene off before the box was locked again ;D

Edited by RH_Dreambox
  • 0
Posted (edited)

Agree with @RH_Dreambox

 

 I have alot of VDs and many LUA written scenes as well as graphical onces. 5 of my VDs has over 1500 rows of code each and run continuously. 2 of the runs with fast loops with no sleep or any kind of wait statements. Also I have not even bothered to disable std log data I do not need. Still I have a stable memory utilisation of around 25% + cache ((total around 50%) and very low CPU usage.

 

How many scenes and VDs do you have?

How many have you written in LUA yourself?

Will your memory usage increase over time (asking as you said you don't want to reboot every nigh)?

 

/Peo

Please login or register to see this attachment.

Edited by pos
  • 0
Posted

Just turn off all scenes, and then check one by one, which one it is. have a second page open to check ram usage from the HC2

  • 0
  • Inquirer
  • Posted
    On 1/19/2018 at 12:47 PM, pos said:

    How many scenes and VDs do you have?

    Please login or register to see this image.

    12mc1okzeB.png

     

    so, 34 scene and 20 vd's

     

    On 1/19/2018 at 12:47 PM, pos said:

    How many have you written in LUA yourself?

     

    only one VD (Washing Machine control by @Sankotronic  my lazy + a full power to Sank)  all others scripts (c) 10der

     

    but I have one slant.

    I hate to use header triggering. and I have a very large code for my scene where I used infinity loops for control devices. 

    for example, all lights in my home controlled single script  like a

     

    Please login or register to see this code.

     

    and btw, I have disabled all stdout (fibaro:debug) in all my script and VD's

    now all OK

     

    2days uptime

    crTHLIUz7H.png

     

    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.

    Guest
    Answer this question...

    ×   Pasted as rich text.   Paste as plain text instead

      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.

    ×
    ×
    • Create New...