TVSauditor (1 Viewer)

Gixxer

Retired Team Member
  • Premium Supporter
  • August 18, 2007
    1,383
    41
    40
    Spain
    Home Country
    Spain Spain
    Great utility - however I have foun the TVServer to be completely stable - no issues! I would rather something that monitors the client application!

    the idea came up when i lost some recordings because tvservice was not working correctly, i fixed this by making a bat file which rebooted tvservice once a day at a "save" time.

    this service looks to be a more prof aproach to it.

    pd. my tvserver is also working better now, but how does not want a backup solution just in case! ... a recording may be lost.
     

    morpheus_xx

    Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    the first things I found out:

    1) on my mediacenter cpu load detection don't work:
    Code:
    15.12.2008 07:46:04 - WARNING	Unable to get CPU usage: Category does not exist.
    15.12.2008 07:46:04 - INFO	A: Current CPU usage: 0,00%
    2) on my working pc cpu load detection work, but counts wrong ?
    it finds 4 cores and then counts load from 0..4 (means 5)
    3) my tvservice mem usage is usually always like 150 mb !
    Code:
    15.12.2008 09:37:08 - WARNING	Unable to get CPU usage: Category does not exist.
    15.12.2008 09:37:08 - INFO	A: Current CPU usage: 0,00%
    15.12.2008 09:37:08 - INFO	A: Current Memory usage: 41,53MB
    15.12.2008 09:37:08 - DEBUG	Tvsi: User for TechnoTrend BDA/DVB-C Tuner with status CardInUse is: NoUser
    15.12.2008 09:37:08 - DEBUG	Tvsi: User for RadioWebStream Card (builtin) with status CardInUse is: NoUser
    15.12.2008 09:37:08 - DEBUG	Tvsi: User for TechnoTrend BDA/DVB-C Tuner with status CardInUse is: NoUser
    15.12.2008 09:37:08 - INFO	A: Are any cards recording: False
    15.12.2008 09:37:08 - DEBUG	Tvsi: User for TechnoTrend BDA/DVB-C Tuner with status CardInUse is: NoUser
    15.12.2008 09:37:08 - DEBUG	Tvsi: User for RadioWebStream Card (builtin) with status CardInUse is: NoUser
    15.12.2008 09:37:08 - DEBUG	Tvsi: User for TechnoTrend BDA/DVB-C Tuner with status CardInUse is: NoUser
    15.12.2008 09:37:08 - INFO	A: Are any cards timeshifting: False
    15.12.2008 09:37:08 - DEBUG	Tvsi: User for TechnoTrend BDA/DVB-C Tuner with status CardInUse is: NoUser
    15.12.2008 09:37:08 - DEBUG	Tvsi: User for RadioWebStream Card (builtin) with status CardInUse is: NoUser
    15.12.2008 09:37:08 - DEBUG	Tvsi: User for TechnoTrend BDA/DVB-C Tuner with status CardInUse is: NoUser
    15.12.2008 09:37:08 - INFO	A: Are any cards grabbing epg: False
    15.12.2008 09:37:08 - DEBUG	Tvsi: User for TechnoTrend BDA/DVB-C Tuner with status CardInUse is: NoUser
    15.12.2008 09:37:08 - DEBUG	Tvsi: User for RadioWebStream Card (builtin) with status CardInUse is: NoUser
    15.12.2008 09:37:08 - DEBUG	Tvsi: User for TechnoTrend BDA/DVB-C Tuner with status CardInUse is: NoUser
    15.12.2008 09:37:08 - INFO	A: Are all cards idle: True
    15.12.2008 09:37:08 - INFO	AP0: Memory usage on normal level - ACTION: Restart TVService NOT necessary
    15.12.2008 09:37:08 - INFO	AP2: No cards are in use
    15.12.2008 09:37:08 - INFO	AP21: CPU usage for TVS(idle) on normal level - ACTION: Restart TVService NOT necessary
    15.12.2008 09:37:08 - DEBUG	**** END Audit for timestamp: 15.12.2008 09:37:08
    15.12.2008 09:37:15 - INFO	PowerEvent: ResumeAutomatic
    15.12.2008 09:37:15 - INFO	PowerEvent: ResumeAutomatic
    15.12.2008 09:37:15 - INFO	PowerEvent: ResumeSuspend
    15.12.2008 09:42:08 - DEBUG	**** START Audit for timestamp: 15.12.2008 09:42:08
    15.12.2008 09:42:08 - DEBUG	A: Loaded CPU max busy usage from settings: 70%
    15.12.2008 09:42:08 - DEBUG	A: Loaded CPU max idle usage from settings: 30%
    15.12.2008 09:42:08 - DEBUG	A: Loaded Memory max usage from settings: 100MB
    15.12.2008 09:42:08 - WARNING	Unable to get CPU usage: Category does not exist.
    15.12.2008 09:42:08 - INFO	A: Current CPU usage: 0,00%
    15.12.2008 09:42:08 - INFO	A: Current Memory usage: 140,39MB

    last night I had some incomplete recordings, no error found in log. Situation was:
    - recording 3 different channels on same transponder (using CI/CAM!)
    - different starting and ending times
    - Logfiles showing correct start and end time
    - some Recording files are to short, BUT the "last write" timestamp shows the logged end
     

    josch.hh

    MP Donator
  • Premium Supporter
  • March 29, 2008
    476
    77
    Hamburg
    Home Country
    Germany Germany
    Can you provide the TVSauditor logs for last night?

    What CPU do you use on your work machine?
     

    morpheus_xx

    Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    Here are the logfiles: the zip one is from my mediacenter, the ".log" from my working pc.

    This second PC has a Q6600 (Quad Core) CPU, so the number of 4 cores is correct, but I wonder about the counting from 0..4 (or is one of them the "average load" ?).
     

    josch.hh

    MP Donator
  • Premium Supporter
  • March 29, 2008
    476
    77
    Hamburg
    Home Country
    Germany Germany
    Here are the logfiles: the zip one is from my mediacenter, the ".log" from my working pc.

    This second PC has a Q6600 (Quad Core) CPU, so the number of 4 cores is correct, but I wonder about the counting from 0..4 (or is one of them the "average load" ?).

    Your are right it is an average load over a specific amount of time (5 sec.). This is the way it has to be coded with the features of c#.
     

    iancalderban

    Portal Pro
    December 12, 2008
    140
    7
    milton keynes
    Home Country
    United Kingdom United Kingdom
    hi all,

    just came onto this thread after searching for tvservice restart tool. I've just converted my MP setup to multiseat - htpc bytv running mp client, which standby's when not used. TV server running on my fileserver box running 24x7. This partly came after I was unhappy about the stability of the two when combined in one box going in/out of standby on demand (too many missed recordings due to wakeup failure)... So now, my tvservice box has run for about one week uptime, and tv service just died this morning very shortly after initiating a recording...reason unknown. it didn't restart - I only noticed it was dead after I came to watch tv on the client box later in the day and I did a manual start successfully frim the tv server configuration app.

    there's very little in the tv.log
    Code:
    2009-02-15 09:40:04.024400 [11]: **************************************************
    2009-02-15 09:40:04.025400 [11]: ***** SIGNAL LEVEL: 100, SIGNAL QUALITY: 100 *****
    2009-02-15 09:40:04.025400 [11]: **************************************************
    2009-02-15 09:40:04.026400 [11]: card: tuned user: scheduler49 subchannel: 0
    2009-02-15 09:40:04.027400 [11]: user:scheduler49 add
    2009-02-15 09:40:04.033400 [Scheduler timer]: Scheduler : record to G:\recordings\Bob the Builder - CBeebies\Bob the Builder -  - 2009-02-15 - 09_45.mpg
    2009-02-15 09:40:04.041400 [11]: card: StartRecording 7 G:\recordings\Bob the Builder - CBeebies\Bob the Builder -  - 2009-02-15 - 09_45.ts
    2009-02-15 09:40:04.042400 [11]: StartRecording to G:\recordings\Bob the Builder - CBeebies\Bob the Builder -  - 2009-02-15 - 09_45.ts
    2009-02-15 09:40:04.043400 [11]: subch:0 StartRecord(G:\recordings\Bob the Builder - CBeebies\Bob the Builder -  - 2009-02-15 - 09_45.ts)
    2009-02-15 09:40:04.044400 [11]: subch:0 record transport stream mode
    2009-02-15 09:40:04.045400 [11]: subch:0-0 tswriter StartRecording...
    2009-02-15 09:40:04.046400 [11]: SetRecorderPids
    2009-02-15 09:40:04.060400 [11]: DVB subch:0 Started recording
    2009-02-15 09:40:04.063400 [Channel state thread]: Controller: DoSetChannelStates for 96 channels
    2009-02-15 09:40:04.122400 [Scheduler timer]: Scheduler: recList: count: 2 add scheduleid: 49 card: Cinergy 2400i DT Tuner 2
    2009-02-15 16:19:51.157400 [SetupTv]: ---- SetupTv v1.0.0.21149 is starting up on Windows Vista (Service Pack 1) ----
    2009-02-15 16:19:51.166400 [SetupTv]: ---- check connection with database ----

    16:19 is where I come to find its broken later inthe day.

    windows event log says

    Code:
    Log Name:      System
    Source:        Service Control Manager
    Date:          15/02/2009 09:46:08
    Event ID:      7034
    Task Category: None
    Level:         Error
    Keywords:      Classic
    User:          N/A
    Computer:      server
    Description:
    The TVService service terminated unexpectedly.  It has done this 1 time(s).
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="Service Control Manager" Guid="{555908D1-A6D7-4695-8E1E-26931D2012F4}" EventSourceName="Service Control Manager" />
        <EventID Qualifiers="49152">7034</EventID>
        <Version>0</Version>
        <Level>2</Level>
        <Task>0</Task>
        <Opcode>0</Opcode>
        <Keywords>0x80000000000000</Keywords>
        <TimeCreated SystemTime="2009-02-15T09:46:08.000Z" />
        <EventRecordID>12861</EventRecordID>
        <Correlation />
        <Execution ProcessID="0" ThreadID="0" />
        <Channel>System</Channel>
        <Computer>server</Computer>
        <Security />
      </System>
      <EventData>
        <Data Name="param1">TVService</Data>
        <Data Name="param2">1</Data>
      </EventData>
    </Event>


    Is this tool going to catch such crashes?

    Is it possible to simply have this tool check whether TV service is running or not (attempt to connect in the way that MP does, or do whatever the tv service configuration app does, or just say is the process there?) and if not, restart it?
    ta
    Ian
     

    Users who are viewing this thread

    Top Bottom