Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/email/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ubuntu Nexus不断在/tmp目录中创建已删除的文件描述符会导致系统内存不足_Ubuntu_Nexus_Lsof - Fatal编程技术网

Ubuntu Nexus不断在/tmp目录中创建已删除的文件描述符会导致系统内存不足

Ubuntu Nexus不断在/tmp目录中创建已删除的文件描述符会导致系统内存不足,ubuntu,nexus,lsof,Ubuntu,Nexus,Lsof,我已经在Ubuntu18.04 LTS上安装了Nexus repository 3,它正在运行,但它会不断生成带有巨大文件描述符的进程,这些文件描述符是jar_缓存包。Nexus用户几乎正在消耗内存 lsof | grep deleted java 25189 nexus 274r REG 8,1 168119 2586774 /data/nexus/tmp/jar_cache720862573

我已经在Ubuntu18.04 LTS上安装了Nexus repository 3,它正在运行,但它会不断生成带有巨大文件描述符的进程,这些文件描述符是jar_缓存包。Nexus用户几乎正在消耗内存

lsof | grep deleted

java      25189                   nexus  274r      REG                8,1    168119    2586774 /data/nexus/tmp/jar_cache7208625739217484334.tmp (deleted)
java      25189                   nexus  275r      REG                8,1    212164    2586775 /data/nexus/tmp/jar_cache462451415006799037.tmp (deleted)
java      25189                   nexus  382r      REG                8,1   1061044    2587366 /data/nexus/tmp/jar_cache6165149551453976210.tmp (deleted)
java      25189                   nexus  383r      REG                8,1    148176    2587367 /data/nexus/tmp/jar_cache751007135540811314.tmp (deleted)
quartz-7- 25189   686             nexus  274r      REG                8,1    168119    2586774 /data/nexus/tmp/jar_cache7208625739217484334.tmp (deleted)
quartz-7- 25189   686             nexus  275r      REG                8,1    212164    2586775 /data/nexus/tmp/jar_cache462451415006799037.tmp (deleted)
quartz-7- 25189   686             nexus  382r      REG                8,1   1061044    2587366 /data/nexus/tmp/jar_cache6165149551453976210.tmp (deleted)
elasticse 25189 25360             nexus  383r      REG                8,1    148176    2587367 /data/nexus/tmp/jar_cache751007135540811314.tmp (deleted)
 elasticse 25189 25360             nexus  384r      REG                8,1   1012761    2587368 /data/nexus/tmp/jar_cache3471292813592489580.tmp (deleted)
elasticse 25189 25360             nexus  385r      REG                8,1    592237    2587369 /data/nexus/tmp/jar_cache601982945780052716.tmp (deleted)
elasticse 25189 25360             nexus  386r      REG                8,1    565410    2587370 /data/nexus/tmp/jar_cache2853120646898296069.tmp (deleted)
elasticse 25189 25360             nexus  387r      REG                8,1     27585    2587371 /data/nexus/tmp/jar_cache6330732713641440746.tmp (deleted)
elasticse 25189 25362             nexus  386r      REG                8,1    565410    2587370 /data/nexus/tmp/jar_cache2853120646898296069.tmp (deleted)
blobstore 25189 25373             nexus  274r      REG                8,1    168119    2586774 /data/nexus/tmp/jar_cache7208625739217484334.tmp (deleted)
blobstore 25189 25373             nexus  275r      REG                8,1    212164    2586775 /data/nexus/tmp/jar_cache462451415006799037.tmp (deleted)
blobstore 25189 25373             nexus  382r      REG                8,1   1061044    2587366 /data/nexus/tmp/jar_cache6165149551453976210.tmp (deleted)
blobstore 25189 25373             nexus  383r      REG                8,1    148176    2587367 /data/nexus/tmp/jar_cache751007135540811314.tmp (deleted)
blobstore 25189 25373             nexus  384r      REG                8,1   1012761    2587368 /data/nexus/tmp/jar_cache3471292813592489580.tmp (deleted)
blobstore 25189 25373             nexus  385r      REG                8,1    592237    2587369 /data/nexus/tmp/jar_cache601982945780052716.tmp (deleted)
blobstore 25189 25373             nexus  386r      REG                8,1    565410    2587370 /data/nexus/tmp/jar_cache2853120646898296069.tmp (deleted)
nexus_Qua 25189 25375             nexus  274r      REG                8,1    168119    2586774 /data/nexus/tmp/jar_cache7208625739217484334.tmp (deleted)
nexus_Qua 25189 25375             nexus  275r      REG                8,1    212164    2586775 /data/nexus/tmp/jar_cache462451415006799037.tmp (deleted)
nexus_Qua 25189 25375             nexus  382r      REG                8,1   1061044    2587366 /data/nexus/tmp/jar_cache6165149551453976210.tmp (deleted)
nexus_Qua 25189 25375             nexus  383r      REG                8,1    148176    2587367 /data/nexus/tmp/jar_cache751007135540811314.tmp (deleted)
nexus_Qua 25189 25375             nexus  384r      REG                8,1   1012761    2587368 /data/nexus/tmp/jar_cache3471292813592489580.tmp (deleted)
nexus_Qua 25189 25375             nexus  385r      REG                8,1    592237    2587369 /data/nexus/tmp/jar_cache601982945780052716.tmp (deleted)
status-de 25189 25376             nexus  383r      REG                8,1    148176    2587367 /data/nexus/tmp/jar_cache751007135540811314.tmp (deleted)
status-de 25189 25376             nexus  384r      REG                8,1   1012761    2587368 /data/nexus/tmp/jar_cache3471292813592489580.tmp (deleted)
status-de 25189 25376             nexus  385r      REG                8,1    592237    2587369 /data/nexus/tmp/jar_cache601982945780052716.tmp (deleted)
quartz-7- 25189 25384             nexus  274r      REG                8,1    168119    2586774 /data/nexus/tmp/jar_cache7208625739217484334.tmp (deleted)
quartz-7- 25189 25384             nexus  275r      REG                8,1    212164    2586775 /data/nexus/tmp/jar_cache462451415006799037.tmp (deleted)
quartz-7- 25189 25384             nexus  382r      REG                8,1   1061044    2587366 /data/nexus/tmp/jar_cache6165149551453976210.tmp (deleted)
task-logg 25189 25385             nexus  274r      REG                8,1    168119    2586774 /data/nexus/tmp/jar_cache7208625739217484334.tmp (deleted)
task-logg 25189 25385             nexus  275r      REG                8,1    212164    2586775 /data/nexus/tmp/jar_cache462451415006799037.tmp (deleted)
task-logg 25189 25385             nexus  382r      REG                8,1   1061044    2587366 /data/nexus/tmp/jar_cache6165149551453976210.tmp (deleted)
search-se 25189 25386             nexus  382r      REG                8,1   1061044    2587366 /data/nexus/tmp/jar_cache6165149551453976210.tmp (deleted)
search-se 25189 25386             nexus  383r      REG                8,1    148176    2587367 /data/nexus/tmp/jar_cache751007135540811314.tmp (deleted)
search-se 25189 25386             nexus  384r      REG                8,1   1012761    2587368 /data/nexus/tmp/jar_cache3471292813592489580.tmp (deleted)
nexus.vmoptions中的配置

