Try this w/ gcc -o memleak memleak.c; ./memleak
No free() after malloc() should give memory leak, isn't it?
postgresql have problems aswell, imho when issue swapoff then top
should not show that its still using swap filesystem for that threads
in top, if this happens its imho sign of kernel problem, or really mem leak
You can take nearly any JAVA app. Java heap usualy exhausted...
Sysop: | digital man |
---|---|
Location: | Riverside County, California |
Users: | 1,024 |
Nodes: | 17 (0 / 17) |
Uptime: | 01:14:18 |
Calls: | 503,341 |
Calls today: | 10 |
Files: | 107,041 |
D/L today: |
30,376 files (2,088M bytes) |
Messages: | 441,544 |
Posted today: | 4 |