pvbrowser / pvb

HMI and SCADA
http://pvbrowser.org
Other
268 stars 152 forks source link

pvbrowser memory and CPU consumption #15

Open gentooza opened 6 years ago

gentooza commented 6 years ago

hi!

In a medium size program, I feel it running slower in time.

My pvserver is keeping low in resources, but pvbrowser is continuously increasing it's consumption of both CPU and RAM.

Is there something to be aware when programming an app?

I took care of using pvDownloadFile only once at program starting for getting all application artwork.

And I think my program has no memory leaks. (I suppose I'd see this memory leaks in server not in pvbrowser client, isn't it?)

Program is not finished so is not still public :-/ if source code is important I'll have to speed up all the process.

thanks!

pvbrowser commented 6 years ago

The code you write yourself becomes part of your pvserver. If your pvserver is keeping low in resources, that should be ok.

The widgets you define will be created within the context of the pvbrowser client. They are managed by Qt. Once you define a new mask the resources occupied by the old mask should be released.

Here valgrind was used to verilfy that handling of resources within pvserver and pvbrowser client should be ok.

Could you send me a small pvserver that shows your issue? If you do so i could check it here.

gentooza commented 6 years ago

hi!

Ok, all this makes sense. I'm cleaning code to accomplish the GPLv3+ license, once done I link it here, ok? thank you very much

cheers

pvbrowser commented 6 years ago

Ok, i am waitung.

gentooza commented 5 years ago

ok,

https://github.com/prointegra/piResiduos

This is my company's Free Libre version of the source code: (as it uses a closed source API for a signature pad WACOM in field version)

I'm sorry as program has only Spanish GUI, and is ugly quickly coded Xd

As server remains ok in resources consumption, I assume I do something wrong with images loading or something else in pvbrowser side.

thanks a lot!

gentooza commented 5 years ago

I closed by mistake! sorry!

gentooza commented 5 years ago

I think, I have to test it more, the problem is I've compiled a qt5 based server, and it's being executed with a QT4 based pvbrowser client. cheers