Hello! There are two machines with Windows and Linux (Debian), QT Creator and my application written in Qt. The problem is that on the Linux machine, the running application eats about 800 MB, and the Qt Creator running - 4 GB, while on Windows the application takes about 30 MB and the environment is 140 MB. Since the application was developed under Linux, the issue of reducing memory consumption is very serious. Qt 5.5 is used, on MinGW compiler on Windows. Can anyone come across a similar, tell me, please, what to do?
- First you need to understand what your application is doing. Maybe it pinches video files. And under Windows, they gave him small five-minute cartoons, and under Linux, hourly 4k. - KoVadim
- Your case is too private. Make a memory monitor. Keep track of how many objects you have and how much memory they eat. Perhaps you have a hidden memory leak. - nick_n_a
- Thank you for the answers. The application receives textual information from other computers over the network. I allocate memory for saving input information once once the application is created and then only overwrite it, freeing it when I exit the application. I worked through the leakage option, but the memory consumption does not increase during operation, the memory starts up when the application is started. - Alena
- I created an empty gui project, on Windows it takes 12 MB, on Linux 400 = (. Maybe it's in building Qt for different OS? Or you can try changing qmake keys when building a project - Alena
- And you are not a debugger on Linux, but are you using the release version on Windows? - gil9red
|