Hello, i have a vps server and the "kmemsize" and "numtcpsock" are maxing out constantly. On the server there is 7 quite average size sites from forums to ecommerce. But, is there a way to see what site is burning up these resources ?? Need something sorting now as when this happens all the sites go down until i reboot the server! Need step by step as im not very savvy with server stuff.
kmemsize=kernel memory size numtcpsock=no. of tcp sockets Are you running network heavy sites like proxies? That might be saturating your tcp socket allocation. Also, it can be that the vps host has set way too low values for the above fields.
For top command output, you will need to login to your server using SSH. You can use software called putty to login to your server using SSH. After login, just right top and press enter. It will show you current running processes. Kailash
ok, copied the resources...anything out of the ordinary ? Dont run proxy sites.. on the server there is 2 ecommerce sites, 1 image hosting, 2 forums, 1 classifieds
Really need some help on this if possible as im having to keep restarting my server due to all the sites freezing up
hmm, very difficult to pin point what may cause this issue. Have you tried contacting your host? If not, maybe you can give it try and see if they see something you don't. Usually with ecommerce sites, especially with forum sites, I have seen certain files hacked and used for something else. You might want to see which site might be the root cause for this issue and then move from there to other possible areas...
is there a way to pinpoint which domain is causing the problem... if so, can you give us step by step instructions plz Really need to know which sites causing this issues so i can take further action. also my hosts say to run a cron on the server to restart mysql and apache2 every 30 mins....was this good advice or just a fob off ??
Restarting Apache and MySQL every 30 minutes is not a good idea. Tell your host to optimize Apache and MySQL settings (if you have managed service included). Also continuously monitor the load of the server and see is there any spike in the load. Also if you have cPanel control panel, you can check the CPU/Memory usage from WHM. But it will not give you the real time usage. Kailash
Thanks Kailash, Thats what i thougt, but i spoke to support at webfusion and they set up a cron to restart the apache2 and mysql every 30 mins and i was told that would solve the issue. It seems to have sort the numtcpsock issues (it was maxing out the 166 concurrent connections) But the kmemsize is STILL maxing out every day. Do you think the image hosting site is maxing this out ? or does that not use up a lot of kmemsize ??
Chances of number of connections for image hosting is high because people may directly hotlink the images with your site which may increase the number of connections. Kailash
so if they hotlink it uses up one of the connections from my server ? is there a way to stop this ?? Would the image hosting also burn up kmemsize ? Also, is there possibly a way to check which site on the server is using the kmemsize and numtcpsock ?