Announcement

Collapse
No announcement yet.

Plugin use 200% cpu

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Mat_Budden
    replied
    Hi MattL0,

    Ok, So the OID's displayed there are all different devices... Looks like your trying to add a printer? Did you enter anything into the Index? the Index field is for indexable OID's. for a pages printed you would likely not use and index unless you had a print server and wanted pages printed for each printer. For something like Ethernet ports for example you would Put and index for how many the device had like 1-48.

    Could you let me know the make and model along with what OID you created and ill try and replicate on my end.

    I will likely add a block on this so the plugin wont create more than 20 devices in one go without asking the question.

    Could you either send a copy of the setup page (Means turning the plugin on, so you dont need to do this way if your concerned)

    Or private message me the Config file for the plugin for me to review.

    Thanks
    Mat

    Leave a comment:


  • MattL0
    replied
    I am not that used to snmp , but the plugin just created 3000 ( +4000 the first time) devices in a loop. It happened two times.

    I am a litle scared to test this again, in case that corrups my database.

    i will load a backup and will test the plugin another time
    Attached Files

    Leave a comment:


  • MattL0
    replied
    Do you plan an hs4 upgrade ?

    Leave a comment:


  • MattL0
    replied
    I have asked for it 2 mins ago
    Thanks .

    I am only checking my printer for now with a dedicated plugin from HomeAssistant with snmp. So, if all goes right, I’ll be able to turn off Home assistant for a while with this plugin.

    Leave a comment:


  • Mat_Budden
    replied
    Hi MattL0,

    Thanks for the Note, I am confident the issue is resolved. But just want to close the loop....

    Did you need me to chase up a new trial for you? or can you request directly?

    Thanks
    Mat

    Leave a comment:


  • MattL0
    replied
    Mat_Budden Hi,

    thanks I would need to test the plugin first . Will check this in the next days . Also have to get a new trial licence from hs haha

    Leave a comment:


  • Mat_Budden
    replied
    Hi MattL0,

    Just confirming the CPU usage is no longer an issue?

    Thanks
    Mat

    Leave a comment:


  • MattL0
    replied
    Thnks Mat,

    will test it next week as I am not at home this week end .

    Leave a comment:


  • Mat_Budden
    replied
    Hi MattL0,

    I believe i have resolved the High CPU usage, There was a watchdog loop that kicked into an Infinite loop when no devices were monitored... I have fixed it and on my system CPU usage is never over 1% (Sits on zero except startup), Could you please re-try and let me know if its still an issue.

    Given the time its taken your trial would have expired, Please let me know if you want to retest and ill ask Homeseer to restart the trial.

    Apologies for the delay, and i appreciate the patience.

    Thanks
    Mat

    Leave a comment:


  • Mat_Budden
    replied
    Hi All,

    I have not got to this yet, Had a couple family medical problems, back to it now, so will try and nut it out ASAP.

    Thanks
    Mat

    Leave a comment:


  • rdc
    replied
    HS4 with Windows and Snmp plugin using high CPU levels. Machine crashed once
    Attached Files

    Leave a comment:


  • Mat_Budden
    replied
    Hi MattL0,

    Just an update, I have not been able to get the new Beta out just yet, Hoping to get to it this weekend, Thanks for the patience, Will let you know.

    Thanks
    Mat

    Leave a comment:


  • MattL0
    replied
    Originally posted by Mat_Budden View Post
    Hi MattL0,

    Thanks for the message, The Manual is attached :

    [ATTACH]n1403630[/ATTACH]

    Thats interesting regarding the CPU usage, I will set up a test on My test unit and see if i can nut out what is happening there, Can you tell me more about your setup, Are you using a Raspberry Pi, or Full Linux? and have you setup any devices to be monitored...

    It must be getting hung up on something, As the main thread that does the monitoring has a sleep routine to slow it down, And even if it wasent its not really doing much in the way of calculation anyhow unless you had a million devices loaded... I will look into that shortly (Most likely tomorrow at this stage).

    As far as the DLL, Thanks for the feedback, ill sort that out in the next release.

    Thanks
    Mat
    Hi Mat,

    I am using full linux on a x64 server with mono 6.10 . No I do not have any device monitored yet .

    Thanks

    Leave a comment:


  • Mat_Budden
    replied
    Hi MattL0,

    Thanks for the message, The Manual is attached :

    SNMP Plugin for Homeseer 3.pdf

    Thats interesting regarding the CPU usage, I will set up a test on My test unit and see if i can nut out what is happening there, Can you tell me more about your setup, Are you using a Raspberry Pi, or Full Linux? and have you setup any devices to be monitored...

    It must be getting hung up on something, As the main thread that does the monitoring has a sleep routine to slow it down, And even if it wasent its not really doing much in the way of calculation anyhow unless you had a million devices loaded... I will look into that shortly (Most likely tomorrow at this stage).

    As far as the DLL, Thanks for the feedback, ill sort that out in the next release.

    Thanks
    Mat

    Leave a comment:


  • MattL0
    replied
    I cheked the file HSPI_SNMP.exe.config :

    Code:
     <?xml version="1.0"?>
    <configuration>
    <system.diagnostics>
    <sources>
    <!-- This section defines the logging configuration for My.Application.Log -->
    <source name="DefaultSource" switchName="DefaultSwitch">
    <listeners>
    <add name="FileLog"/>
    <!-- Uncomment the below section to write to the Application Event Log -->
    <!--<add name="EventLog"/>-->
    </listeners>
    </source>
    </sources>
    <switches>
    <add name="DefaultSwitch" value="Information"/>
    </switches>
    <sharedListeners>
    <add name="FileLog" type="Microsoft.VisualBasic.Logging.FileLogTraceListener, Microsoft.VisualBasic, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" initializeData="FileLogWriter"/>
    <!-- Uncomment the below section and replace APPLICATION_NAME with the name of your application to write to the Application Event Log -->
    <!--<add name="EventLog" type="System.Diagnostics.EventLogTraceListener" initializeData="APPLICATION_NAME"/> -->
    </sharedListeners>
    </system.diagnostics>
    <startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup></configuration>
    There does not sems to be anything pointing to bin/YourPluginName/some dll(S)

    I also saw SnmpSharpNet.dll in my Root hs4 folder ( this is easyly seen in he install.txt uploaded on this post) . It should be in /bin/YourPluginName/SnmpSharpNet.dll. Putting dll in hs4 root is bad practice.


    thanks

    Attached Files

    Leave a comment:

Working...
X