my_func ():
A = [1] * (10 ** 6)
B = [2] * (2*10 ** 7)
Del B
Return
Def cur_python_mem ():
Mem_usage = memory_usage (-1, interval = 0.2, timeout = 1)
Return mem_usage
Def f (a, n = 100 ):
Time. sleep (1)
B = [a] * n
Time. sleep (1)
Return B
If _ 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:
The Code is as follow
Zabbix monitoring router steps based on SNMP protocolThe procedure is super convenient.1. Turn on SNMP on the router2. Ensure that the extranet can access3. Test with Snmpwalk4. Add Zabbix host, add IP in SNMP Interfaces, remove the default Zabbix agent, module select template SNMP InterfacesSnmpwalk Test Commands[Email protected] init.d]# snmpwalk-v 2c-c public 192.168.1.253 1.3.6.1.2.1.2.2.1.10if-mib::ifinoctets.1 = Counter32:7515379if-
of interest can also being found in what is JMX? And looking for JMX overview, Examples, and more ....Monitoring the JVM through SNMPThe JVM SNMP agent is a small snmpv2c agent which exposes a single MIB, the Jvm-management-mib. This agent isn't extensible, and can only expose what's defined in the that MIB.Follow this link to learn how to start and configure the JVM SNMP agent.In order to manage the JVM t
library (MIB). 1 name= "SYSDESCR">2 value> Siemens, SIMATIC, s7-200value>3 Symbol>The process of including the repository in Conpot is as follows: (for example, introducing Ifnumber from If-mib)1. Download If-mib and Ianaiftype-mib (If-mib's dependency package);1 wget http://www.iana.org/assignments/ianaiftype
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
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
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.