BIf _ name _ = '_ main __':A = my_func ()Print cur_python_mem ()Print ""Print memory_usage (f, (1,), {'N': int (1e6)}), interval = 0.5)
Run the above Code and the output result is:Copy codeThe Code is as follows:Jay @ Jay-Air :~ /Workspace/python. git/py2014 $ python mem_profile.pyFilename: mem_profile.pyLine # Mem usage Increment Line Contents========================================================== ==========15 8.0 MiB 0.0
will receive all multicast packets in the network-A displays all interface information-S Display summary information (similar to netstat-i)Add to configure the IPV6 address for the specified NICDel deletes the IPV6 address of the specified network cardmtunetmaskTunel establishing a tunnelDSTADDR set a remote address to establish point-to-point communication-broadcast-pointtopointMulticast setting the multicast flag for the network cardAddress sets IPV4 addresses for network cardstxqueuelen4. Us
5.7 of Performance_schema already have the ability to monitor the memory usage of MySQL, for this is to be achieved through the instrument, because the memory this piece does not have a corresponding consumer so long asWell, it's okay to configure instrument.1. Example:/etc/my.cnf[Mysqld]datadir =/usr/local/mysql/databasedir =/usr/local/mysqlperformance_schema_instrument = ' Memory%=counted 'Select Event_name,curr
background service/daemon and always keeps track of the size of the transmitted data. , it can be used to create reports that show the history of network usage.$ Service Vnstat Status * Vnstat Daemon is runningRunning Vnstat with no options will only show the total amount of data transferred since the daemon was run.$ vnstat Database Updated:mon Mar 15:26:59 eth0 since 06/12/13 rx:135.14 Gib tx:35.76 Gib total:170.90 GIB Mon thly Rx | TX | Total | Avg. rate------------------------+-------------
System Environment RHEL6 # yuminstallnet-snmpnet-snmp-utils-y # snmpwalk-v1-cpubliclocalhostIP-MIB: ipAdEntIfIndexCreateddirectory:/var/lib/net-snmp/mib_indexesTimeout
# Yum install net-snmp-utils-y
# Snmpwalk-v 1-c public localhost IP-MIB: ipAdEntIfIndex
Created directory:/var/lib/net-snmp/mib_indexes
Timeout: No Response from localhost
No data can be extracted. We need to modify/etc/snmp/snmpd. conf.
# V
The use of SNMP has become a default project for many devices. Then, some of the module applications have become the focus of attention. This article mainly introduces the establishment of SNMP Trap. First, let's take a look at the use environment of this Protocol.
Develop Trap macro types
It should be noted that the expansion of the Trap macro occurs in terms of completion, not during running.
Formulate enterprise terms
Enterprise terms must be existing, define enterprise management, and regist
network management system of certain information, the trap command needs to be executed. The last thing to note is that all SNMP-related packages have been provided in red Hat Enterprise Linux, and all MIB information is provided in these packages, and the information files are stored in/usr/share/snmp/mibs. The so-called MIB is a hierarchical database of a device (Management information Base). And each va
ipv4_mib_init_net.
Java codeStatic _ net_init int ipv4_mib_init_net (struct net * Net){/// We can see statistics on the TCP and IP layers. Here, each statistical variable is per CPU.If (snmp_mib_init (void **) Net-> MIB. tcp_statistics,Sizeof (struct tcp_mib) Goto err_tcp_mib;If (snmp_mib_init (void **) Net-> MIB. ip_statistics,Sizeof (struct ipstats_mib) Goto err_ip_mib;If (snmp_mib_init (void **) Net-> m
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.