[pve-devel] memory leak in PVE/QMPClient.pm

Stefan Priebe - Profihost AG s.priebe at profihost.ag
Mon Oct 29 13:01:17 CET 2012


Am 29.10.2012 12:57, schrieb Dietmar Maurer:
> fixed - please test again (sorry)

My test was too short. Does not work to me:

Oct 29 12:59:09 cloud1-1202 pvestatd[5868]: starting server
Oct 29 12:59:10 cloud1-1202 pvestatd[5868]: restarting server after 2 
cycles to reduce memory usage (free 35692544 (7036928) bytes)
Oct 29 12:59:10 cloud1-1202 pvestatd[5868]: server shutdown (restart)
Oct 29 12:59:11 cloud1-1202 pvestatd[5868]: restarting server
Oct 29 12:59:21 cloud1-1202 pvestatd[5868]: restarting server after 2 
cycles to reduce memory usage (free 37605376 (5599232) bytes)
Oct 29 12:59:21 cloud1-1202 pvestatd[5868]: server shutdown (restart)
Oct 29 12:59:21 cloud1-1202 pvestatd[5868]: restarting server
Oct 29 12:59:31 cloud1-1202 pvestatd[5868]: restarting server after 2 
cycles to reduce memory usage (free 37605376 (5595136) bytes)
Oct 29 12:59:31 cloud1-1202 pvestatd[5868]: server shutdown (restart)
Oct 29 12:59:32 cloud1-1202 pvestatd[5868]: restarting server
Oct 29 12:59:42 cloud1-1202 pvestatd[5868]: restarting server after 2 
cycles to reduce memory usage (free 37605376 (5599232) bytes)
Oct 29 12:59:42 cloud1-1202 pvestatd[5868]: server shutdown (restart)
Oct 29 12:59:42 cloud1-1202 pvestatd[5868]: restarting server

I've seen that it takes up to 10 cycles to have a constant memory size. 
I think this is due to the fact that perls garbage collection is not 
running every after each cycle.

Stefan



More information about the pve-devel mailing list