Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How could I check to see if the web server is experiencing the effects of a memory leak?

0
Posted

How could I check to see if the web server is experiencing the effects of a memory leak?

0

Restart your server. Look at the process “size” using either “top” or “ps”. The top command gives the added advantage of having a threads column (THR) which will show you the number of active threads. The number of threads should increase based upon the number of simultaneous requests Now hit the server with a load of say 50 concurrent users for X times and for Y minutes. You should see the process size increase in top. Let the server idle for 5 minutes to let garbage collection do its cleanup. Hit the server with the same load again. You should NOT see a dramatic increase in size as you did in the beginning. THere should not be a huge increase in size but a small increase. Let the server idle again for 5 minutes. Hit the server again but with a lower load than the original- say- half the size. This time, you should not see any increase in the size. Repeat the test over and over. If there is a memory leak, then the size will consistently grow. If so, look at the system config, check SW

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123