我正面临着太多打开文件的问题。
操作系统 - Linux
服务器:JBoss
以下是ulimit大小。
[jboss @ cingetsdm004dp~] $ ulimit -Ha
打开文件(-n)4096
[jboss @ cingetsdm004dp~] $ ulimit -a
打开文件(-n)4096
[jboss @ cingetsdm004dp~] $ ulimit -Sa
打开文件(-n)4096
另外,我执行了ulimit -S
输出:无限
ulimit -H
输出:无限
以下命令的输出:
(在JBoss服务器上运行服务之前)打开文件列表
-
lsof | wc -l> /home/equser/Servers/Batch/onstartCount.txt
数:7719
-
运行服务一段时间后,WAR取消部署,server.log说打开文件太多。
在打开太多文件后计算:7360
醇>
异常:ERROR [org.jboss.as.server.deployment.scanner](DeploymentScanner-threads - 1)JBAS015004:捕获异常编写部署标记文件/app/jboss_eQube/jboss-as-7.1.0.Final_MI/standalone /deployments/eQubeMI.war.pending: java.io.FileNotFoundException :/app/jboss_eQube/jboss-as-7.1.0.Final_MI/standalone/deployments/eQubeMI.war.pending(打开的文件太多了)
- at java.io.FileOutputStream.open(Native Method)[rt.jar:1.7.0_55]
在java.io.FileOutputStream。(FileOutputStream.java:221)[rt.jar:1.7.0_55]
在java.io.FileOutputStream。(FileOutputStream.java:171)[rt.jar:1.7.0_55]
在org.jboss.as.server.deployment.scanner.FileSystemDeploymentService.createMarkerFile(FileSystemDeploymentService.java:887)[jboss-as-deployment-scanner-7.1.0.Final.jar:7.1.0.Final]
在org.jboss.as.server.deployment.scanner.FileSystemDeploymentService.access $ 2600(FileSystemDeploymentService.java:88)[jboss-as-deployment-scanner-7.1.0.Final.jar:7.1.0.Final]
在org.jboss.as.server.deployment.scanner.FileSystemDeploymentService $ ScannerTask。(FileSystemDeploymentService.java:933)[jboss-as-deployment-scanner-7.1.0.Final.jar:7.1.0.Final]
在org.jboss.as.server.deployment.scanner.FileSystemDeploymentService $ ScannerTask。(FileSystemDeploymentService.java:922)[jboss-as-deployment-scanner-7.1.0.Final.jar:7.1.0.Final]
在org.jboss.as.server.deployment.scanner.FileSystemDeploymentService $ UndeployTask。(FileSystemDeploymentService.java:1123)[jboss-as-deployment-scanner-7.1.0.Final.jar:7.1.0.Final]
在org.jboss.as.server.deployment.scanner.FileSystemDeploymentService $ UndeployTask。(FileSystemDeploymentService.java:1118)[jboss-as-deployment-scanner-7.1.0.Final.jar:7.1.0.Final]
在org.jboss.as.server.deployment.scanner.FileSystemDeploymentService.scan(FileSystemDeploymentService.java:386)[jboss-as-deployment-scanner-7.1.0.Final.jar:7.1.0.Final]
在org.jboss.as.server.deployment.scanner.FileSystemDeploymentService $ DeploymentScanRunnable.run(FileSystemDeploymentService.java:149)[jboss-as-deployment-scanner-7.1.0.Final.jar:7.1.0.Final]
at java.util.concurrent.Executors $ RunnableAdapter.call(Executors.java:471)[rt.jar:1.7.0_55]
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)[rt.jar:1.7.0_55]
at java.util.concurrent.ScheduledThreadPoolExecutor $ ScheduledFutureTask.access $ 301(ScheduledThreadPoolExecutor.java:178)[rt.jar:1.7.0_55]
at java.util.concurrent.ScheduledThreadPoolExecutor $ ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)[rt.jar:1.7.0_55]
在java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)[rt.jar:1.7.0_55]
at java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:615)[rt.jar:1.7.0_55]
在java.lang.Thread.run(Thread.java:745)[rt.jar:1.7.0_55]
在org.jboss.threads.JBossThread.run(JBossThread.java:122)[jboss-threads-2.0.0.GA.jar:2.0.0.GA]
另一个例外:
JBAS015004 :捕获异常编写部署标记文件 /app/jboss_eQube/jboss-as-7.1.0.Final_MI/standalone/deployments/eQubeMI.war.isundeploying:java.io .FileNotFoundException:/app/jboss_eQube/jboss-as-7.1.0.Final_MI/standalone/deployments/eQubeMI.war.isundeploying(打开的文件过多)
请帮助我知道为什么战争被取消部署