[Plugin] MPCleaner - Deletes images from your thumbs folder that are no longer in use (1 Viewer)

ajs

Development Group
  • Team MediaPortal
  • February 29, 2008
    16,059
    11,141
    Kyiv
    Home Country
    Ukraine Ukraine
    If copulation run daily, then what's the point to check every 5 minutes? We know how many plug-ins work, and we know when it's a new day, what to think about it every 5 minutes? Appropriate to be checked at the start it time operation or not, if not, then wait for сalculated time and then every 5 minutes to check the CPU usage.
     

    m3rcury

    Development Group
  • Team MediaPortal
  • August 12, 2010
    977
    733
    Home Country
    Malta Malta
    If copulation run daily, then what's the point to check every 5 minutes? We know how many plug-ins work, and we know when it's a new day, what to think about it every 5 minutes? Appropriate to be checked at the start it time operation or not, if not, then wait for сalculated time and then every 5 minutes to check the CPU usage.

    ajs, the plugin is doing exactly what you are saying. What is the problem?
     

    ajs

    Development Group
  • Team MediaPortal
  • February 29, 2008
    16,059
    11,141
    Kyiv
    Home Country
    Ukraine Ukraine
    Every 5 minutes, there is a record in the log file :(

    Code:
    2013-04-02 23:05:58.375000 [Info.][(26)]: MPCleaner: process plugin last run on 02.04.2013 03:11:29
    2013-04-02 23:05:58.375000 [Info.][(26)]: MPCleaner: process plugin configured to run daily.
    2013-04-02 23:05:59.390625 [Info.][(26)]: MPCleaner: process plugin configured to run when CPU utilisation is less than 35%. CPU currently at 5%
    2013-04-02 23:05:59.406250 [Info.][(26)]: MPCleaner: process plugin execution skipped.
    2013-04-02 23:05:59.406250 [Info.][(26)]: MPCleaner: process plugin complete.
    2013-04-02 23:05:59.421875 [Info.][(26)]: MPCleaner: process plugin sleeping 300 seconds.....
    2013-04-02 23:10:59.437500 [Info.][(26)]: MPCleaner: process plugin last run on 02.04.2013 03:11:29
    2013-04-02 23:10:59.437500 [Info.][(26)]: MPCleaner: process plugin configured to run daily.
    2013-04-02 23:11:00.453125 [Info.][(26)]: MPCleaner: process plugin configured to run when CPU utilisation is less than 35%. CPU currently at 4%
    2013-04-02 23:11:00.468750 [Info.][(26)]: MPCleaner: process plugin execution skipped.
    2013-04-02 23:11:00.468750 [Info.][(26)]: MPCleaner: process plugin complete.
    2013-04-02 23:11:00.484375 [Info.][(26)]: MPCleaner: process plugin sleeping 300 seconds.....
    2013-04-02 23:16:00.500000 [Info.][(26)]: MPCleaner: process plugin last run on 02.04.2013 03:11:29
    2013-04-02 23:16:00.500000 [Info.][(26)]: MPCleaner: process plugin configured to run daily.
    2013-04-02 23:16:01.515625 [Info.][(26)]: MPCleaner: process plugin configured to run when CPU utilisation is less than 35%. CPU currently at 5%
    2013-04-02 23:16:01.531250 [Info.][(26)]: MPCleaner: process plugin execution skipped.
    2013-04-02 23:16:01.531250 [Info.][(26)]: MPCleaner: process plugin complete.
    2013-04-02 23:16:01.546875 [Info.][(26)]: MPCleaner: process plugin sleeping 300 seconds.....
    2013-04-02 23:21:01.562500 [Info.][(26)]: MPCleaner: process plugin last run on 02.04.2013 03:11:29
    2013-04-02 23:21:01.578125 [Info.][(26)]: MPCleaner: process plugin configured to run daily.
    2013-04-02 23:21:02.578125 [Info.][(26)]: MPCleaner: process plugin configured to run when CPU utilisation is less than 35%. CPU currently at 5%
    2013-04-02 23:21:02.593750 [Info.][(26)]: MPCleaner: process plugin execution skipped.
    2013-04-02 23:21:02.609375 [Info.][(26)]: MPCleaner: process plugin complete.
    2013-04-02 23:21:02.609375 [Info.][(26)]: MPCleaner: process plugin sleeping 300 seconds.....
     

    m3rcury

    Development Group
  • Team MediaPortal
  • August 12, 2010
    977
    733
    Home Country
    Malta Malta
    Every 5 minutes, there is a record in the log file :(

    Code:
    2013-04-02 23:05:58.375000 [Info.][(26)]: MPCleaner: process plugin last run on 02.04.2013 03:11:29
    2013-04-02 23:05:58.375000 [Info.][(26)]: MPCleaner: process plugin configured to run daily.
    2013-04-02 23:05:59.390625 [Info.][(26)]: MPCleaner: process plugin configured to run when CPU utilisation is less than 35%. CPU currently at 5%
    2013-04-02 23:05:59.406250 [Info.][(26)]: MPCleaner: process plugin execution skipped.
    2013-04-02 23:05:59.406250 [Info.][(26)]: MPCleaner: process plugin complete.
    2013-04-02 23:05:59.421875 [Info.][(26)]: MPCleaner: process plugin sleeping 300 seconds.....
    2013-04-02 23:10:59.437500 [Info.][(26)]: MPCleaner: process plugin last run on 02.04.2013 03:11:29
    2013-04-02 23:10:59.437500 [Info.][(26)]: MPCleaner: process plugin configured to run daily.
    2013-04-02 23:11:00.453125 [Info.][(26)]: MPCleaner: process plugin configured to run when CPU utilisation is less than 35%. CPU currently at 4%
    2013-04-02 23:11:00.468750 [Info.][(26)]: MPCleaner: process plugin execution skipped.
    2013-04-02 23:11:00.468750 [Info.][(26)]: MPCleaner: process plugin complete.
    2013-04-02 23:11:00.484375 [Info.][(26)]: MPCleaner: process plugin sleeping 300 seconds.....
    2013-04-02 23:16:00.500000 [Info.][(26)]: MPCleaner: process plugin last run on 02.04.2013 03:11:29
    2013-04-02 23:16:00.500000 [Info.][(26)]: MPCleaner: process plugin configured to run daily.
    2013-04-02 23:16:01.515625 [Info.][(26)]: MPCleaner: process plugin configured to run when CPU utilisation is less than 35%. CPU currently at 5%
    2013-04-02 23:16:01.531250 [Info.][(26)]: MPCleaner: process plugin execution skipped.
    2013-04-02 23:16:01.531250 [Info.][(26)]: MPCleaner: process plugin complete.
    2013-04-02 23:16:01.546875 [Info.][(26)]: MPCleaner: process plugin sleeping 300 seconds.....
    2013-04-02 23:21:01.562500 [Info.][(26)]: MPCleaner: process plugin last run on 02.04.2013 03:11:29
    2013-04-02 23:21:01.578125 [Info.][(26)]: MPCleaner: process plugin configured to run daily.
    2013-04-02 23:21:02.578125 [Info.][(26)]: MPCleaner: process plugin configured to run when CPU utilisation is less than 35%. CPU currently at 5%
    2013-04-02 23:21:02.593750 [Info.][(26)]: MPCleaner: process plugin execution skipped.
    2013-04-02 23:21:02.609375 [Info.][(26)]: MPCleaner: process plugin complete.
    2013-04-02 23:21:02.609375 [Info.][(26)]: MPCleaner: process plugin sleeping 300 seconds.....

    ajs, that is just the plugin waking up after the 5 minutes you set to the trigger to check if there was a date change. Since this is not the case, it goes back to sleep.
     

    ajs

    Development Group
  • Team MediaPortal
  • February 29, 2008
    16,059
    11,141
    Kyiv
    Home Country
    Ukraine Ukraine
    I understand what makes a plugin, I do not understand why he does it, if we know that he worked 2/4/2013 3:11:29, so if I ran a mediaportal at 20:00 the plug must not sleep five minutes and at least seven hours, then every 5 minutes to poll CPU utilization.
    And as soon as loading reduced below a certain threshold, the plugin must work and go to sleep for at least 24 hours. And so the circle.
     
    Last edited:

    m3rcury

    Development Group
  • Team MediaPortal
  • August 12, 2010
    977
    733
    Home Country
    Malta Malta
    ajs, understood what you want to arrive to. Will see when to incorporate the enhancement.
     

    ajs

    Development Group
  • Team MediaPortal
  • February 29, 2008
    16,059
    11,141
    Kyiv
    Home Country
    Ukraine Ukraine
    Thank you, I'll wait, and then log entries crowded, uncomfortable and then watch it. And so it would be logical ...
     

    ajs

    Development Group
  • Team MediaPortal
  • February 29, 2008
    16,059
    11,141
    Kyiv
    Home Country
    Ukraine Ukraine
    Today, like start, end and progress but I do not see :( Is this normal?

    Code:
    2013-04-03 20:51:31.578125 [Info.][MPMain(1)]: Main: MediaPortal v1.3.0.0 is starting up on Windows XP ( Service Pack 3 ) [5.1.2600.196608]
    2013-04-03 20:51:31.578125 [Info.][MPMain(1)]: Build: 1.3.0.0
    ...
    2013-04-03 20:52:19.843750 [Info.][MPMain(1)]:  Load plugins from : C:\Program Files\Team MediaPortal\MediaPortal\Plugins\process\MPCleaner.dll
    2013-04-03 20:52:52.031250 [Info.][(29)]: MPCleaner: process plugin initialisation.
    2013-04-03 20:52:52.031250 [Info.][(29)]: MPCleaner: process plugin last run on 02.04.2013 20:11:29
    2013-04-03 20:52:52.046875 [Info.][(29)]: MPCleaner: process plugin configured to run daily.
    2013-04-03 20:52:56.750000 [Info.][(29)]: MPCleaner: process plugin configured to run when CPU utilisation is less than 15%. CPU currently at 62%
    2013-04-03 20:52:56.812500 [Info.][(29)]: MPCleaner: process plugin execution skipped.
    2013-04-03 20:52:56.812500 [Info.][(29)]: MPCleaner: process plugin complete.
    2013-04-03 20:52:56.828125 [Info.][(29)]: MPCleaner: process plugin sleeping 900 seconds.....
    2013-04-03 21:07:56.828125 [Info.][(29)]: MPCleaner: process plugin last run on 02.04.2013 20:11:29
    2013-04-03 21:07:56.843750 [Info.][(29)]: MPCleaner: process plugin configured to run daily.
    2013-04-03 21:07:57.859375 [Info.][(29)]: MPCleaner: process plugin configured to run when CPU utilisation is less than 15%. CPU currently at 9%
    2013-04-03 21:07:57.859375 [Info.][(29)]: MPCleaner: process plugin starting execution immediately.
    2013-04-03 21:07:58.171875 [Info.][(29)]: MPCleaner: processing movingpictures - start.
    2013-04-03 21:07:58.484375 [Info.][(29)]: MPCleaner: processing C:\Documents and Settings\All Users\Application Data\Team MediaPortal\MediaPortal\Thumbs\MovingPictures\Covers\FullSize - start
    2013-04-03 21:07:58.500000 [Info.][(29)]: MPCleaner: processing C:\Documents and Settings\All Users\Application Data\Team MediaPortal\MediaPortal\Thumbs\MovingPictures\Covers\FullSize - complete. Images deleted permanently: 0
    2013-04-03 21:07:58.515625 [Info.][(29)]: MPCleaner: processing C:\Documents and Settings\All Users\Application Data\Team MediaPortal\MediaPortal\Thumbs\MovingPictures\Covers\Thumbs - start
    2013-04-03 21:07:58.515625 [Info.][(29)]: MPCleaner: processing C:\Documents and Settings\All Users\Application Data\Team MediaPortal\MediaPortal\Thumbs\MovingPictures\Covers\Thumbs - complete. Images deleted permanently: 0
    2013-04-03 21:07:58.531250 [Info.][(29)]: MPCleaner: processing C:\Documents and Settings\All Users\Application Data\Team MediaPortal\MediaPortal\Thumbs\MovingPictures\Backdrops\FullSize - start
    2013-04-03 21:07:58.546875 [Info.][(29)]: MPCleaner: processing C:\Documents and Settings\All Users\Application Data\Team MediaPortal\MediaPortal\Thumbs\MovingPictures\Backdrops\FullSize - complete. Images deleted permanently: 0
    2013-04-03 21:07:58.562500 [Info.][(29)]: MPCleaner: processing movingpictures - complete.
    2013-04-03 21:07:58.578125 [Info.][(29)]: MPCleaner: processing tvseries - start.
    ...
    2013-04-03 23:28:37.421875 [Info.][(65)]: planescene:PresentImage() frame:0 enabled:True allowed:False
    2013-04-03 23:28:41.171875 [Info.][(65)]: planescene:PresentImage() frame:0 enabled:True allowed:False
     

    ajs

    Development Group
  • Team MediaPortal
  • February 29, 2008
    16,059
    11,141
    Kyiv
    Home Country
    Ukraine Ukraine
    How strange plugin works, I did grep analyse.log, here is the result:
    Code:
    MediaPortal.log
    2013-04-09 19:35:48.750000 [Info.][MPMain(1)]:  Load plugins from : C:\Program Files\Team MediaPortal\MediaPortal\Plugins\process\MPCleaner.dll
    2013-04-09 19:36:54.765625 [Info.][(37)]: MPCleaner: process plugin initialisation.
    2013-04-09 19:36:54.921875 [Info.][(37)]: MPCleaner: process plugin last run on 02.04.2013 20:11:29
    2013-04-09 19:36:54.937500 [Info.][(37)]: MPCleaner: process plugin configured to run daily.
    2013-04-09 19:37:06.984375 [Info.][(37)]: MPCleaner: process plugin configured to run when CPU utilisation is less than 15%. CPU currently at 29%
    2013-04-09 19:37:07.093750 [Info.][(37)]: MPCleaner: process plugin execution skipped.
    2013-04-09 19:37:07.093750 [Info.][(37)]: MPCleaner: process plugin complete.
    2013-04-09 19:37:07.109375 [Info.][(37)]: MPCleaner: process plugin sleeping 900 seconds.....
    2013-04-09 19:52:07.109375 [Info.][(37)]: MPCleaner: process plugin last run on 02.04.2013 20:11:29
    2013-04-09 19:52:07.125000 [Info.][(37)]: MPCleaner: process plugin configured to run daily.
    2013-04-09 19:52:08.140625 [Info.][(37)]: MPCleaner: process plugin configured to run when CPU utilisation is less than 15%. CPU currently at 7%
    2013-04-09 19:52:08.156250 [Info.][(37)]: MPCleaner: process plugin starting execution immediately.
    2013-04-09 19:52:08.421875 [Info.][(37)]: MPCleaner: processing movingpictures - start.
    2013-04-09 19:52:09.015625 [Info.][(37)]: MPCleaner: processing C:\Documents and Settings\All Users\Application Data\Team MediaPortal\MediaPortal\Thumbs\MovingPictures\Covers\FullSize - start
    2013-04-09 19:52:09.031250 [Info.][(37)]: MPCleaner: processing C:\Documents and Settings\All Users\Application Data\Team MediaPortal\MediaPortal\Thumbs\MovingPictures\Covers\FullSize - complete. Images deleted permanently: 0
    2013-04-09 19:52:09.046875 [Info.][(37)]: MPCleaner: processing C:\Documents and Settings\All Users\Application Data\Team MediaPortal\MediaPortal\Thumbs\MovingPictures\Covers\Thumbs - start
    2013-04-09 19:52:09.046875 [Info.][(37)]: MPCleaner: processing C:\Documents and Settings\All Users\Application Data\Team MediaPortal\MediaPortal\Thumbs\MovingPictures\Covers\Thumbs - complete. Images deleted permanently: 0
    2013-04-09 19:52:09.062500 [Info.][(37)]: MPCleaner: processing C:\Documents and Settings\All Users\Application Data\Team MediaPortal\MediaPortal\Thumbs\MovingPictures\Backdrops\FullSize - start
    2013-04-09 19:52:09.062500 [Info.][(37)]: MPCleaner: processing C:\Documents and Settings\All Users\Application Data\Team MediaPortal\MediaPortal\Thumbs\MovingPictures\Backdrops\FullSize - complete. Images deleted permanently: 0
    2013-04-09 19:52:09.078125 [Info.][(37)]: MPCleaner: processing movingpictures - complete.
    2013-04-09 19:52:09.093750 [Info.][(37)]: MPCleaner: processing tvseries - start.
    ...
    tail:
    Code:
    2013-04-09 23:42:47.640625 [Info.][RefreshWorker(59)]: TextureManager: LoadGraphic - invalid thumb(C:\Documents and Settings\All Users\Application Data\Team MediaPortal\MediaPortal\Thumbs\Skin FanArt\Scraper\music\otis redding (56037).jpg)
    2013-04-09 23:42:48.015625 [Info.][RefreshWorker(59)]: TextureManager: LoadGraphic - invalid thumb(C:\Documents and Settings\All Users\Application Data\Team MediaPortal\MediaPortal\Thumbs\Fan Art\fanart\original\79349-2.jpg)
    2013-04-09 23:43:49.750000 [Info.][RefreshWorker(89)]: TextureManager: LoadGraphic - invalid thumb(C:\Documents and Settings\All Users\Application Data\Team MediaPortal\MediaPortal\Thumbs\Skin FanArt\Scraper\music\elvis presley (37923).jpg)

    Where MPCleaner finish?
     

    m3rcury

    Development Group
  • Team MediaPortal
  • August 12, 2010
    977
    733
    Home Country
    Malta Malta
    How strange plugin works, I did grep analyse.log, here is the result:
    Code:
    MediaPortal.log
    2013-04-09 19:35:48.750000 [Info.][MPMain(1)]:  Load plugins from : C:\Program Files\Team MediaPortal\MediaPortal\Plugins\process\MPCleaner.dll
    2013-04-09 19:36:54.765625 [Info.][(37)]: MPCleaner: process plugin initialisation.
    2013-04-09 19:36:54.921875 [Info.][(37)]: MPCleaner: process plugin last run on 02.04.2013 20:11:29
    2013-04-09 19:36:54.937500 [Info.][(37)]: MPCleaner: process plugin configured to run daily.
    2013-04-09 19:37:06.984375 [Info.][(37)]: MPCleaner: process plugin configured to run when CPU utilisation is less than 15%. CPU currently at 29%
    2013-04-09 19:37:07.093750 [Info.][(37)]: MPCleaner: process plugin execution skipped.
    2013-04-09 19:37:07.093750 [Info.][(37)]: MPCleaner: process plugin complete.
    2013-04-09 19:37:07.109375 [Info.][(37)]: MPCleaner: process plugin sleeping 900 seconds.....
    2013-04-09 19:52:07.109375 [Info.][(37)]: MPCleaner: process plugin last run on 02.04.2013 20:11:29
    2013-04-09 19:52:07.125000 [Info.][(37)]: MPCleaner: process plugin configured to run daily.
    2013-04-09 19:52:08.140625 [Info.][(37)]: MPCleaner: process plugin configured to run when CPU utilisation is less than 15%. CPU currently at 7%
    2013-04-09 19:52:08.156250 [Info.][(37)]: MPCleaner: process plugin starting execution immediately.
    2013-04-09 19:52:08.421875 [Info.][(37)]: MPCleaner: processing movingpictures - start.
    2013-04-09 19:52:09.015625 [Info.][(37)]: MPCleaner: processing C:\Documents and Settings\All Users\Application Data\Team MediaPortal\MediaPortal\Thumbs\MovingPictures\Covers\FullSize - start
    2013-04-09 19:52:09.031250 [Info.][(37)]: MPCleaner: processing C:\Documents and Settings\All Users\Application Data\Team MediaPortal\MediaPortal\Thumbs\MovingPictures\Covers\FullSize - complete. Images deleted permanently: 0
    2013-04-09 19:52:09.046875 [Info.][(37)]: MPCleaner: processing C:\Documents and Settings\All Users\Application Data\Team MediaPortal\MediaPortal\Thumbs\MovingPictures\Covers\Thumbs - start
    2013-04-09 19:52:09.046875 [Info.][(37)]: MPCleaner: processing C:\Documents and Settings\All Users\Application Data\Team MediaPortal\MediaPortal\Thumbs\MovingPictures\Covers\Thumbs - complete. Images deleted permanently: 0
    2013-04-09 19:52:09.062500 [Info.][(37)]: MPCleaner: processing C:\Documents and Settings\All Users\Application Data\Team MediaPortal\MediaPortal\Thumbs\MovingPictures\Backdrops\FullSize - start
    2013-04-09 19:52:09.062500 [Info.][(37)]: MPCleaner: processing C:\Documents and Settings\All Users\Application Data\Team MediaPortal\MediaPortal\Thumbs\MovingPictures\Backdrops\FullSize - complete. Images deleted permanently: 0
    2013-04-09 19:52:09.078125 [Info.][(37)]: MPCleaner: processing movingpictures - complete.
    2013-04-09 19:52:09.093750 [Info.][(37)]: MPCleaner: processing tvseries - start.
    ...
    tail:
    Code:
    2013-04-09 23:42:47.640625 [Info.][RefreshWorker(59)]: TextureManager: LoadGraphic - invalid thumb(C:\Documents and Settings\All Users\Application Data\Team MediaPortal\MediaPortal\Thumbs\Skin FanArt\Scraper\music\otis redding (56037).jpg)
    2013-04-09 23:42:48.015625 [Info.][RefreshWorker(59)]: TextureManager: LoadGraphic - invalid thumb(C:\Documents and Settings\All Users\Application Data\Team MediaPortal\MediaPortal\Thumbs\Fan Art\fanart\original\79349-2.jpg)
    2013-04-09 23:43:49.750000 [Info.][RefreshWorker(89)]: TextureManager: LoadGraphic - invalid thumb(C:\Documents and Settings\All Users\Application Data\Team MediaPortal\MediaPortal\Thumbs\Skin FanArt\Scraper\music\elvis presley (37923).jpg)

    Where MPCleaner finish?

    ajs, MPCleaner triggers the cleaning based on the data and time last run, hence if you set the cleaner to run daily at a certain time, and it last ran @ say 19:20, it will kick-off 24hrs from that time. If it is configured to run daily when CPU is below a certain threshold, it will do that once the utilisation is as expected. From logs, it shows that in fact plugin ran successfully.
     

    Users who are viewing this thread

    Top Bottom