VPS Trial - Memory Issues (cache)

vps

#1

I loaded JJ’s VPS memory program on the VPS trial server and would like to know if this is due to visibility. I checked via top command I don’t see any huge load issues. I do see a lot of bots hitting me…

I have no idea how to get this data via a command. I use to get it via stats, but DH wont let me see my stats… some internal error.

102 174.129.84.5
103 54.234.30.222
104 218.93.205.112
104 67.142.182.21
108 174.129.59.59
110 199.15.234.222
110 222.187.222.45
114 212.59.28.9
115 23.20.112.168
115 60.36.84.94
116 213.55.85.89
117 176.9.16.210
119 24.168.226.147
123 46.119.119.17
124 107.20.26.153
124 94.228.34.210
125 206.255.161.33
131 67.227.241.57
134 46.119.124.148
136 222.187.223.202
138 1.202.218.72
138 108.181.109.47
138 218.93.205.100
138 222.187.222.119
139 50.19.154.106
141 23.22.51.157
143 50.17.88.103
143 96.255.32.25
144 218.6.15.69
150 93.89.218.202
154 107.22.52.252
156 178.255.215.83
163 208.67.19.67
167 184.63.38.126
170 1.202.219.8
173 23.23.67.40
173 69.64.173.238
174 69.64.173.130
175 98.137.207.141
179 63.135.84.68
192 98.160.247.241
196 23.23.52.146
199 208.115.113.84
200 107.22.87.15
209 65.55.213.67
210 109.73.160.17
216 117.21.227.43
224 107.22.18.99
236 208.115.111.68
254 94.228.34.248
284 218.30.103.141
288 64.111.104.20
292 67.142.168.23
315 23.20.228.85
340 89.145.95.2
486 184.57.38.62
739 91.207.7.17
1046 75.100.18.81
1591 65.55.24.219
1602 157.55.32.94
1698 157.56.229.23
1699 157.55.33.98
1700 157.55.34.168
1757 157.55.32.190
1773 157.55.33.40
1820 157.55.32.153
2573 131.191.17.125
4489 157.55.32.116
7952 66.249.73.174
9425 67.205.9.68
14524 199.21.99.110
29723 66.249.73.89

any thoughts on how I can truly understand my memory usage.


#2

Hi foghat, we have a wiki article that’ll be sure to help you out:


More specifically:

You’ll need to ssh, then cd to /logs/domain.com/http
Then tail -10000 access.log| awk ‘{print $1}’ | sort | uniq -c |sort -n to see the last 10k hits

If you’re concerned about how to lower your usage, this article can help as well:

Depending on the type of site[s] you have, we might be able to help with more suggestions if you need it. Don’t hesitate to ask! Or submit a ticket from your panel and our support team will jump right on it. Thanks! :slight_smile:


#3

Thank you for the info, but I have asked and this is where they told me to go for more help. I may have to hire staff to look at this. Ive read several files on wiki, but I will read some more.

I seem to be using 3.75G of cache ram and I don’t know why…


#4

Have you investigated possible causes within any web applications you’re using, like WordPress or Joomla? Third-party themes and plugins/modules can sometimes cause slowness or compatibility issues, especially when out of date. Or if you notice any strange files or activity you don’t recognize, please contact support again so that our security team can give your account a quick scan and let you know what they find. In the above example you gave, you should indeed take some action to slow the usage caused by those bots hitting your sites: http://wiki.dreamhost.com/Bots_spiders_and_crawlers


#5

Honestly, I really don’t like contacting support. They have stated it’s outside of there scope of work. It would be nice to see a program that can calculate the total ram usage at the time of the command. All I want to know is why cache is so high. Wordpress is georgehargitt, I have vbuilletin on backyardgardener and wordpress which are php hogs, but i selected to all the fun stuff as defined on enable fastcgi and xcache.

for k in ls -S /home/*/logs/*/http/access.log; do wc -l $k |
sort -r -n; done

139386 /home/duncpine/logs/backyardgardener.com/http/access.
14270 /home/dunpine/logs/canusayhello.com/http/access.log
3642 /home/dunpine/logs/duncanmcalpine.com/http/access.log
4249 /home/dunlpine/logs/plantideas.com/http/access.log
452 /home/dunlpine/logs/georgehargitt.com/http/access.log
210 /home/dunlpine/logs/judestravels.com/http/access.log

[ps147104]$ awk ‘{print$7}’ access.log|cut -d? -f1|sort|uniq -c|sort -nk1|tail -n10
3120 /images/306x21xwf.jpg.pagespeed.ic.kgoFXdeeKr.jpg
3240 //images/350x118xmain_02.gif.pagespeed.ic.u9c_qbJFbj.png
3254 /images/150x75xgardening_catalog_150.gif.pagespeed.ic.coQ896lvp6.png
3356 //images/150x75xgardening.150x75.jpg.pagespeed.ic.itJo3YSrR6.jpg
3567 //images/147x44xmain_23.gif.pagespeed.ic.EtO9NyKUTA.png
3581 //images/147x18xmain_08.gif.pagespeed.ic.pZjNJv6Sms.png
3584 //images/147x43xmain_27.gif.pagespeed.ic.Vk0FBMhXW1.png
3589 //images/147x65xmain_11.gif.pagespeed.ic.xinQkMbprT.png
3597 /images/bac.gif
3646 /images/141x39xmain_05.gif.pagespeed.ic.fF_sEGogkP.png

Snapshot of JJ’s VPS Memory Manager
http://www.duncanmcalpine.com/ram.jpg