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 129 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 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?

    jsulmJ 1 Reply Last reply
    0
    • J JohnyB

      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?

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on 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

      • Login

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