650M 1.3G 34%/DEV/SHMThe default maximum half of the memory size may not be sufficient in some cases, and the default inode count is generally higher, so you can use the Mount command to manage it.#mount-o size=1500m-o nr_inodes=1000000-o noatime,nodiratime-o remount/dev/shmOn a 2G machine, the maximum capacity is tuned to 1.5G, and the inode number is set to 1000000, which means roughly 1 million small files can be deposited.If you need to permanent
it. The command to delete the physical volume is vgreduce:#vgreduce web_document/dev/hda17. Create a logical volumeThe command to create the logical volume is lvcreate:#lvcreate-l1500-n WWW1 web_documentThe command creates a logical volume named WWW1 with a size of 1500M on the volume group Web_document, and the device entry is/DEV/WEB_DOCUMENT/WWW1 (Web_document is the volume group name, and WWW1 is the logical volume name). If you want to create a
Android Debug Signature Package is not code confusion, direct run as is the debug signature packageThe official release version is officially signed by the company key and can be exported via export or Android ToosThe project is relatively large, the confusion when the package directly oom, many people on the internet said directly increased eclipse.ini in the-XMX value, I have been so changed after the badAfter testing the correct method is to modify the Android obfuscation called the SDK's bat
Excerpt from: http://miaozk2006.blog.163.com/blog/static/3824705820111028183996/First,/dev/shm/Introduction:/dev/shm/is a very useful directory for Linux because it is not on the hard disk, but in memory. Therefore, under Linux, it is not necessary to build RAMDisk, the direct use of/dev/shm/can achieve a good optimization effect.One of the/dev/shm/needs to be aware of is the capacity issue, which, under Linux, defaults to half the size of memory and can be seen using the df-h command. But it do
. Each 32-bit process can use up to 2G of available memory, because another 2G is reserved by the operating system. This assumes that 1.5G is used for the JVM, and then the remaining 500M of available memory. This 500M part of the memory must be used to load the system DLL, then the real left is perhaps only 400M, and now the key point arises: When you use Java to create a thread, in the JVM's memory will also create a thread object, But it also creates a real physical thread in the operating s
Restart Network (Rhel 7.2)DNS to be set as a gateway00:0c:29:cb:57:aaPartition:Swap allocated space for memory size of 1.5~2 times general 1500M is possible/boot boot partition r6 (300M) R7 (500M)/root Partition 10GVMware Virtual Machine Usage tips1 when power is turned on, enter the firmware to enter the BIOS or quickly press F2 when powering on.2Linux shortcut keys CTRL + L clear screen Ctrl + C End Process Ctrl + Z hang Process Ctrl + Alt + y last
/dev/shm/is a very useful directory for Linux because it is not on the hard disk, but in memory. Therefore, under Linux, it is not necessary to build RAMDisk, the direct use of/dev/shm/can achieve a good optimization effect.One of the/dev/shm/needs to be aware of is the capacity issue, which, under Linux, defaults to half the size of memory and can be seen using the df-h command. But it does not really occupy this memory, if there is no file under the/dev/shm/, it occupies the memory is actually
shows the status of VG above the current system(4) vgextend add additional PV inside the VG(5) Vgreduce remove PV within VG(6) Vgchange configuration VG whether Qidong (active)(7) Vgremove Delete a VGTo create a VG example:(1) For example, we add/dev/hda1 and/dev/hdb1 into the Xin Volume group: vgcreate XIN/DEV/HDA1/DEV/HDB1To create the LV command:(1) lvcreate create LV(2) Lvscan search system above the LV(3) Lvdisplay display system above the LV status(4) Lvextend add capacity inside LV(5) Lv
Permanent Save Area Initial size-xx:permsize the initial maximum value of the permanently saved areaThis is typically used in conjunction with the first one, such as set java_opts=-xms1024m-xmx1024m-xx:permsize=128m-xx:permsize=256m3.outofmemoryerror:unable to create new native thread.What about the third one?Each 32-bit process can use up to 2G of available memory, because another 2G is reserved by the operating system. This assumes that 1.5G is used for the JVM, and then the remaining 500M of
systemNone->/dev/shmThat is, the virtual memory of the system. Called Cache in Windows.#vi/etc/fstabTMPFS/DEV/SHM TMPFS Defaults 0 0Change toTmpfs/dev/shm Tmpfs defaults,size=512m 0 0[Email protected] tmp]# Mount-o REMOUNT/DEV/SHM[Email protected] tmp]# df-hFilesystem Size used Avail use% mounted on/dev/sda3 8.8G 4.0G 4.5G 48%/Tmpfs 512M 88K 512M 1%/DEV/SHM/DEV/SDA1 97M 43M 50M 47%/bootHow, become 512M, use very convenient, haha.Of course in the production environment you can increase the memor
Introduced/ dev/shm/ is a device that uses the Tmpfs file system, which is actually a special file system. the default size in Redhat is half of physical memory, so that time is not mkfs formatted. TMPFS is a memory-based virtual file system on the Linux/unix system .TMPFS can use your memory or swap partition to store the file ( that is, its storage space in virtual memory , the VM consists of real memory and swap ). Thus, TMPFS primarily stores staged files. It has the following 2 advantage
content will be much faster. In addition to using/dev/shm/to point the TMP directory to the/DEV/SHM partition, if there are a large number of small files and directories, but also to modify the memory partition of the number of inode and maximum capacity:
Mount-o size=2500m-o nr_inodes=480000-o Noatime,nodiratime-o REMOUNT/DEV/SHM
The above command is used on a machine with 3G memory, because the/DEV/SHM default maximum memory is half of the system memory is
') and change display units to
Sectors (Command ' u ').
Command (M for help): M
Command Action
A toggle a bootable flag
b Edit BSD Disklabel
C Toggle the DOS compatibility flag
D Delete a partition
L list known partition types
M Print this menu
n Add a new partition
o Create a new empty DOS partition table
P Print the partition table
Q Quit without saving changes
s create a new empty Sun Disklabel
t change a partition ' s system ID
U Change display/entry units
V Verify the partition table
W W
the/DEV/SHM, I usually do so, so that you can use the system memory to do the cache, the use of memory, cleaning up the expiration of the content will be much faster. In addition to using/dev/shm/to point the TMP directory to the/DEV/SHM partition, if there are a large number of small files and directories, but also to modify the memory partition of the number of inode and maximum capacity:
Mount-o size=2500m-o nr_inodes=480000-o Noatime,nodiratime-o REMOUNT/DEV/SHM
The above command is used
memory is used as Oracle and Oracle connections. These scripts are used in Hp/ux or Solaris and accept $oracle_sid as a parameter.
Dss_config. The Ksh script will run every night in 6:00 p.m to reset the bulk tasks that Oracle is running at night for large memory requirements.
Dss_config.ksh
#!/bin/ksh
# The must set the environment ....
Oracle_sid=$1
Export Oracle_sid
Oracle_home= ' cat/etc/oratab|grep ^ $ORACLE _sid:|cut-f2-d ': '
#ORACLE_HOME = ' Cat/var/opt/oracle/oratab|grep ^ $ORACLE
from the 0x3 partition, and the memory space is reserved for Heap Memory from the 0xC partition in the reverse direction of the partition. The more partitions the Heap Memory occupies, the fewer partitions the break Memory can use, and vice versa.
When any part of a partition is used as a Heap Memory, the entire partition is retained for this particular purpose, and break Memory no longer use this partition.
When the JVM is started, it can be set to the maximum memory space (-XMX) reserved by
Requirements:
Use the Ubuntu 8.04 Server version of the syslog record Juniper isg1000 log for 3 months.
1. Allow syslog to record external logs
Modify the/ETC/DEFAULT/SYSLOGD to change the syslogd= "" to syslogd= "-R"
2. Define external log types
Modify the Juniper isg1000 log definition so that its generated log is defined as LOCAL7 and send logs to the Ubuntu server.
3. Define log files
In view of the more log files, create a new firewall directory under/var/log to save the log file. Di
patch or you need to set up a connection pool for IIS.
The premise here is that the database has been patched up to date, the IIS connection database string is normal, the username and password are normal.
Analysis Process:
If the connection pool of IIS sets the 1500m,iis connection data to 1500 normal, the connection pool size of each session is averaged 1MB, and the database network packet defaults to 4096;
If there is a request to return 20M d
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.