Home » U++ Library support » U++ Core » Memory management question
Memory management question [message #58064] |
Fri, 04 February 2022 02:12 |
zsolt
Messages: 698 Registered: December 2005 Location: Budapest, Hungary
|
Contributor |
|
|
I 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?
[Updated on: Fri, 04 February 2022 02:14] Report message to a moderator
|
|
|
Re: Memory management question [message #58075 is a reply to message #58064] |
Tue, 08 February 2022 00:16 |
|
mirek
Messages: 13984 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: Sat Jun 15 22:57:41 CEST 2024
Total time taken to generate the page: 0.01556 seconds
|