Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14261
Registered: November 2005
Ultimate Member
zsolt wrote on Fri, 04 February 2022 02:12
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?


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
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: CvFlt.cpp does not compile with MSBT__x64
Next Topic: How do I deserialize grouped items into an array or map when they take this form? [solved]
Goto Forum:
  


Current Time: Tue Jun 17 00:38:13 CEST 2025

Total time taken to generate the page: 0.03872 seconds