memory

Asked by jian

Hi, Alex

These days, I am testing 1.6.2 on Win8.1 with IE11, I tested a layout which has only one region, and one media image in this region, the duration is 10s.

I observed the memory was increasing slowly.

Do you think it's necessary to flush the stat and trace, etc. periodically? I tried to do that, added
// Flush the stats
            _statLog.Flush();

            // Write the CacheManager to disk
            _cacheManager.WriteCacheManager();

            // Flush the logs
            Trace.Flush();

in function media_DurationElapsedEvent, it seems better.

So is it necessary? and is it too frequently to do the flush?

Thanks.
Jianjian

Question information

Language:
English Edit question
Status:
Answered
For:
Xibo Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Dan Garner (dangarner) said :
#1

Hi Jianjian,

The stats are indeed held in memory, which would increase memory over time... but they are flushed automatically after they reach a certain size. I don't believe this should be causing massive increases in memory... what sort of memory increases were you noticing?

This setting can be modified in the XiboClient.exe.config file in the installation directly, it is called StatsFlushCount, it defaults to 50 records.

The Trace.Flush could actually be the problem - it is only flushed when the application closes. My knee jerk reaction is that AutoFlush should be set to true in Program.cs, Line 46.

Can you try that and see?

Revision history for this message
jian (huangjian0209) said :
#2

Thanks Dan

I use Windows task manager to monitor the memory.

I will try your suggestion today, and let you know the result.

Thanks.
Jianjian

Revision history for this message
jian (huangjian0209) said :
#3

Hi, Dan

I tested it today from 8:40 AM to 4:00PM. I did not change statsflushcount, but set trace autoflush to true.

Hereafter is the memory usage record for xiboclient.
8:40 70.3MB
8:45 68.9
9:00 69.2
9:30 69.5
10:00 69.4
11:00 69.4
11:30 75.1(went back to the default layout, then displayed my scheduled layout)
11:31 74.6
12:00 72.8
13:00 72.7
14:00 72.9
15:00 73.1
16:00 73.0

I will check what kind of memory is increasing later.

After about 2.5 hours, xibo went to default layout, then displayed the correct layout again, at this time, the memory increased. During the 2.5 hours, the memory is stable.

Thanks.
Jianjian

Revision history for this message
mryoung (patz-michael) said :
#4

Hello!

I have the same problem with the .net client on all Windows 8.1 machines.
They run out of ram to an extend, that the machines arent accessible anymore.

Revision history for this message
Dan Garner (dangarner) said :
#5

Jianjian,

Thanks for feeding that back - I think I will create a bug for that and get autoflush set to true in the main build.

Can you help with this problem?

Provide an answer of your own, or ask jian for more information if necessary.

To post a message you must log in.