Jump to content

Memory Leaks ? Recording Service take about 2 Gb in Ram


dj_guigui

Recommended Posts

Hi,

 

After four or five days of use, the Recording Service take about 2 Gb in ram and don't respond

anymore !

 

A stop and Start of the service lead back to a normal state. Sometime a kill of

the process is required to start the service again !

 

I use WebGrab+Plus to get EPG from Horizon Website and XEPG to import it into Recoding Services !

This work fine but perhaps is the source of the problem ?

 

Can you help me ?

 

Thanks in advance

 

Thierry

 

160822044945449415.jpg

Link to comment

You are using some plugins. Please try to run the RS without them. e.g. by renaming the Plugins folder. Does the problem still occur?

 

Anyway, I will perform some checks for memory leaks in the next days, and I will let you know if I get significant results. I've already found one leak, but it's too small to explain 2 GB RAM consumption. ;)

Link to comment

Hi,

 

The same problem without the Plugin ! It seem that everytime EPG import occurs, the size in Ram Grow. If you move your mouse over Timeline

and information pop-up appears too.

Link to comment
It seem that everytime EPG import occurs, the size in Ram Grow.

 

Where do you see it? In the Windows task manager?

 

If you move your mouse over Timeline and information pop-up appears too.

 

I've checked it with extra code that records memory leaks and displays them when the application terminates. It doesn't find anything in this case, which means, there is no leak, or it happens outside the RS code.

 

Anyway, looks like I have to try EPG import in practice...

Link to comment

Well, it can be quite deceiving unless you have knowledge about the Windows memory management and what the different memory related columns indicate. ;)

 

However, 2 GB are for sure insane. Unfortunately it can be quite a lot that may cause such a huge memory leak. I think it's something that is going on steadily, not an event that is only occuring from time to time. 2 GB in 5 days means almost 300 kB per minute!

Link to comment

@Griga:

If you want to try Xepg, I suggest to use an internet file download as a first try.

This is to avoid any other processes like WebGrabPlus (could that be the problem?) to be involved.

 

Click Add button in Xepg:

 

post-21674-0-42388300-1472083793_thumb.jpg

 

You can use this file (just do some fake pairings) or find another one that fits better to your channels.

You will have to read in the help files (buttons) to learn more about Xepg, sorry.

 

I shall ofcourse be happy to answer any questions you might have.

 

 

@dj_guigui:

 

How do you automate the process?

Please upload your Config.ini file. Remember to delete any personal information (passwords etc.) before upload.

Link to comment

Here also never any memory problems for years. Another idea: What antvirus / security software do you use? Perhaps something that does "sandboxing" or similar and can cause the memory issues?

Link to comment

@dj_guigui:

 

A very simple thing to try is to check

 

Xepg > Options > General > Delete Old Epg prior to import

 

Just to make sure the epg does not add up in RS

------------

You have

 

[Job0]

Grabber=Grab_KevinPato.cmd

 

Please upload this one including any extra files needed to run it.

I have never seen this before, please explain.

Link to comment

It's just a batch file to download a xml that is zipped and then decompress it in order that XEPG can import it !

 

I have change the option to delete prior EPG ! I check and let you know.

 

Thanks for your help.

Grab_KevinPato.cmd.txt

Link to comment

@dj_guigui:

 

One more thing you could try:

 

To rule out that the problem is in a setting/functionallity of the windows task scheduler, I suggest you to try to add Xepg as a process task timer of the Recording Service.

See Help to Automate.

 

To avoid screen output from the grabbers, create vbs files inspired by batNoConsole.vbs and wgNoConsole64.vbs in Xepg Data Folder.

 

This way you can let RS call Xepg at any time, it will not disturb your movie night.

Link to comment

One more thing:

 

Do you put the pc to sleep after the import?

 

In case you use Xepg to do it by a command line like

 

-xGrabThenImport -eHibernate

 

Then try to increase the value

 

Xepg > Options > Recording Service > Pause before Xepg Standby/Hibernate

Link to comment

Hi,

 

Sorry for delay, i was out for the week-end.

 

To answer the question, i do not put the pc to sleep after the import

 

After some testing, i can tell that :

 

Option "Delete Old Epg prior to import" in XEPG don't change anything.

When i came back from week-end, RS was stuck again at about 2 Gb (see "Recording Services2.jpg" attached file). And XEPG can't import EPG anymore (see "Xepg.LOG" attached file).

 

After a restart of the RS and modifying the launch of XEPG to use a process task timer in RS, i can

see this morning that RS has grow up in ram to about 300 Mb (see "Recording Services3.jpg" attached file) but the Xepg log tell that everything is allright (see "Xepg2.LOG" attached file).

 

Now i try to activate this option "ReportMemoryLeaksOnShutdown=1" on Xepg config.ini to see

if something is reported.

 

The next step will perhaps be to give you my xml files to check if they are in a valid format ?

 

At last, in Xepg, can the option to import as Item or Xml Text change something ?

 

Thanks again for your help.

post-148166-0-47974300-1472534655_thumb.jpg

post-148166-0-28358300-1472535075_thumb.jpg

Xepg.LOG

XEPG2.log

post-148166-0-70770200-1472536015_thumb.jpg

Link to comment

I don't see anything wrong in the LOG files.

 

Now i try to activate this option "ReportMemoryLeaksOnShutdown=1" on Xepg config.ini to see

if something is reported.

Then go back to using Windows Task Scheduler to avoid a pc stall.

Well, even if Xepg produces a memory leak then AFAIK windows should clean up that leak since Xepg exits after import. Anyway, it's worth a try. I am not an expert on windows memory management.

 

At last, in Xepg, can the option to import as Item or Xml Text change something ?

No, this is for backward compatibility only and for importing directly into DVBViewer.

 

The next step will perhaps be to give you my xml files to check if they are in a valid format ?

You can test this by temporarely using "XMLTV File Reading Engine" > Microsoft MSXML DOM (see Help).

 

Two more things to try:

 

1) Xepg > Options > Syncronize (general) > Syncronize EPG reception of DVBViewer channels with Xepg pairings (see Help)

 

This is to avoid imported EPG to be mixed up with antenna EPG (could this be the one?).

 

2) To have as few players in action as possible use the same XMLTV File Reading Engine for all grabbers. I suggest OXml SAX.

 

--------

In case the additional testings produces nothing, the files I need are:

The xml files

Pairings.xml

Config.Ini

channels.dat

Link to comment
×
×
  • Create New...