-Xms2703m
-Xmx2703m
-XX:MaxDirectMemorySize=2703m
-XX:+UnlockDiagnosticVMOptions
-XX:+LogVMOutput
#-XX:LogFile=../sonatype-work/nexus3/log/jvm.log
-XX:-OmitStackTraceInFastThrow
-Djava.net.preferIPv4Stack=true
-Dkaraf.home=.
-Dkaraf.base=.
-Dkaraf.etc=etc/karaf
-Djava.util.logging.config.file=etc/karaf/java.util.logging.properties
#-Dkaraf.data=../sonatype-work/nexus3
#-Dkaraf.log=../sonatype-work/nexus3/log
#-Djava.io.tmpdir=../sonatype-work/nexus3/tmp
-Dkaraf.startLocalConsole=false

-Dkaraf.data=/data/nexus/nexus-data
-Djava.io.tmpdir=/data/nexus/tmp
-XX:LogFile=/var/log/nexus/jvm.log
-Dkaraf.log=/var/log/nexus/log

#
# additional vmoptions needed for Java9+
#
# --add-reads=java.xml=java.logging
# --add-exports=java.base/org.apache.karaf.specs.locator=java.xml,ALL-UNNAMED
# --patch-module=java.base=lib/endorsed/org.apache.karaf.specs.locator-4.2.9.jar
# --patch-module=java.xml=lib/endorsed/org.apache.karaf.specs.java.xml-4.2.9.jar
# --add-opens=java.base/java.security=ALL-UNNAMED
# --add-opens=java.base/java.net=ALL-UNNAMED
# --add-opens=java.base/java.lang=ALL-UNNAMED
# --add-opens=java.base/java.util=ALL-UNNAMED
# --add-opens=java.naming/javax.naming.spi=ALL-UNNAMED
# --add-opens=java.rmi/sun.rmi.transport.tcp=ALL-UNNAMED
# --add-exports=java.base/sun.net.www.protocol.http=ALL-UNNAMED
# --add-exports=java.base/sun.net.www.protocol.https=ALL-UNNAMED
# --add-exports=java.base/sun.net.www.protocol.jar=ALL-UNNAMED
# --add-exports=jdk.xml.dom/org.w3c.dom.html=ALL-UNNAMED
# --add-exports=jdk.naming.rmi/com.sun.jndi.url.rmi=ALL-UNNAMED
#
# comment out this vmoption when using Java9+
#
-Djava.endorsed.dirs=lib/endorsed
我不知道为什么Nexus会产生这种过程。我曾尝试过
杀死-9 25189
,但它总是自我重建


还尝试了delete/tmp目录,change/tmp location得到了相同的结果。

您使用的是最新的NXRM3吗?这听起来很熟悉,但我认为它可能已经被修复了。@joedragons是的,Nexus3.26.1