Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Why increase memory usage of running QApp, after executting Java JAR file in QProcess even if process done?
Forum Updated to NodeBB v4.3 + New Features

Why increase memory usage of running QApp, after executting Java JAR file in QProcess even if process done?

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 124 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    JohnyB
    wrote on 13 Dec 2023, 08:10 last edited by
    #1

    I have a problem with memory usage. This QApplication has commonly around 70 MB memory usage. In app I running many QProcesses (batch processing) in separate thread which executing java JAR file. Each process using from hundreds MB to 2-3 GB RAM. Each process increase app memory usage even if in system monitor its showed as separate process. After all processes finished, is memory usage of app not get back to 70 MB as before batch executed. I suppose that java garbage collector no clean. But why that occupied memory is assign to app from which was called java execution?

    J 1 Reply Last reply 13 Dec 2023, 08:47
    0
    • J JohnyB
      13 Dec 2023, 08:10

      I have a problem with memory usage. This QApplication has commonly around 70 MB memory usage. In app I running many QProcesses (batch processing) in separate thread which executing java JAR file. Each process using from hundreds MB to 2-3 GB RAM. Each process increase app memory usage even if in system monitor its showed as separate process. After all processes finished, is memory usage of app not get back to 70 MB as before batch executed. I suppose that java garbage collector no clean. But why that occupied memory is assign to app from which was called java execution?

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 13 Dec 2023, 08:47 last edited by
      #2

      @JohnyB said in Why increase memory usage of running QApp, after executting Java JAR file in QProcess even if process done?:

      I suppose that java garbage collector no clean

      Has nothing to do with your app as you're running Java apps in other processes.
      At what level does memory consumption stay after running these QProcesses?
      It is normal that freed memory often stays assigned to the application.
      You can also use memory profiling tools like Valgrind.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1

      1/2

      13 Dec 2023, 08:10

      • Login

      • Login or register to search.
      1 out of 2
      • First post
        1/2
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved