Nurullah Akkaya
2004-05-09 00:50:15 UTC
i have a multithreaded web server. i start with 5 worker threads and
if i need more workers i create more threads and after certain amounth
of work i kill them my problem is when the programme first lauches it
starts with 0.3% of all memory but when i stress test it memory usage
grows and grows threads are detached but the momery doesnt get release
it only grows more and more my first action was to check my
application if i disable the thread creation and use the server with 5
threads there is no memory leak but when i start creating and killing
threads memory leak occurs i exit thread with pthread_exit and i have
another thread that deletes the objects used in the tread. my system
is slackware 9.1 gcc 3.3.3 kernel 2.4.26.
thx...
if i need more workers i create more threads and after certain amounth
of work i kill them my problem is when the programme first lauches it
starts with 0.3% of all memory but when i stress test it memory usage
grows and grows threads are detached but the momery doesnt get release
it only grows more and more my first action was to check my
application if i disable the thread creation and use the server with 5
threads there is no memory leak but when i start creating and killing
threads memory leak occurs i exit thread with pthread_exit and i have
another thread that deletes the objects used in the tread. my system
is slackware 9.1 gcc 3.3.3 kernel 2.4.26.
thx...