Memory usage console

Started by bdefloo, February 07, 2014, 03:49:47 PM

Previous topic - Next topic

bdefloo

Hi,

I was playing around with the max memory settings for the v1.2.11 NetXMS Console when I noticed something peculiar:

My console is usually using around 240MB out of ~600MB allocated heap space (as seen in the status bar of the console). If I reduce the -Xmx parameter from 1024m to 512m This is 240MB out of ~450MB.

I tried reducing it further to 256m, this caused an error to pop up saying it failed to load the MIB file, but the console then only used 60MB! Further tests reveal that if I rename the mib file on the server, and start the console with an adequate heap size (eg 1024MB), only 80-100MB is used.

Is the MIB file integrally loaded and expanded into the heap every time the console is started? My MIB file is only 13MB on disk, but appears to account for 100+ MB of used heap space.

If so, isn't this a bit wasteful of resources? After all, I can't imagine most people use the MIB browser daily. Maybe it could be loaded when opening the MIB browser tab?

Thanks for your input!

Kind regards,
bdefloo

Victor Kirhenshtein

Hi!

My console normally uses around 100MB, but my MIB file is much smaller. I agree with you that MIB file can be loaded into memory on first access, not after start. Will change it.

Best regards,
Victor