Eric @ EricBess WebHome

Thinking blindly without action, it will be unknowingly become meaningless

Chinese (Simplified) flagItalian flagKorean flagPortuguese flagEnglish flagGerman flagFrench flagSpanish flagJapanese flagArabic flagRussian flagGreek flagDutch flagBulgarian flagCzech flagCroat flagDanish flagFinnish flagHindi flagPolish flagRumanian flagSwedish flagNorwegian flagCatalan flagFilipino flagHebrew flagIndonesian flagLatvian flagLithuanian flagSerbian flagSlovak flagSlovenian flagUkrainian flagVietnamese flag
By N2H

Google Analytics (Google analysis) the use of techniques

Google Analytics is Google's a free web analytics service, since its inception, that is, critically-acclaimed. Google Analytics is very powerful, as long as the page on the site by adding a section of code, the rich will be able to provide detailed reports chart. To provide a more detailed analysis of the project and provide a considerable intuitive chart shows, such as Unique Visitors (Visits, visits, including the return of), Pageviews (See the number of pages), P / V (page view ratio), visit loyalty , visited recently, the visit to the entrance pages, exit pages, each page of the entrance rate, the exit rate, as well as geographical location, maps, an intuitive view, the operating system type of language, the type of browser version, and so on are very detailed and comprehensive statistical analysis of projects, etc. and so on. At the same time, Google Analytics can also give an analysis of the specified URL is a Web site URL, or a main URL, in this URL can also be set up under the 10 sub-URL, that is, this URL also as a domain name or website analysis, given all the statistical data alone.

In addition, Google Analytics and AdWords is highly integrated, you can Adwords pay-per-click PPC in the projects and the flow of traffic analysis to assess the advertising value, given the comprehensive analysis of investment returns.

Registration and use:

Go to https: / / www.google.com/analytics/home/?hl=zh-CN for your Web site registered account.
Access to the tracking code. (Of which _gat._getTracker ( "UA-XXXXXXX-1");) for your

WordPress plug-ins for Google Analytics

Google Analyticator
Option:

UA-XXXXXXX-1 for your

to join the code above.

January 4th, 2008 Posted by eric | WordPress, Web technology | no comments

Performance Monitoring UNIX command-vmstat, sar

vmstat

vmstat 1 5, said T (1) seconds sampling a total of N (5) times the sampling
procs ----------- memory ---------- --- swap - ----- io ---- - system - ---- cpu - ---
r b swpd free buff cache si so bi bo in cs us sy id wa
4 0 173028 46648 8784 276432 10 22 432 597 1142 1117 16 44 40 0
1 0 173028 46648 8784 276432 0 0 0 0 1078 967 3 15 82 0
0 0 173028 46648 8784 276432 0 0 0 0 1063 917 2 15 83 0
1 0 173028 46648 8784 276432 0 0 0 0 1071 946 2 16 82 0
0 0 173028 46648 8784 276432 0 0 0 0 1067 976 3 14 83 0
procs: r (run queue) display is being implemented and the task of waiting for the number of CPU resources. When the value exceeds the number of CPU, there will be a CPU bottleneck.
cpu: idle time often is 0, then the occupier or the system time (cpu sy) is occupied by the time the user (cpu us) twice, the system is facing a lack of cpu resources.
swap: SWAP DISK emergence of virtual memory pages and pages Export Import phenomenon page guide (so) that does not mean that the bottleneck RAM, virtual memory systems often have memory page Export section, but the page to import (si) operation shows the server needs to cpu resources.
io / disk: often not equal to 0, and in the queue b is greater than 3, said io poor performance.

sar

sar for the collection, reports or information on the activities of the preservation system. sar application consists of three components: sar display data, sar1 and sar2 for the collection and preservation of data.
wget-P tar / ftp://194.199.20.114/linux/fedora/core/4/i386/os/Fedora/RPMS/sysstat-5.0.5-9.fc.i386.rpm
rpm-ivh tar/sysstat-5.0.5-9.fc.i386.rpm

Cases: sar-u 1 5, every second test a CPU, a total of five times the average after the count;
sar-r 3 3, every three seconds to see a physical and virtual memory usage, three times the average after the count.

The use of sar1 and sar2, the system can be configured to automatically crawl information and logs, for analysis. Configuration, for example: in / etc / crontab to add the following lines:

kjxu.gif

April 7th, 2007 Posted by eric | Unix / BSD / Linux | no comments

VNC configuration Notes

In fact, VNC configuration is very simple. As long as vncserver running just fine. Running after, it will generate in the home directory. Vnc directory.
vncpasswd modify the password to connect.

However, the default VNC start X-windows is twm, looks a bit ugly, then you can ~ / .vncr / xstartup document amended to read as follows

#! / bin / sh
# Uncomment the following two lines for normal desktop:
# Unset SESSION_MANAGER
# Exec / etc/X11/xinit/xinitrc

[-X / etc / vnc / xstartup] & & exec / etc / vnc / xstartup
[-R $ HOME / .Xresources] & & xrdb $ HOME / .Xresources
xsetroot-solid grey
vncconfig-iconic &
xterm-geometry 80x24 +10 +10-ls-title "$ VNCDESKTOP Desktop" &
export LANG = zh_CN.GB18030
gnome-session &
# twm &

Vnc default is twm do window, this feature is too bad, and comment out, add a line: "gnome-session &", that I am using the gnome; with KDE "startkde &".
export LANG = zh_CN.GB18030 the line every time the conversation when the language changed to Chinese, my system is the default en_US.UTF-8, when there will be no access to Xwindow language problem.

And then restart the vncserver
# vncserver-kill: 1
# vncserver
Re-use vncviewer yourremotehost: id to see the familiar interface of the landing.

vi / etc / sysconfig / vncservers

# The VNCSERVERS variable is a list of display: user pairs.
#
# Uncomment the line below to start a VNC server on display: 1
# As my 'myusername' (adjust this to your own). You will also
# Need to set a VNC password; run 'man vncpasswd' to see how
# To do that.
#
# DO NOT RUN THIS SERVICE if your local area network is
# Untrusted! For a secure way of using VNC, see
# URL: http://www.uk.research.att.com/vnc/sshvnc.html.

1 2 3

February 20th, 2006 Posted by eric | System | no comments