Home » U++ Library support » U++ Core » Memory management question
Re: Memory management question [message #58075 is a reply to message #58064] |
Tue, 08 February 2022 00:16   |
 |
mirek
Messages: 14261 Registered: November 2005
|
Ultimate Member |
|
|
zsolt wrote on Fri, 04 February 2022 02:12I have a HTTP server app, and after some running, I can see a huge (1.2 GB) virtual memory usage, but the physical memory usage is at a normal level (10 MB).
The output of ps command:
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME
www-data 2769421 0.0 0.4 1210720 10156 ? Ssl 2021 22:10
The output of the free command seems to be OK:
total used free shared buff/cache available
Mem: 2035160 292508 292132 55176 1450520 1499604
Swap: 1048572 6500 1042072
Is that normal, or I have some memory leak?
What can be the cause of it?
It can be leak, it can be fragmentation.
I suggest dumping MemoryProfile from time to time to find out.
Does it grow from 1.2G further? What is "some running"? Hours, days, weeks, how many requests?
Mirek
|
|
|
Goto Forum:
Current Time: Tue Jun 17 00:38:13 CEST 2025
Total time taken to generate the page: 0.03872 seconds
|