开发者社区> 问答> 正文

准备改成按流量交费的形式,但是无法确定服务器流量目前是多少怎么办?

有什么办法可以比较准确的知道大概服务器流量是多少吗?

展开
收起
michaelz 2015-05-21 23:45:10 9652 0
3 条回答
写回答
取消 提交回答
  • 回1楼dongshan8的帖子
    系统是 CentOS 5.8 64位
    有现成的程序直接安装就可以统计流量的吗?

    -------------------------

    ReRe准备改成按流量交费的形式,但是无法确定服务器流量目前是多少怎么
    引用第2楼玩站网于2015-05-22 09:53发表的 Re准备改成按流量交费的形式,但是无法确定服务器流量目前是多少怎么 :
    图片,附件存第三方oss,流量很便宜。

    单纯的页面存放服务器,需求流量并不算大的。

    比如你1w一下pv   2M以内足够。
    ....... [url=http://bbs.aliyun.com/job.php?action=topost&tid=244386&pid=656040][/url]


    你好,可惜我也不知道我的网站PV是多少啊

    -------------------------

    Re回3楼michaelz的帖子
    引用第5楼dongshan8于2015-05-23 22:07发表的 回 3楼(michaelz) 的帖子 :
    您好,

    这里介绍了很多款,但我没有使用过。仅供参考:http://studyhat.blogspot.com/2010/10/bandwidth-monitoring-tools-for-centos.html [url=http://bbs.aliyun.com/job.php?action=topost&tid=244386&pid=657468][/url]

    网址访问不了啊,404
    2015-05-23 21:27:37
    赞同 展开评论 打赏
  • Re准备改成按流量交费的形式,但是无法确定服务器流量目前是多少怎么
    图片,附件存第三方oss,流量很便宜。

    单纯的页面存放服务器,需求流量并不算大的。

    比如你1w一下pv   2M以内足够。
    10w以下,考虑5M
    每天几十万pv的考虑10M。

    阿里云带宽是可以调整的,就算你发现不够,可以手动升级,补差价的。

    按流量计费,主要是解决峰值,比如搞一次抢购活动,高峰期可能瞬间正常十倍的访问量,那么用阿里云slb(负载均衡) +  日常用的ecs + 高峰期按量计费的ecs  可以解决了。

    -------------------------

    回4楼michaelz的帖子
    安装统计工具,很多的。主要是看你每天有多少访客。可以用百度统计
    2015-05-22 09:53:49
    赞同 展开评论 打赏
  • 旺旺:nectar2。
    Re:准备改成按流量交费的形式,但是无法确定服务器流量目前是多少怎么 ..
    楼主您好,

    这个可能需要安装第三方的软件来为流量计数喔。

    您的ECS是什么操作系统呢?

    -------------------------

    回 3楼(michaelz) 的帖子
    您好,

    这里介绍了很多款,但我没有使用过。仅供参考: http://studyhat.blogspot.com/2010/10/bandwidth-monitoring-tools-for-centos.html

    -------------------------

    回 7楼(michaelz) 的帖子
    您好,

    不好意思,那个网址好象不能直接访问,我复制过来。


    BandwidthD tracks usage of TCP/IP network subnets and builds html files with graphs to display utilization. Charts are built by individual IPs, and by default display utilization over 2 day, 8 day, 40 day, and 400 day periods. Furthermore, each ip address’s utilization can be logged out at intervals of 3.3 minutes, 10 minutes, 1 hour or 12 hours in cdf format, or to a backend database server. HTTP, TCP, UDP, ICMP, VPN, and P2P traffic are color coded.
    Project Home Page :- http://bandwidthd.sourceforge.net/
    Bmon
    bmon is a portable bandwidth monitor and rate estimator running on various operating systems. It supports various input methods for different architectures. Various output modes exist including an interactive curses interface,lightweight HTML output but also formatable ASCII output.
    Bwbar
    bwbar is a small C-based program for Linux-based machines which produces bandwidth usage statistics for a network interfaces. It was originally written by H. Peter Anvin, and I (Brian Towne) modified it somewhat to better suit my needs. The original program was released under the GPL. A number of people have asked for the modified program and its source, so I have created this page.
    bwm
    This is a very tiny bandwidth monitor (not X11). Can monitor up to 16 interfaces in the in the same time, and shows totals too.
    bwm-ng
    small and simple console-based bandwidth monitor.Bandwidth Monitor NG is a small and simple console-based live bandwidth monitor.
    Project Home Page :- http://www.gropp.org/?id=projects&sub=bwm-ng
    Cacti
    Cacti is a complete network graphing solution designed to harness the power of RRDTool’s data storage and graphing functionality. Cacti provides a fast poller, advanced graph templating, multiple data acquisition methods, and user management features out of the box. All of this is wrapped in an intuitive, easy to use interface that makes sense for LAN-sized installations up to complex networks with hundreds of devices.
    Project Home Page :- http://cacti.net/
    cbm
    cbm — the color bandwidth meter — is a small program to display the traffic currently flowing through your network devices.
    dstat
    Dstat is a versatile replacement for vmstat, iostat, netstat, nfsstat and ifstat. Dstat overcomes some of their limitations and adds some extra features, more counters and flexibility. Dstat is handy for monitoring systems during performance tuning tests, benchmarks or troubleshooting.
    Project Home Page :- http://dag.wieers.com/home-made/dstat/
    EtherApe
    EtherApe is a graphical network monitor for Unix modeled after etherman. Featuring link layer, ip and TCP modes, it displays network activity graphically. Hosts and links change in size with traffic. Color coded protocols display.
    Project Home Page :- http://etherape.sourceforge.net/
    gdesklets
    gDesklets is a system for bringing mini programs (desklets), such as weather forecasts, news tickers, system information displays, or music player controls, onto your desktop, where they are sitting there in a symbiotic relationship of eye candy and usefulness. The possibilities are really endless and they are always there to serve you whenever you need them, just one key-press away. The system is not restricted to one desktop environment, but currently works on most of the modern Unix desktops (including GNOME, KDE, Xfce).
    Project Home Page :- http://www.gdesklets.de/
    GKrellM
    GKrellM is a single process stack of system monitors which supports applying themes to match its appearance to your window manager, Gtk, or any other theme.
    Project Home Page :- http://members.dslextreme.com/users/billw/gkrellm/gkrellm.html
    ipband
    ipband is a pcap based IP traffic monitor. It tallies per-subnet traffic and bandwidth usage and starts detailed logging if specified threshold for the specific subnet is exceeded. If traffic has been high for a certain period of time, the report for that subnet is generated which can be appended to a file or e-mailed. When bandwidth usage drops below the threshold, detailed logging for the subnet is stopped and memory is freed.
    Project Home Page :- http://ipband.sourceforge.net/
    iftop
    iftop does for network usage what top does for CPU usage. It listens to network traffic on a named interface and displays a table of current bandwidth usage by pairs of hosts. Handy for answering the question “why is our ADSL link so slow”.
    Project Home Page :- http://www.ex-parrot.com/pdw/iftop/
    iperf
    Iperf is a tool to measure maximum TCP bandwidth, allowing the tuning of various parameters and UDP characteristics. Iperf reports bandwidth, delay jitter, datagram loss.
    ipfm
    IP Flow Meter (IPFM) is a bandwidth analysis tool, that measures how much bandwidth specified hosts use on their Internet link.
    Project Home Page :- http://robert.cheramy.net/ipfm/
    ifstat
    ifstat is a tool to report network interfaces bandwith just like vmstat/iostat do for other system counters.
    Project Home Page :- http://gael.roualland.free.fr/ifstat/
    ibmonitor
    ibmonitor is an interactive linux console application which shows bandwidth consumed and total data transferred on all
    interfaces.
    Project Home Page :- http://ibmonitor.sourceforge.net/
    ipaudit
    IPAudit monitors network activity on a network by host, protocol and port.IPAudit listens to a network device in promiscuous mode, and records every connection between two ip addresses. A unique connection is determined by the ip
    addresses of the two machines, the protocol used between them, and the port numbers (if they are communicating via udp or tcp).
    Project Home Page :- http://ipaudit.sourceforge.net/
    IPTraf
    IPTraf is a console-based network statistics utility for Linux. It gathers a variety of figures such as TCP connection packet and byte counts, interface statistics and activity indicators, TCP/UDP traffic breakdowns, and LAN station packet and byte counts.
    Project Home Page :- http://iptraf.seul.org/
    IFStatus
    IFStatus was developed for Linux users that are usually in console mode. It is a simple, easy to use program for displaying commonly needed / wanted statistics in real time about ingoing and outgoing traffic of multiple network interfaces that is usually hard to find, with a simple and effecient view. It is the substitute for PPPStatus and EthStatus projects.
    jnettop
    Jnettop is a traffic visualiser, which captures traffic going through the host it is running from and displays streams sorted by bandwidth they use.
    Project Home Page :- http://jnettop.kubs.info/wiki/
    MRTG
    The Multi Router Traffic Grapher (MRTG) is a tool to monitor the traffic load on network links. MRTG generates HTML pages containing PNG images which provide a LIVE visual representation of this traffic.
    Project Home Page :- http://oss.oetiker.ch/mrtg/
    moodss
    moodss is a graphical monitoring application. It is modular so that the code accessing the monitored objects is completely separate from the application core. The core takes care of managing modules (loading and unloading),displaying modules data through sortable tables and diverse graphical viewers, handling user set threshold conditions with email alerts, recording and browsing data history from a database.moodss can even predict the future, using sophisticated statistical methods and artificial neural networks, and therefore be used for capacity planning.
    Project Home Page :- http://moodss.sourceforge.net/
    monitord
    A lightweight (distributed?) network security monitor for TCP/IP+Ethernet LANs. It will capture certain network events and record them in a relational database. The recorded data will be available for analysis through a CGI based interface.
    Project Home Page :- http://sourceforge.net/projects/monitord/
    Netmrg
    NetMRG is a tool for network monitoring, reporting, and graphing. Based on RRDTOOL, the best of open source graphing
    systems, NetMRG is capable of creating graphs of any parameter of your network.
    Project Home Page :- http://www.netmrg.net
    nload
    nload is a console application which monitors network traffic and bandwidth usage in real time. It visualizes the in-and outgoing traffic using two graphs and provides additional info like total amount of transfered data and min/max network usage.
    Project Home Page :- http://www.roland-riegel.de/nload/index.html
    ntop
    ntop shows the current network usage. It displays a list of hosts that are currently using the network and reports information concerning the IP (Internet Protocol) and Fibre Channel (FC) traffic generated by each host. The traffic is sorted according to host and protocol. Default protocol list (this is user configurable).
    Project Home Page :- http://www.ntop.org
    netspeed
    Netspeed is just a little GNOME-applet that shows how much traffic occurs on a specified network device (for example eth0). You get the best impression of it, if you look at the screenshots below.
    Netwatch
    Netwatch is a Linux program created to aid in monitoring Network Connections. It is based on a program called “statnet” but has been substantially modified for its Ethernet emphasis. It is a dynamic program which displays the Ethernet status based each the connection’s activity. It has the capability of monitoring hundreds of site statistics simultaneously. The connection’s port number (Well Known Service) and destination address are available as well. There are options which allow router statistics to be measured on simple networks (with one router). External network communication is counted and transfer rates are displayed.
    Project Home Page :- http://www.slctech.org/~mackay/netwatch.html
    NOCOL
    NOCOL is a popular system and network monitoring (network management) software that runs on Unix systems and can
    monitor network and system devices. It uses a very simple architecture and is very flexible for adding new network management modules
    Project Home Page :- http://www.netplex-tech.com/nocol/
    NeTraMet
    NeTraMet is an open-source (GPL) implementation of the RTFM architecture for Network Traffic Flow Measurement,
    developed and supported by Nevil Brownlee at the University of Auckland. Nevil also developed a version of NeTraMet
    which uses the CoralReef library to read packet headers. This ‘CoralReef NeTraMet meter’ can work with any CoralReef
    data source; it has been tested on both CAIDA and NLANR trace files, and on DAG and Apptel ATM interface cards.
    Project Home Page :- http://freshmeat.net/projects/netramet/
    NetPIPE
    NetPIPE is a protocol independent performance tool that visually represents the network performance under a variety of
    conditions. It performs simple ping-pong tests, bouncing messages of increasing size between two processes, whether
    across a network or within an SMP system. Message sizes are chosen at regular intervals, and with slight perturbations, to provide a complete test of the communication system. Each data point involves many ping-pong tests to provide an accurate timing. Latencies are calculated by dividing the round trip time in half for small messages ( <64 Bytes ).
    Project Home Page :- http://www.scl.ameslab.gov/netpipe/
    netperf
    Netperf is a benchmark that can be use to measure various aspect of networking performance. The primary foci are bulk
    (aka unidirectional) data transfer and request/response performance using either TCP or UDP and the Berkeley Sockets interface. As of this writing, the tests available either unconditionally or conditionally
    Project Home Page :- http://www.netperf.org/netperf/
    potion
    This is a console utility which will listen on an interface using libpcap, aggregate the traffic into flows and display the top (as many as can fit on your screen) flows with their average throughput. A flow is identified ip protocol, source ip, source port, destination ip, destination port, and type of service flag.
    pktstat
    Display a real-time list of active connections seen on a network interface, and how much bandwidth is being used by what. Partially decodes HTTP and FTP protocols to show what filename is being transferred. X11 application names are also shown. Entries hang around on the screen for a few seconds so you can see what just happened. Also accepts filter expressions á la tcpdump.
    Project Home Page :- http://www.adaptive-enterprises.com.au/~d/software/pktstat/
    RTG
    RTG is a flexible, scalable, high-performance SNMP statistics monitoring system. It is designed for enterprises and service providers who need to collect time-series SNMP data from a large number of targets quickly. All collected data is inserted into a relational database that provides a common interface for applications to generate complex queries and reports. RTG includes utilities that generate configuration and target files, traffic reports, 95th percentile reports and graphical data plots. These utilities may be used to produce a web-based interface to the data.
    Project Home Page :- http://rtg.sourceforge.net/
    speedometer
    Monitor network traffic or speed/progress of a file transfer. The program can be used for cases like: how long it will take for my 38MB transfer to finish, how quickly is another transfer going, How fast is the upstream on this ADSL line and how fast can I write data to my filesystem.
    Project Home Page :- http://excess.org/speedometer/
    Spong
    Spong is a simple system-monitoring package written in Perl. It features client based monitoring, monitoring of network services, results displayed via the Web or console, history of problems, and flexible messaging when problems occur.
    Project Home Page :- http://spong.sourceforge.net/
    slurm
    slurm started as a pppstatus port to FreeBSD. As I ripped off several functions
    SNIPS
    SNIPS (System & Network Integrated Polling Software) is a system and network monitoring software that runs on Unix systems and can monitor network and system devices. It is capable of monitoring DNS, NTP, TCP or web ports, host performance, syslogs, radius servers, BGP peers, etc. New monitors can be added easily (via a C or Perl API).
    Project Home Page :- http://www.navya.com/software/snips/
    tcpflow
    tcpflow is a program that captures data transmitted as part of TCP connections (flows), and stores the data in a way
    that is convenient for protocol analysis or debugging. A program like tcpdump shows a summary of packets seen on the
    wire, but usually doesn’t store the data that’s actually being transmitted. In contrast, tcpflow reconstructs the actual data streams and stores each flow in a separate file for later analysis. tcpflow understands TCP sequence numbers and will correctly reconstruct data streams regardless of retransmissions or out-of-order delivery.
    Project Home Page :- http://www.circlemud.org/~jelson/software/tcpflow/
    vnstat
    vnStat is a network traffic monitor for Linux that keeps a log of daily network traffic for the selected interface(s).vnStat isn’t a packet sniffer. The traffic information is analyzed from the /proc -filesystem, so vnStat can be used without root permissions. However at least a 2.2.x kernel is required.
    Project Home Page :- http://humdi.net/vnstat/
    WMND
    Shows a graph of incoming/outgoing traffic, activity indicators for rx/tx and current/maximum rate for rx/tx in bytes or packets.Tailored for use with WindowMaker, it will as well work with any other window manager though.
    Project Home Page :- http://dockapps.org/file.php/id/178





    2015-05-22 08:55:45
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
ECS计算与存储分离架构实践 立即下载
ECS云磁盘热迁移 立即下载
ECS块存储产品全面解析 立即下载