Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

½â¾ölinuxÏÂtoo many fileÎÊÌâ

¹¤×÷Öз¢ÏÖ£¬ÔÚlinuxÖдWEBLOGICÓ¦Ó÷þÎñÆ÷µÄ»·¾³Ï£¬ÓÐʱ¿ÉÄÜͬʱ·¢²¼¶à¸öwar°ü£¬¶øÇÒÿһ¸öwar°üµÄÎļþÊýÄ¿ºÜ¶à£¬»òÕ߿ͻ§Í¬Ê±·ÃÎÊÁ¿±È½Ï´ó£¬´ËʱWEBLOGIC¾Í»á±¨´í£¬±¨´íÐÅÏ¢Öаüº¬“Too many open files”£¬ÀýÈ磺
java.io.FileNotFoundException: /home/weblogic/bea/user_projects/domains/lhyth/servers/AdminServer/tmp/_WL_user/_appsdir_AM_war/syskue/.tld_cache/webwork-2.2.6.jar/META-INF/taglib.tld/crc.ser (Too many open files)
        at java.io.FileOutputStream.open(Native Method)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:131)
        at weblogic.descriptor.DescriptorCache.writeToCache(DescriptorCache.java:236)
        at weblogic.descriptor.DescriptorCache.parseXML(DescriptorCache.java:388)
        Truncated. see log file for complete stacktrace
ÕâÊÇÒòΪlinuxÏÞÖÆÁË´ò¿ªÎļþµÄ×î´ó¾ä±úÊýÁ¿¡£
linuxĬÈϵĴò¿ªÎļþÊýÁ¿ÊÇ1024£¬ÎÒÃÇ¿ÉÒÔÓÃulimit -a À´²é¿´ÏµÍ³×ÊÔ´£¬ÀýÈ磺
[root@redhat ~]# ulimit -a
core file size          (blocks, -c) 0
data seg size           (kbytes, -d) unlimited
file size               (blocks, -f) unlimited
pending signals                 (-i) 1024
max locked memory       (kbytes, -l) 32
max memory size         (kbytes, -m) unlimited
open files                   (-n) 1024 --´ò¿ª×î´óÎļþÊýÁ¿ÏÞÖÆ
pipe size     


Ïà¹ØÎĵµ£º

linuxÖÐÏòÆäËûÓû§ÖÕ¶Ë·¢ÏûÏ¢


Ò»¸ö¼òµ¥ÊµÓõÄС¹¦ÄÜ¡£¡£
1.ÓÃwÃüÁî²é¿´¶¼ÓÐÄÄЩÖжÏÓû§
[]#w
jeff     pts/5    192.168.96.128   16:47   10:44   0.03s  0.03s -bash
2.·¢ËÍÏûÏ¢
[]#write jeff pts/5
hello!
½ÓÏÂÀ´Ã¿Ð´Ò»ÐУ¬°´»Ø³µºó¾Í»á·¢Ë͵½¶Ô·½ÏàÓ¦µÄÖÕ¶Ë¡£
......

ÔÚlinuxµÄPCÉϹÒÔØjffs2¸ùÎļþϵͳӳÏñ

ÎÒÃÇÔÚµ÷ÊÔÓ²¼þ°åʱ£¬¾­³£ÐèÒª×ö¶à¸öjffs2µÄ¸ùÎļþϵͳӳÏñ£¬ÓÐʱҲҪ¶Ô±ÈÆäËû;¾¶µÃµ½µÄ¿ÉÓõÄjffs2¸ùÎļþϵͳӳÏñ¡£µ«jffs2µÄÎļþϵͳӳÏñ²»Ïó¹âÅ̵ÄÓ³ÏñÎļþÒ»Ñù¿ÉÒÔͨ¹ýloopÉ豸À´¹ÒÔØ£¬×ܲ»¿ÉÄÜÒ»¸ö¸öÉÕ¼µ½Ó²¼þ°åÈ¥¿´°É¡£ ºóÀ´µ½ÍøÉÏgoogleÁËÒ»°Ñ£¬×ó·­ÓÒ·­Ö®ºó×ÜËãÕÒµ½ÁËÒ»¸ö·½·¨¡£ÒòΪjffs2Êǹ¹½¨ÓÚMTDÉ豸ÉϵÄÎļ ......

Linux ·À»ðǽ¿ª¹ØÃüÁî

 1) ÓÀ¾ÃÐÔÉúЧ£¬ÖØÆôºó²»»á¸´Ô­
¿ªÆô£º chkconfig iptables on
¹Ø±Õ£º chkconfig iptables off
2) ¼´Ê±ÉúЧ£¬ÖØÆôºó¸´Ô­
¿ªÆô£º service iptables start
¹Ø±Õ£º service iptables stop
¿ªÆôºÍ¹Ø±Õ¶Ë¿ÚÏà¹ØÅäÖÃÎļþ
/etc/sysconfig/iptables ......

ÓÃVmware°²×°linuxÌáʾδÕÒµ½ÈκÎÇý¶¯Æ÷

 
screen.width*0.7)
{this.resized=true; this.width=screen.width*0.7; this.alt='Click here
to open new window\nCTRL Mouse wheel to zoom in/out';}"
onmouseover="if(this.width>screen.width*0.7) {this.resized=true;
this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='C ......

LinuxÍøÂç½Ó¿ÚµÄÔ´Âë·ÖÎö

Ò».ǰÑÔ
¡¡LinuxµÄÔ´ÂëÀï£¬ÍøÂç½Ó¿ÚµÄʵÏÖ²¿·ÝÊǷdz£ÖµµÃÒ»¶ÁµÄ£¬Í¨¹ý¶ÁÔ´Â룬²»½ö¶ÔÍøÂçЭÒé»áÓиüÉîµÄÁ˽⣬ҲÓÐÖúÓÚÔÚÍøÂç±à³ÌµÄʱºò£¬¶ÔÓ¦Óú¯ÊýÓиü¾«È·µÄÁ˽âºÍ°ÑÎÕ¡£
¡¡±¾ÎİÑÖØµã·ÅÔÚÍøÂç½Ó¿Ú³ÌÐòµÄ×ÜÌå½á¹¹ÉÏ£¬Ï£ÍûÄÜ×÷Ϊ¶ÁÔ´ÂëʱһЩָµ¼ÐÔµÄÎÄ×Ö¡£
¡¡±¾ÎÄÒÔLinux2.4.16ÄÚºË×÷Ϊ½²½âµÄ¶ÔÏó£¬ÄÚºËÔ´Âë¿ÉÒÔÔÚh ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